From e9f3a5d8ce4636f84f31f40ae6ac56c1c4c2505c Mon Sep 17 00:00:00 2001 From: casswedson Date: Sun, 9 Apr 2023 16:38:44 -0500 Subject: [PATCH] fix: item spawning spells with no min/max damage if a spell with the effect `spawn_item` does not have a defined min/max damage it will not spawn anything at any level (given it doesn't have something like damage increment) setting the values manually just makes sense, just in case, so it always spawns something at level 1 scraped a bunch of data in search of spells that spawn items and do not have min/max damage defined, there were some purpose of change: how _dare_ you make my favorite spell repelling arc useless as it does not spawn anything >:( --- data/mods/Aftershock/items/comestibles/comestibles.json | 2 +- data/mods/Aftershock/spells.json | 6 +++--- data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json | 2 ++ data/mods/Magiclysm/Spells/item_only.json | 2 ++ data/mods/Magiclysm/Spells/kelvinist.json | 4 ++++ data/mods/Magiclysm/Spells/stormshaper.json | 4 ++++ data/mods/Xedra_Evolved/spells/classless_spells.json | 2 ++ 7 files changed, 18 insertions(+), 4 deletions(-) diff --git a/data/mods/Aftershock/items/comestibles/comestibles.json b/data/mods/Aftershock/items/comestibles/comestibles.json index 4d9b02f8cb1a9..d85ff365141b3 100644 --- a/data/mods/Aftershock/items/comestibles/comestibles.json +++ b/data/mods/Aftershock/items/comestibles/comestibles.json @@ -26,7 +26,7 @@ "id": "cream_prot_cold", "name": { "str": "heat retention cream" }, "description": "Rub this on your skin when you are expecting exposure to extreme cold temperatures. Cannot protect from instant frostbite. Smells like the inside of a sheep.", - "use_action": { "type": "cast_spell", "spell_id": "cream_prot_cold", "no_fail": true, "level": 0 }, + "use_action": { "type": "cast_spell", "spell_id": "cream_prot_cold", "no_fail": true, "level": 1 }, "type": "COMESTIBLE", "weight": "265 g", "volume": "250ml", diff --git a/data/mods/Aftershock/spells.json b/data/mods/Aftershock/spells.json index e97fe40ee6815..aaa02b2dbb42a 100644 --- a/data/mods/Aftershock/spells.json +++ b/data/mods/Aftershock/spells.json @@ -144,9 +144,9 @@ "effect": "spawn_item", "effect_str": "cold_res_cream", "shape": "blast", - "max_level": 0, - "min_damage": 0, - "max_damage": 0, + "max_level": 1, + "min_damage": 1, + "max_damage": 1, "damage_increment": 0, "damage_type": "biological", "difficulty": 0, diff --git a/data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json b/data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json index e397dc21b6abe..72e9904f3e6ef 100644 --- a/data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json +++ b/data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json @@ -62,6 +62,8 @@ "flags": [ "CONCENTRATE", "VERBAL", "NO_LEGS" ], "difficulty": 9, "max_level": 40, + "min_damage": 1, + "max_damage": 1, "base_casting_time": 350, "base_energy_cost": 750, "min_duration": 100000, diff --git a/data/mods/Magiclysm/Spells/item_only.json b/data/mods/Magiclysm/Spells/item_only.json index 01c5e527fa043..f414a360aea2f 100644 --- a/data/mods/Magiclysm/Spells/item_only.json +++ b/data/mods/Magiclysm/Spells/item_only.json @@ -585,6 +585,8 @@ "effect": "spawn_item", "effect_str": "flask_ethereal_rebreather", "shape": "blast", + "min_damage": 1, + "max_damage": 1, "flags": [ "NO_LEGS", "SILENT" ], "min_duration": 360000, "max_duration": 360000 diff --git a/data/mods/Magiclysm/Spells/kelvinist.json b/data/mods/Magiclysm/Spells/kelvinist.json index def7efad6bbfe..d7d058b778409 100644 --- a/data/mods/Magiclysm/Spells/kelvinist.json +++ b/data/mods/Magiclysm/Spells/kelvinist.json @@ -368,6 +368,8 @@ "spell_class": "KELVINIST", "difficulty": 5, "max_level": 15, + "min_damage": 1, + "max_damage": 1, "base_casting_time": 200, "base_energy_cost": 550, "min_duration": 24000, @@ -390,6 +392,8 @@ "spell_class": "KELVINIST", "difficulty": 5, "max_level": 25, + "min_damage": 1, + "max_damage": 1, "base_casting_time": 200, "final_casting_time": 100, "casting_time_increment": -4, diff --git a/data/mods/Magiclysm/Spells/stormshaper.json b/data/mods/Magiclysm/Spells/stormshaper.json index e568a0e137bb3..6da82fd8845c0 100644 --- a/data/mods/Magiclysm/Spells/stormshaper.json +++ b/data/mods/Magiclysm/Spells/stormshaper.json @@ -403,6 +403,8 @@ "base_casting_time": 250, "base_energy_cost": 550, "max_level": 15, + "min_damage": 1, + "max_damage": 1, "min_range": 1, "max_range": 1, "min_duration": 24000, @@ -430,6 +432,8 @@ "final_energy_cost": 100, "energy_increment": -18, "max_level": 25, + "min_damage": 1, + "max_damage": 1, "min_range": 1, "max_range": 1, "min_duration": 360000, diff --git a/data/mods/Xedra_Evolved/spells/classless_spells.json b/data/mods/Xedra_Evolved/spells/classless_spells.json index 256c9518c5e0d..0d4f4d2dac6f3 100644 --- a/data/mods/Xedra_Evolved/spells/classless_spells.json +++ b/data/mods/Xedra_Evolved/spells/classless_spells.json @@ -68,6 +68,8 @@ "flags": [ "CONCENTRATE", "NO_LEGS" ], "difficulty": 4, "max_level": 15, + "min_damage": 1, + "max_damage": 1, "base_casting_time": 200, "base_energy_cost": 400, "min_duration": 21000,