From 1bdf9319e311da2e52113aab4a2f629c04a111f6 Mon Sep 17 00:00:00 2001 From: "Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm" Date: Thu, 12 Dec 2024 20:43:01 -0600 Subject: [PATCH 1/2] Initial commit --- data/mods/Magiclysm/Spells/druid.json | 37 ++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/data/mods/Magiclysm/Spells/druid.json b/data/mods/Magiclysm/Spells/druid.json index 14a2dc18f3e5e..59dfda1815d67 100644 --- a/data/mods/Magiclysm/Spells/druid.json +++ b/data/mods/Magiclysm/Spells/druid.json @@ -387,6 +387,8 @@ "difficulty": 6, "base_casting_time": 600, "base_energy_cost": 25, + "final_energy_cost": 10, + "energy_increment": -1, "extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ], "max_level": 20, "min_aoe": 1, @@ -1052,7 +1054,7 @@ "id": "druid_renew_forest_spell", "type": "SPELL", "name": "Renewing the Forest", - "description": "While outdoors and not underground, the druid can create a profusion of life around themselves, causing grass to grow through pavement, bushes and flowers to sprout, and trees to grow to full height in moments.", + "description": "While outdoors and not underground, the druid can create a profusion of life around themselves, causing grass to grow through pavement, bushes and flowers to sprout, and trees to grow to full height in moments.\n\nIn addition to mana, this spell also requires hit points to cast and will fail if you are too injured.", "flags": [ "CHANNELING_SPELL", "SOMATIC", "VERBAL" ], "valid_targets": [ "self" ], "max_level": 25, @@ -1062,7 +1064,7 @@ "effect": "effect_on_condition", "effect_str": "EOC_DRUID_RENEW_FOREST_SPELL", "energy_source": "MANA", - "base_energy_cost": 1500, + "base_energy_cost": 150, "base_casting_time": 6000, "extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ] }, @@ -1075,7 +1077,36 @@ { "id": "EOC_DRUID_RENEW_FOREST_SPELL_2", "condition": { "math": [ "u_val('pos_z') == 0" ] }, - "effect": [ { "u_cast_spell": { "id": "druid_renew_forest_spell_real" } } ], + "effect": [ + { "math": [ "u_renew_forest_hp_cost = max( (25 - (u_spell_level('druid_renew_forest_spell') / 2 ) ), 15 )" ] }, + { + "if": { + "and": [ + { "math": [ "u_hp('arm_l') > u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('arm_r') > u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('leg_l') > u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('leg_r') > u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('torso') > u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('head') > u_renew_forest_hp_cost" ] } + ] + }, + "then": [ + { + "u_transform_radius": { + "math": [ "( (u_spell_level('druid_renew_forest_spell') * rng(0.8,1.2) ) + rng(1.5,4)) * channeling_proficiency_modifier()" ] + }, + "ter_furn_transform": "ter_druid_renew_forest" + }, + { "math": [ "u_hp('arm_l') -= u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('arm_r') -= u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('leg_l') -= u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('leg_r') -= u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('torso') -= u_renew_forest_hp_cost" ] }, + { "math": [ "u_hp('head') -= u_renew_forest_hp_cost" ] } + ], + "else": [ { "u_message": "You do not have enough life force to donate it to renew the forest!", "type": "bad" } ] + } + ], "false_effect": { "u_message": "You must be on the surface and not on a building's upper stories to cast Renewing the Forest!", "type": "bad" From 385e27fb27f3875c6c23510e95bfa4c1f479c0b6 Mon Sep 17 00:00:00 2001 From: "Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm" Date: Thu, 12 Dec 2024 22:30:31 -0600 Subject: [PATCH 2/2] Kick tests