Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Xedra Evolved] Add some Undine traits #70789

Merged
merged 14 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,23 @@
],
"//": "Deliberately vulnerable to electricity damage."
},
{
"type": "effect_type",
"id": "effect_undine_escape_grabs",
"name": [ "Flow Like Water" ],
"desc": [ "Your movements are inhumanly fluid." ],
"rating": "good",
"max_duration": "1 minutes",
"dur_add_perc": 1,
"removes_effects": [ "grabbed" ],
"limb_score_mods": [
{ "limb_score": "reaction", "modifier": 2.0 },
{ "limb_score": "block", "modifier": 1.2 },
{ "limb_score": "crawl", "modifier": 1.5 }
],
"enchantments": [ { "values": [ { "value": "FALL_DAMAGE", "multiply": -0.6 }, { "value": "EVASION", "add": 0.33 } ] } ],
"flags": [ "DOWNED_RECOVERY", "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "effect_paraclesian_dodge_bonus_1",
Expand Down
27 changes: 27 additions & 0 deletions data/mods/Xedra_Evolved/items/ethereal_items.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,5 +322,32 @@
"FIRE"
],
"relic_data": { "passive_effects": [ { "id": "SALAMANDER_SUMMON_WHIP" } ] }
},
{
"id": "undine_waters_map",
"type": "GENERIC",
"category": "maps",
"name": { "str": "undine waters map" },
"description": "The item for .",
"weight": "30 g",
"volume": "250 ml",
"flags": [ "PAPER_SHAPED" ],
"price": 1000,
"price_postapoc": 1000,
"to_hit": -1,
"material": [ "elemental_water" ],
"symbol": ";",
"color": "blue",
"copy-from": "abstractmap",
"use_action": {
"type": "reveal_map",
"radius": 150,
"terrain": [
"lake",
{ "om_terrain": "river", "om_terrain_match_type": "PREFIX" },
{ "om_terrain": "ocean", "om_terrain_match_type": "PREFIX" }
],
"message": "The waters reveal themselves to you."
}
}
]
87 changes: 87 additions & 0 deletions data/mods/Xedra_Evolved/mutations/paraclesians/undine_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,92 @@
"type": "bad"
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_ESCAPE_GRABS",
"effect": [
{ "u_lose_effect": "effect_undine_escape_grabs" },
{ "u_add_effect": "effect_undine_escape_grabs", "duration": { "math": [ "rng(2,8)" ] } }
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_RIVER_MAPPING",
"condition": {
"and": [
"u_is_underwater",
{
"or": [
{ "u_at_om_location": "generic_river_bank" },
{ "u_at_om_location": "generic_river" },
{ "u_at_om_location": "river_center" },
{ "u_at_om_location": "river" },
{ "u_at_om_location": "river_c_not_ne" },
{ "u_at_om_location": "river_c_not_nw" },
{ "u_at_om_location": "river_c_not_se" },
{ "u_at_om_location": "river_c_not_sw" },
{ "u_at_om_location": "river_ne" },
{ "u_at_om_location": "river_se" },
{ "u_at_om_location": "river_sw" },
{ "u_at_om_location": "river_nw" },
{ "u_at_om_location": "lake_shore" },
{ "u_at_om_location": "lake_surface" },
{ "u_at_om_location": "ocean" },
{ "u_at_om_location": "ocean_shore" },
{ "u_at_om_location": "ocean_surface" },
{ "u_at_om_location": "ocean_bed" },
{ "u_at_om_location": "ocean_water_cube" },
{ "u_at_om_location": "ocean_surface" }
]
}
]
},
"effect": [
{ "u_spawn_item": "undine_waters_map" },
{
"u_run_inv_eocs": "random",
"search_data": [ { "id": "undine_waters_map" } ],
"true_eocs": [ { "id": "EOC_UNDINE_RIVER_MAPPING_ACTIVATE", "effect": { "u_activate": "reveal_map" } } ]
},
{ "u_remove_item_with": "undine_waters_map" }
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_WATER_PUSH_AWAY",
"eoc_type": "EVENT",
"required_event": "character_takes_damage",
"condition": {
"and": [
{ "u_has_trait": "UNDINE_WATER_PUSH_AWAY" },
{
"x_in_y_chance": { "x": { "math": [ "1 + u_has_trait('THRESH_UNDINE) u_has_trait('THRESH_UNDINE)" ] }, "y": 40 }
}
]
},
"effect": [
{ "u_cast_spell": { "id": "undine_water_push_away", "hit_self": false } },
{ "u_cast_spell": { "id": "undine_water_push_away", "hit_self": false } }
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_WATER_FORM_ON",
"effect": [
{ "u_add_trait": "UNDINE_WATER_FORM_TRAITS" },
{ "u_add_trait": "UNDINE_WATER_FORM_CAMOUFLAGE" },
{ "u_message": "Your body falls apart in a rush of water." },
{ "u_spawn_item": "water", "count": { "math": [ "rng(30,100)" ] } }
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_WATER_FORM_OFF",
"effect": [
{ "u_lose_trait": "UNDINE_WATER_FORM_TRAITS" },
{ "u_lose_trait": "UNDINE_WATER_FORM_CAMOUFLAGE" },
{ "u_message": "Your body reconstitutes itself from the waters." }
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@
"condition": "ALWAYS",
"values": [ { "value": "ARMOR_HEAT", "multiply": -0.5 } ]
},
{
"type": "enchantment",
"id": "ench_undine_water_body",
"condition": "ALWAYS",
"has": "HELD",
"values": [ { "value": "ARMOR_BASH", "multiply": -0.1 }, { "value": "ARMOR_BULLET", "multiply": -0.5 } ]
},
{
"type": "enchantment",
"id": "ench_undine_water_form_no_attack",
"condition": "ALWAYS",
"has": "HELD",
"values": [
{ "value": "MELEE_DAMAGE", "multiply": -1.0 },
{ "value": "RANGE", "multiply": -1.0 },
{ "value": "RANGED_DAMAGE", "multiply": -1.0 }
]
},
{
"type": "enchantment",
"id": "ench_undine_water_form_armor",
"condition": "ALWAYS",
"has": "HELD",
"values": [
{ "value": "ARMOR_BASH", "multiply": -0.5 },
{ "value": "ARMOR_CUT", "multiply": -0.6 },
{ "value": "ARMOR_STAB", "multiply": -0.8 },
{ "value": "ARMOR_BULLET", "multiply": -1.0 },
{ "value": "ARMOR_HEAT", "multiply": 2.0 }
]
},
{
"id": "create_fog",
"type": "SPELL",
Expand Down Expand Up @@ -361,5 +392,20 @@
"min_duration": 36000,
"max_duration": 1080000,
"duration_increment": 36000
},
{
"id": "undine_water_push_away",
"type": "SPELL",
"name": "Crashing Waves spell",
"description": "The actual spell that pushes enemies away. It's a bug if you have it.",
"message": "",
"teachable": false,
"valid_targets": [ "ground", "hostile" ],
"flags": [ "SILENT", "NO_HANDS", "NO_LEGS", "RANDOM_AOE", "NO_EXPLOSION_SFX" ],
"effect": "area_push",
"shape": "blast",
"min_range": 0,
"min_aoe": 1,
"max_aoe": 3
}
]
119 changes: 119 additions & 0 deletions data/mods/Xedra_Evolved/mutations/paraclesians/undine_mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,124 @@
"description": "Undines are born of the flowing waters and the waters provide for their children. While submerged in fresh water, any thirst you have will be slaked.",
"prereqs": [ "UNDINE_SLEEP_WATER" ],
"category": [ "UNDINE" ]
},
{
"type": "mutation",
"id": "UNDINE_ESCAPE_GRABS",
"name": { "str": "Flow Like Water" },
"points": 2,
"visibility": 0,
"ugliness": 0,
"description": "With the Undine's more fluid skin has come more fluid motion. Activate this trait to immediately escape a grab and suffer less damage from falls for a few seconds.",
"prereqs": [ "UNDINE_SKIN_2" ],
"category": [ "UNDINE" ]
},
{
"type": "mutation",
"id": "UNDINE_FAST_SWIM_SPEED",
"name": { "str": "Like a Fish to the River" },
"points": 2,
"visibility": 0,
"ugliness": 0,
"description": "The Undine's are born of the waters, and water is their home. This trait allows them to move much faster when in water.",
"prereqs": [ "BREATHE_UNDERWATER" ],
"category": [ "UNDINE" ],
"flags": [ "WEBBED_FEET", "WEBBED_HANDS" ],
"movecost_swim_modifier": 0.8
},
{
"type": "mutation",
"id": "UNDINE_WATER_PUSH_AWAY",
"name": { "str": "Crashing Waves" },
"points": 2,
"visibility": 0,
"ugliness": 0,
"description": "The waters come to the Undine's defense. When attacked, there is a chance that a burst of water will surge out and push their attackers back.",
"prereqs": [ "UNDINE_ESCAPE_GRABS" ],
"category": [ "UNDINE" ]
},
{
"type": "mutation",
"id": "UNDINE_RIVER_MAPPING",
"name": { "str": "All Rivers Flow to the Sea" },
"description": "Water falls as rain, flows into streams, and then into rivers to the sea, and rises as clouds to fall as rain once again. While submerged in a river, lake, or the ocean, the Undine can exploit this connection to locate other sources of water.",
"points": 3,
"visibility": 0,
"ugliness": 0,
"category": [ "UNDINE" ],
"prereqs": [ "UNDINE_EYES" ],
"prereqs2": [ "BREATH_UNDERWATER" ],
"active": true,
"activated_eocs": [ "EOC_UNDINE_RIVER_MAPPING" ]
},
{
"type": "mutation",
"id": "UNDINE_WATER_BODY",
"name": { "str": "Fluid Body" },
"points": 4,
"visibility": 0,
"ugliness": 0,
"description": "Even the Undine's internal organs are becoming more liquid. Bashing damage is reduced even further, and ballistic damage is halved. However, the Undine neds to drink more water.",
Standing-Storm marked this conversation as resolved.
Show resolved Hide resolved
"prereqs": [ "UNDINE_SKIN_2" ],
"category": [ "UNDINE" ],
"thirst_modifier": 0.25,
"enchantments": [ "ench_undine_water_body" ]
},
{
"type": "mutation",
"id": "UNDINE_WATER_FORM",
"name": { "str": "Form of the Flowing Waters" },
"points": 8,
"description": "You may transform into a tree, extending roots and spreading leaves out to the sun. You will heal faster, gain more benefit from sleep, and almost all monsters will ignore you, but you will only be dimly aware of the outside world and will be nearly unable to move.",
"prereqs": [ "UNDINE_WATER_BODY" ],
"prereqs2": [ "UNDINE_ABSORB_WATER" ],
"category": [ "UNDINE" ],
"threshreq": [ "THRESH_UNDINE" ],
"active": true,
"thirst": true,
"cost": 1,
"time": 2,
"activated_is_setup": true,
"activated_eocs": [ "EOC_UNDINE_WATER_FORM_ON" ],
"processed_eocs": [ "EOC_UNDINE_WATER_FORM_TRAITS" ],
"deactivated_eocs": [ "EOC_UNDINE_WATER_FORM_OFF" ]
},
{
"type": "mutation",
"id": "UNDINE_WATER_FORM_TRAITS",
"name": { "str": "Water Form" },
"description": "You are a mass of pure water. It is much harder to damage you, and you can move over any terrain without penalty, but you cannot attack.",
"points": 10,
"valid": false,
"movecost_swim_modifier": 0.6,
"enchantments": [ "ench_undine_water_form_no_attack", "ench_undine_water_form_armor" ],
"flags": [ "STEADY", "WALK_UNDERWATER", "BULLET_IMMUNE" ]
},
{
"type": "mutation",
"id": "UNDINE_WATER_FORM_CAMOUFLAGE",
"name": { "str": "Watery Camouflage" },
"points": 3,
"visibility": 0,
"ugliness": 0,
"description": "Being made entirely of water, it is easy for you to disguise yourself when underwater.",
"category": [ "UNDINE" ],
"valid": false,
"triggers": [ [ { "condition": "u_is_underwater" } ] ],
"transform": { "target": "UNDINE_WATER_FORM_CAMOUFLAGE_ON", "msg_transform": "", "active": false, "moves": 0 }
},
{
"type": "mutation",
"id": "UNDINE_WATER_FORM_CAMOUFLAGE_ON",
"name": { "str": "Watery Camouflage (active)" },
"points": 3,
"visibility": 0,
"ugliness": 0,
"valid": false,
"description": "Being made entirely of water, it is easy for you to disguise yourself when underwater, such as right now.",
"category": [ "UNDINE" ],
"stealth_modifier": 60,
"triggers": [ [ { "condition": { "not": "u_is_underwater" } } ] ],
"transform": { "target": "UNDINE_WATER_FORM_CAMOUFLAGE", "msg_transform": "", "active": false, "moves": 0 }
}
]
Loading