diff --git a/data/mods/Xedra_Evolved/mutations/paraclesians/paraclesian_magic_terrain_adjustments.json b/data/mods/Xedra_Evolved/mutations/paraclesians/paraclesian_magic_terrain_adjustments.json new file mode 100644 index 0000000000000..91a7471ba65a1 --- /dev/null +++ b/data/mods/Xedra_Evolved/mutations/paraclesians/paraclesian_magic_terrain_adjustments.json @@ -0,0 +1,475 @@ +[ + { + "type": "effect_on_condition", + "id": "EOC_ARVORE_ELEMENTAL_MAGIC_ADJUSTMENT_IN_THE_WILDERNESS", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "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 } } + ] + }, + { "u_has_trait": "ARVORE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'ARVORE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_ARVORE_ELEMENTAL_MAGIC_ADJUSTMENT_HEAVY_FOREST", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "and": [ + { "or": [ "u_is_outside", { "u_is_on_terrain": "t_barkfloor" } ] }, + { + "or": [ + { "u_at_om_location": "forest_thick" }, + { "u_at_om_location": "arvore_genius_loci_NW" }, + { "u_at_om_location": "arvore_genius_loci_NE" }, + { "u_at_om_location": "arvore_genius_loci_SW" }, + { "u_at_om_location": "arvore_genius_loci_SE" }, + { "u_near_om_location": "great_tree_z0_nw", "range": 2 }, + { "u_near_om_location": "great_tree_z0_se", "range": 2 }, + { "u_near_om_location": "great_tree_z1_nw", "range": 2 }, + { "u_near_om_location": "great_tree_z1_se", "range": 2 }, + { "u_near_om_location": "great_tree_z2_nw", "range": 2 }, + { "u_near_om_location": "great_tree_z2_se", "range": 2 }, + { "u_near_om_location": "great_tree_z3_06", "range": 2 }, + { "u_near_om_location": "great_tree_z3_11", "range": 2 }, + { "u_near_om_location": "great_tree_z4_06", "range": 2 }, + { "u_near_om_location": "great_tree_z4_11", "range": 2 }, + { "u_near_om_location": "great_tree_z5_06", "range": 2 }, + { "u_near_om_location": "great_tree_z5_11", "range": 2 }, + { "u_near_om_location": "great_tree_z6_nw", "range": 2 }, + { "u_near_om_location": "great_tree_z6_se", "range": 2 }, + { "u_near_om_location": "great_tree_z6_n2", "range": 2 }, + { "u_near_om_location": "great_tree_z6_se", "range": 2 }, + { "u_near_om_location": "great_tree_z7_nw", "range": 2 }, + { "u_near_om_location": "great_tree_z7_se", "range": 2 }, + { "u_near_om_location": "great_tree_crown_06", "range": 2 }, + { "u_near_om_location": "great_tree_crown_11", "range": 2 }, + { "u_near_om_location": "great_tree_crown_top_01", "range": 2 }, + { "u_near_om_location": "great_tree_crown_top_04", "range": 2 }, + { "u_near_om_location": "great_tree_roots", "range": 2 }, + { "u_near_om_location": "great_tree_roots_se", "range": 2 }, + { "u_near_om_location": "great_tree_roots_nw", "range": 2 } + ] + }, + { "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 } } + ] + }, + { "u_has_trait": "ARVORE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'ARVORE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_ARVORE_ELEMENTAL_MAGIC_PENALTY_IN_BUILDING", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "or": [ + { + "and": [ + { "not": "u_is_outside" }, + { "or": [ { "u_is_on_terrain_with_flag": "FLAT" }, { "u_is_on_terrain_with_flag": "ROAD" } ] }, + { "not": { "u_is_on_terrain": "t_barkfloor" } }, + { "not": { "u_is_on_terrain": "t_floor" } }, + { "not": { "u_is_on_terrain": "t_wood_stairs_down" } }, + { "not": { "u_is_on_terrain": "t_wood_stairs_up" } }, + { "not": { "u_is_on_terrain": "t_door_o" } } + ] + }, + { + "and": [ + { + "or": [ + { "u_is_on_terrain": "t_barkfloor" }, + { "u_is_on_terrain": "t_floor" }, + { "u_is_on_terrain": "t_wood_stairs_down" }, + { "u_is_on_terrain": "t_wood_stairs_up" }, + { "u_is_on_terrain": "t_door_o" } + ] + }, + { + "or": [ + { "u_near_om_location": "road_curved", "range": 1 }, + { "u_near_om_location": "road_four_way", "range": 1 }, + { "u_near_om_location": "road_tee", "range": 1 }, + { "u_near_om_location": "road_straight", "range": 1 }, + { "u_near_om_location": "road_end", "range": 1 }, + { "u_near_om_location": "road_sw", "range": 1 }, + { "u_near_om_location": "road_ne", "range": 1 }, + { "u_near_om_location": "road_ew", "range": 1 }, + { "u_near_om_location": "road_ns", "range": 1 }, + { "u_near_om_location": "road_nesw", "range": 1 }, + { "u_near_om_location": "road", "range": 1 } + ] + } + ] + } + ] + }, + { "u_has_trait": "ARVORE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'ARVORE' )", "=", "3" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_HOMULLUS_MAGIC_ADJUSTMENT_IN_CIVILIZATION", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "effect": [ + { + "set_string_var": { "mutator": "loc_relative_u", "target": "(0,0,0)" }, + "target_var": { "context_val": "homullus_location" } + }, + { + "run_eocs": [ + { + "id": "EOC_HOMULLUS_MAGIC_ADJUSTMENT_IN_CIVILIZATION_2", + "//": "This EoC is required because map_in_city cannot check talker location directly.", + "condition": { + "or": [ + { "u_near_om_location": "evac_center_13", "range": 3 }, + { "u_near_om_location": "robofachq_surface_entrance", "range": 3 }, + { "u_near_om_location": "isolated_road_field_0", "range": 2 }, + { "u_near_om_location": "ranch_camp_41", "range": 3 }, + { "u_near_om_location": "godco_5", "range": 3 }, + { "u_at_om_location": "FACTION_CAMP_ANY" }, + { "map_in_city": { "mutator": "loc_relative_u", "target": "(0,0,0)" } } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'HOMULLUS' )", "=", "-2" ] } ] + } + ] + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_HOMULLUS_MAGIC_ADJUSTMENT_NEARBY_PEOPLE", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "math": [ + "(u_characters_nearby('radius': 30, 'attitude': 'any') + u_monsters_nearby('mon_feral_cop', 'mon_feral_human_pipe', 'mon_feral_human_crowbar', 'mon_feral_jackboot', 'mon_feral_marine_bayonet', 'mon_feral_soldier', 'mon_feral_prepper_knife', 'mon_feral_sailor_axe', 'mon_feral_maid_knife', 'mon_feral_maid_candlestick', 'mon_feral_officer', 'mon_feral_sailor_lug_wrench', 'mon_feral_sailor_mop', 'mon_feral_maid_broom', 'mon_feral_sailor_wrench', 'mon_feral_swimmer_kickboard', 'mon_feral_armored_battleaxe', 'mon_feral_sapien_spear', 'mon_feral_armored_mace', 'mon_feral_human_tool', 'mon_feral_militia', 'mon_feral_fancy_rapier_fake', 'mon_feral_fancy_rapier', 'mon_feral_human_archaeologist', 'mon_feral_human_axe', 'mon_feral_labsecurity_flashlight', 'mon_feral_labsecurity_9mm', 'mon_feral_survivalist', 'mon_feral_scientist_scalpel', 'mon_feral_zebra_agent', 'mon_renfield', 'mon_renfield_9mm', 'mon_renfield_shotgun', 'mon_renfield_flamethrower', 'radius': 30, 'attitude': 'both'))", + ">=", + "10" + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'HOMULLUS' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_HOMULLUS_ELEMENTAL_MAGIC_PENALTY_IN_THE_WILDERNESS", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "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 } } + ] + }, + { "u_has_trait": "ARVORE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'HOMULLUS' )", "=", "3" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_IERDE_ELEMENTAL_MAGIC_ADJUSTMENT_UNDERGROUND", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ { "math": [ "u_val('pos_z')", "<=", "-1" ] }, { "u_has_trait": "IERDE" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'IERDE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_IERDE_ELEMENTAL_MAGIC_ADJUSTMENT_ON_DIRT_OR_STONE", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "or": [ + { "u_is_on_terrain_with_flag": "DIGGABLE" }, + { "u_is_on_terrain": "t_rock_floor" }, + { "u_is_on_terrain": "t_railroad_rubble" }, + { "u_is_on_terrain": "t_dirt_underground" } + ] + }, + { "not": { "u_is_on_terrain": "t_vitrified_sand" } }, + { "not": { "u_is_on_terrain": "t_pit_corpsed" } }, + { "not": { "u_is_on_terrain": "t_fungus" } }, + { "not": { "u_is_on_terrain": "t_glassed_sand" } }, + { "not": { "u_is_on_terrain": "t_rubber_mulch" } }, + { "not": { "u_is_on_terrain": "t_swater_surf" } }, + { "not": { "u_is_on_terrain": "t_woodchips" } }, + { "u_has_trait": "IERDE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'IERDE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_IERDE_ELEMENTAL_MAGIC_PENALTY_TOO_HIGH", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ { "math": [ "u_val('pos_z')", ">=", "1" ] }, { "u_has_trait": "IERDE" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'IERDE' )", "=", "3" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SALAMANDER_ELEMENTAL_MAGIC_ADJUSTMENT_IN_FIRE", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ { "u_is_in_field": "fd_fire" }, { "u_has_trait": "SALAMANDER" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SALAMANDER' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SALAMANDER_ELEMENTAL_MAGIC_ADJUSTMENT_IN_HEAT", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "or": [ + { "u_is_in_field": "fd_hot_air1" }, + { "u_is_in_field": "fd_hot_air2" }, + { "u_is_in_field": "fd_hot_air3" }, + { "u_is_in_field": "fd_hot_air4" }, + { "math": [ "weather('temperature')", ">=", "from_fahrenheit( 80 )" ] } + ] + }, + { "u_has_trait": "SALAMANDER" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SALAMANDER' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SALAMANDER_ELEMENTAL_MAGIC_PENALTY_IN_CHILL", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { "math": [ "weather('temperature')", "<=", "from_fahrenheit( 32 )" ] }, + { + "and": [ + { "not": { "u_is_in_field": "fd_hot_air1" } }, + { "not": { "u_is_in_field": "fd_hot_air2" } }, + { "not": { "u_is_in_field": "fd_hot_air3" } }, + { "not": { "u_is_in_field": "fd_hot_air4" } }, + { "not": { "u_is_in_field": "fd_fire" } }, + { "not": { "u_has_item": "torch_lit" } }, + { "not": { "u_has_item": "candle_lit" } }, + { "not": { "u_has_item": "oil_lamp_on" } }, + { "not": { "u_has_item": "oil_lamp_clay_on" } }, + { "not": { "u_has_item": "cigar_lit" } }, + { "not": { "u_has_item": "cig_lit" } } + ] + }, + { "u_has_trait": "SALAMANDER" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SALAMANDER' )", "=", "3" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SYLPH_ELEMENTAL_MAGIC_ADJUSTMENT_UP_HIGH", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ { "math": [ "u_val('pos_z')", ">=", "3" ] }, { "u_has_trait": "SYLPH" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SYLPH' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SYLPH_ELEMENTAL_MAGIC_ADJUSTMENT_UNDER_THE_SKY", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ "u_is_outside", { "u_has_trait": "SYLPH" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SYLPH' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_SYLPH_ELEMENTAL_MAGIC_PENALTY_UNDERGROUND", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ { "math": [ "u_val('pos_z')", "<=", "-1" ] }, { "u_has_trait": "SYLPH" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'SYLPH' )", "=", "3" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_UNDINE_ELEMENTAL_MAGIC_ADJUSTMENT_NEAR_WATER", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ + { + "or": [ + { "u_is_on_terrain": "t_water_dp" }, + { "u_is_on_terrain": "t_water_sh" }, + { "u_is_on_terrain": "t_swater_dp" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_water_dp_underground" }, + { "u_is_on_terrain": "t_water_pool" }, + { "u_is_on_terrain": "t_water_pool_outdoors" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_water_hot" }, + { "u_is_on_terrain": "t_water_murky" }, + { "u_is_on_terrain": "t_water_sh_underground" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_swater_sh_underground" }, + { "u_is_on_terrain": "t_swater_sh" }, + { "u_is_on_terrain": "t_water_pool_shallow" }, + { "u_is_on_terrain": "t_water_pool_shallow_outdoors" }, + { "u_is_on_terrain": "t_water_moving_dp" }, + { "u_is_on_terrain": "t_water_moving_dp_underground" }, + { "u_is_on_terrain": "t_water_sh_murky_underground" }, + { "u_near_om_location": "generic_river_bank", "range": 1 }, + { "u_near_om_location": "generic_river", "range": 1 }, + { "u_near_om_location": "river_center", "range": 1 }, + { "u_near_om_location": "river", "range": 1 }, + { "u_near_om_location": "river_c_not_ne", "range": 1 }, + { "u_near_om_location": "river_c_not_nw", "range": 1 }, + { "u_near_om_location": "river_c_not_se", "range": 1 }, + { "u_near_om_location": "river_c_not_sw", "range": 1 }, + { "u_near_om_location": "river_ne", "range": 1 }, + { "u_near_om_location": "river_se", "range": 1 }, + { "u_near_om_location": "river_sw", "range": 1 }, + { "u_near_om_location": "river_nw", "range": 1 }, + { "u_near_om_location": "lake_shore", "range": 1 }, + { "u_near_om_location": "lake_surface", "range": 1 } + ] + }, + { "u_has_trait": "UNDINE" } + ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'UNDINE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_UNDINE_ELEMENTAL_MAGIC_ADJUSTMENT_UNDERWATER", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { "and": [ "u_is_underwater", { "u_has_trait": "UNDINE" } ] }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'UNDINE' )", "=", "-2" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_UNDINE_ELEMENTAL_MAGIC_PENALTY_TOO_DRY_TIMER", + "eoc_type": "EVENT", + "required_event": "avatar_moves", + "condition": { + "and": [ + { + "or": [ + { "u_is_on_terrain": "t_water_dp" }, + { "u_is_on_terrain": "t_water_sh" }, + { "u_is_on_terrain": "t_swater_dp" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_water_dp_underground" }, + { "u_is_on_terrain": "t_water_pool" }, + { "u_is_on_terrain": "t_water_pool_outdoors" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_water_hot" }, + { "u_is_on_terrain": "t_water_murky" }, + { "u_is_on_terrain": "t_water_sh_underground" }, + { "u_is_on_terrain": "t_swater_dp_underground" }, + { "u_is_on_terrain": "t_swater_sh_underground" }, + { "u_is_on_terrain": "t_swater_sh" }, + { "u_is_on_terrain": "t_water_pool_shallow" }, + { "u_is_on_terrain": "t_water_pool_shallow_outdoors" }, + { "u_is_on_terrain": "t_water_moving_dp" }, + { "u_is_on_terrain": "t_water_moving_dp_underground" }, + { "u_is_on_terrain": "t_water_sh_murky_underground" }, + { "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_has_trait": "UNDINE" } + ] + }, + "effect": [ { "math": [ "u_timer_undine_last_in_water", "=", "time('now')" ] } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_UNDINE_ELEMENTAL_MAGIC_PENALTY_TOO_DRY", + "eoc_type": "EVENT", + "required_event": "opens_spellbook", + "condition": { + "and": [ { "math": [ "time_since(u_timer_undine_last_in_water)", ">=", "time('6 h')" ] }, { "u_has_trait": "UNDINE" } ] + }, + "effect": [ { "math": [ "u_spellcasting_adjustment('difficulty', 'school': 'UNDINE' )", "=", "3" ] } ] + } +]