Skip to content

Commit

Permalink
[Xedra Evolved] Consolidate more Arvore mutations with triggers into …
Browse files Browse the repository at this point in the history
…one mutation (#71982)

* Initial commit

* Separate enchantments just in case
  • Loading branch information
Standing-Storm authored Feb 26, 2024
1 parent ce0fc0c commit 3d11392
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 300 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,49 @@
{
"type": "enchantment",
"id": "arvore_forest_detect_enemies",
"condition": "ALWAYS",
"condition": {
"and": [
"u_is_outside",
{
"or": [
{ "u_is_on_terrain_with_flag": "SHRUB" },
{ "u_is_on_terrain_with_flag": "YOUNG" },
{ "u_is_on_terrain": "t_bamboo_tall" },
{ "u_is_on_terrain": "t_grass_long" },
{ "u_at_om_location": "forest" },
{ "u_at_om_location": "forest_thick" }
]
}
]
},
"values": [ { "value": "MOTION_VISION_RANGE", "add": { "math": [ "( u_val('perception') + u_val('intelligence'))" ] } } ]
},
{
"type": "enchantment",
"id": "arvore_forest_detect_enemies_and_overmap",
"condition": {
"and": [
"u_is_outside",
{
"or": [
{ "u_is_on_terrain_with_flag": "SHRUB" },
{ "u_is_on_terrain_with_flag": "YOUNG" },
{ "u_is_on_terrain": "t_bamboo_tall" },
{ "u_is_on_terrain": "t_grass_long" },
{ "u_at_om_location": "forest" },
{ "u_at_om_location": "forest_thick" }
]
}
]
},
"values": [
{ "value": "MOTION_VISION_RANGE", "add": { "math": [ "( u_val('perception') + u_val('intelligence'))" ] } },
{
"value": "OVERMAP_SIGHT",
"add": { "math": [ "(u_has_trait('ARVORE_FOREST_DETECT_AND_OVERMAP') * 2) + (u_has_trait('THRESH_ARVORE') * 2)" ] }
}
]
},
{
"type": "enchantment",
"id": "ench_jagged_claws_faster_attack",
Expand All @@ -38,12 +78,60 @@
"condition": "ALWAYS",
"hit_me_effect": [ { "id": "spell_arvore_thorns_mut_counter", "hit_self": false, "once_in": 3 } ]
},
{
"type": "enchantment",
"id": "ench_arvore_forest_stealth",
"condition": {
"and": [
"u_is_outside",
{
"or": [
{ "u_is_on_terrain_with_flag": "SHRUB" },
{ "u_is_on_terrain_with_flag": "YOUNG" },
{ "u_is_on_terrain": "t_bamboo_tall" },
{ "u_is_on_terrain": "t_grass_long" },
{ "u_at_om_location": "forest" },
{ "u_at_om_location": "forest_thick" }
]
}
]
},
"values": [ { "value": "STEALTH_MODIFIER", "add": { "math": [ "40 + ( u_has_trait('THRESH_ARVORE') * 20)" ] } } ]
},
{
"type": "enchantment",
"id": "ench_arvore_sense_sun",
"condition": { "math": [ "u_val('pos_z')", ">=", "0" ] },
"ench_effects": [ { "effect": "effect_arvore_sense_sun", "intensity": 1 } ]
},
{
"type": "enchantment",
"id": "ench_arvore_wilds_super_mending",
"condition": {
"and": [
"u_is_outside",
{
"or": [
{ "u_is_on_terrain_with_flag": "SHRUB" },
{ "u_is_on_terrain_with_flag": "DIGGABLE" },
{ "u_is_on_terrain_with_flag": "YOUNG" }
]
},
{ "not": { "u_near_om_location": "road_curved", "range": 1 } },
{ "not": { "u_near_om_location": "road_four_way", "range": 1 } },
{ "not": { "u_near_om_location": "road_tee", "range": 1 } },
{ "not": { "u_near_om_location": "road_straight", "range": 1 } },
{ "not": { "u_near_om_location": "road_end", "range": 1 } },
{ "not": { "u_near_om_location": "road_sw", "range": 1 } },
{ "not": { "u_near_om_location": "road_ne", "range": 1 } },
{ "not": { "u_near_om_location": "road_ew", "range": 1 } },
{ "not": { "u_near_om_location": "road_ns", "range": 1 } },
{ "not": { "u_near_om_location": "road_nesw", "range": 1 } },
{ "not": { "u_near_om_location": "road", "range": 1 } }
]
},
"values": [ { "value": "MENDING_MODIFIER", "multiply": 10 } ]
},
{
"type": "enchantment",
"id": "ench_arvore_sun_foods_on",
Expand Down
Loading

0 comments on commit 3d11392

Please sign in to comment.