From 1949d2636113415c4d06312fcbe5668814600f51 Mon Sep 17 00:00:00 2001 From: Standing-Storm <120433252+Standing-Storm@users.noreply.github.com> Date: Mon, 29 Jan 2024 21:50:13 -0600 Subject: [PATCH] [Magiclysm] Add life-destroying / terrain bash to Cause Rot (#71343) * Initial commit * Account for crabapple trees * Spelling --- data/mods/Magiclysm/Spells/druid.json | 37 ++++- .../ter_fur_transform/ter_fur_transform.json | 156 ++++++++++++++++++ 2 files changed, 192 insertions(+), 1 deletion(-) diff --git a/data/mods/Magiclysm/Spells/druid.json b/data/mods/Magiclysm/Spells/druid.json index 49b898defb7c7..a4c98ad6ee35d 100644 --- a/data/mods/Magiclysm/Spells/druid.json +++ b/data/mods/Magiclysm/Spells/druid.json @@ -605,9 +605,10 @@ "name": "Cause Rot", "description": "A spell from a darker sect of druidry, created to forcibly begin the circle of life anew. For without rot, you cannot have growth. Affects a huge area, but is indiscriminate; even rusting machines into nothing but dust and slow both in casting and effect. Once lost entirely to the passage of time, this spell was thought to be no more than a myth, the stuff of fairy tales, albeit grim ones.", "effect": "attack", + "extra_effects": [ { "id": "druid_cause_rot_terrain" }, { "id": "druid_cause_rot_terrain_bash" } ], "shape": "blast", "valid_targets": [ "hostile", "ground" ], - "flags": [ "SOMATIC", "NO_PROJECTILE", "CONCENTRATE", "VERBAL" ], + "flags": [ "SOMATIC", "NO_PROJECTILE", "CONCENTRATE", "VERBAL", "IGNORE_WALLS" ], "max_level": 25, "spell_class": "DRUID", "energy_source": "MANA", @@ -631,6 +632,40 @@ "max_duration": 5000, "duration_increment": 180 }, + { + "id": "druid_cause_rot_terrain", + "type": "SPELL", + "name": "Cause Rot Terrain Rot", + "description": "The ruin terrain effect of the Cause Rot spell. It's a bug if you have it directly.", + "effect": "ter_transform", + "effect_str": "ter_druid_cause_rot_terrain", + "shape": "blast", + "valid_targets": [ "hostile", "ground" ], + "flags": [ "SOMATIC", "NO_PROJECTILE", "CONCENTRATE", "VERBAL", "IGNORE_WALLS" ], + "max_level": 25, + "spell_class": "DRUID", + "min_aoe": 5, + "max_aoe": 50, + "aoe_increment": 1.8 + }, + { + "id": "druid_cause_rot_terrain_bash", + "type": "SPELL", + "name": "Cause Rot Terrain Bash", + "description": "The bash terrain effect of the Cause Rot spell. It's a bug if you have it directly. It would be nice if this could take effect gradually but that's now how terrain bash works.", + "effect": "bash", + "shape": "blast", + "valid_targets": [ "hostile", "ground" ], + "flags": [ "SOMATIC", "NO_PROJECTILE", "CONCENTRATE", "VERBAL", "IGNORE_WALLS" ], + "max_level": 25, + "spell_class": "DRUID", + "min_aoe": 5, + "max_aoe": 50, + "aoe_increment": 1.8, + "min_damage": 20, + "max_damage": 170, + "damage_increment": 6 + }, { "id": "druid_healing", "type": "SPELL", diff --git a/data/mods/Magiclysm/ter_fur_transform/ter_fur_transform.json b/data/mods/Magiclysm/ter_fur_transform/ter_fur_transform.json index 46e697e18d232..58f20cbeb7750 100644 --- a/data/mods/Magiclysm/ter_fur_transform/ter_fur_transform.json +++ b/data/mods/Magiclysm/ter_fur_transform/ter_fur_transform.json @@ -154,6 +154,35 @@ "result": "t_grass", "valid_terrain": [ "t_grass_dead" ], "message": "Life springs anew from the dead grass." + }, + { + "result": [ + [ "t_tree_birch", 32 ], + [ "t_tree_elm", 32 ], + [ "t_tree_cottonwood", 32 ], + [ "t_tree_basswood", 32 ], + [ "t_tree_alder", 32 ], + [ "t_tree_pine", 64 ], + [ "t_tree_maple", 64 ], + [ "t_tree_willow", 64 ], + [ "t_tree_hickory_harvested", 32 ], + [ "t_tree_walnut_harvested", 16 ], + [ "t_tree_butternut", 4 ], + [ "t_tree_chestnut_harvested", 8 ], + [ "t_tree_hazelnut_harvested", 2 ], + [ "t_tree_beech", 4 ], + [ "t_tree_blackjack", 8 ], + [ "t_tree_apple_harvested", 2 ], + [ "t_tree_cherry_harvested", 2 ], + [ "t_tree_juniper", 2 ], + [ "t_tree_pear_harvested", 2 ], + [ "t_tree_plum_harvested", 2 ], + [ "t_tree_elderberry_harvested", 2 ], + [ "t_tree_mulberry_harvested", 2 ], + [ "t_tree_sassafras", 3 ] + ], + "valid_terrain": [ "t_tree_very_dead" ], + "message": "The withered, desiccated tree springs back to life." } ] }, @@ -293,6 +322,132 @@ } ] }, + { + "type": "ter_furn_transform", + "id": "ter_druid_cause_rot_terrain", + "terrain": [ + { + "result": "t_dirt", + "valid_terrain": [ + "t_grass", + "t_grass_alien", + "t_grass_dead", + "t_bamboo_long", + "t_grass_long", + "t_bamboo_tall", + "t_grass_tall", + "t_bamboo", + "t_bamboo_harvested", + "t_shrub", + "t_shrub_rose", + "t_shrub_lilac", + "t_shrub_grape", + "t_shrub_peanut", + "t_shrub_blueberry", + "t_shrub_hydrangea", + "t_shrub_raspberry", + "t_shrub_strawberry", + "t_shrub_blackberry", + "t_shrub_huckleberry", + "t_shrub_rose_harvested", + "t_shrub_grape_harvested", + "t_shrub_lilac_harvested", + "t_shrub_peanut_harvested", + "t_shrub_raspberry_harvested", + "t_shrub_blueberry_harvested", + "t_shrub_hydrangea_harvested", + "t_shrub_blackberry_harvested", + "t_shrub_strawberry_harvested", + "t_shrub_huckleberry_harvested", + "t_forestfloor", + "t_moss", + "t_underbrush", + "t_underbrush_harvested_spring", + "t_underbrush_harvested_summer", + "t_underbrush_harvested_autumn", + "t_underbrush_harvested_winter", + "t_fern", + "t_fern_harvested", + "t_tree_young" + ], + "message": "The plants wither and rot into nothingness in seconds!" + }, + { + "result": "t_tree_very_dead", + "valid_terrain": [ + "t_tree", + "t_tree_elm", + "t_tree_harvested", + "t_tree_plum_harvested", + "t_tree_pine_harvested", + "t_tree_dead", + "t_tree_pear", + "t_tree_plum", + "t_tree_pear_harvested", + "t_tree_pine", + "t_tree_maple", + "t_tree_apple", + "t_tree_beech", + "t_tree_alder_harvested", + "t_tree_peach_harvested", + "t_tree_peach", + "t_tree_birch", + "t_tree_birch_harvested", + "t_tree_maple_tapped", + "t_tree_pecan_harvested", + "t_tree_beech_harvested", + "t_tree_apple_harvested", + "t_tree_pecan", + "t_tree_alder", + "t_tree_walnut", + "t_tree_almond_harvested", + "t_tree_willow_harvested", + "t_tree_willow", + "t_tree_walnut_harvested", + "t_tree_fungal", + "t_tree_cherry_harvested", + "t_tree_cherry", + "t_tree_coffee_harvested", + "t_tree_coffee", + "t_tree_almond", + "t_tree_hickory_harvested", + "t_tree_hickory", + "t_tree_apricot_harvested", + "t_tree_apricot", + "t_tree_juniper_harvested", + "t_tree_juniper", + "t_marloss_tree", + "t_tree_chestnut_harvested", + "t_tree_chestnut", + "t_tree_mulberry_harvested", + "t_tree_mulberry", + "t_tree_basswood", + "t_tree_hazelnut_harvested", + "t_tree_hazelnut", + "t_tree_basswood_harvested", + "t_tree_pistachio_harvested", + "t_tree_pistachio", + "t_tree_deadpine", + "t_tree_butternut", + "t_tree_butternut_harvested", + "t_tree_sassafras_harvested", + "t_tree_sassafras", + "t_tree_cottonwood_harvested", + "t_tree_elderberry", + "t_tree_elderberry_harvested", + "t_tree_cottonwood", + "t_tree_blackjack", + "t_tree_dead_warped", + "t_tree_hickory_dead", + "t_tree_deadpine_warped", + "t_tree_blackjack_harvested", + "t_tree_crabapple", + "t_tree_crabapple_harvested" + ], + "message": "The trees caught in the spell crack and desiccates, their branches warping and shrinking." + } + ] + }, { "type": "ter_furn_transform", "id": "ter_druid_renew_forest", @@ -319,6 +474,7 @@ [ "t_tree_juniper", 2 ], [ "t_tree_pear_harvested", 2 ], [ "t_tree_plum_harvested", 2 ], + [ "t_tree_crabapple_harvested", 2 ], [ "t_tree_elderberry_harvested", 2 ], [ "t_tree_mulberry_harvested", 2 ], [ "t_tree_sassafras", 3 ]