From 19c4eb4dc51fdda2a7287e5578f46330f5090f8a Mon Sep 17 00:00:00 2001 From: GuardianDll <67688115+GuardianDll@users.noreply.github.com> Date: Fri, 16 Sep 2022 10:37:53 +0200 Subject: [PATCH] [Magiclysm] Soul pressure can be turned off now (#60894) * soul pressure can be turned off now * supress -> suppress * attendance -> presence --- data/mods/Magiclysm/mutations/mutations.json | 49 ++++++++++++++++++++ data/mods/Magiclysm/traits/attunements.json | 1 - 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/data/mods/Magiclysm/mutations/mutations.json b/data/mods/Magiclysm/mutations/mutations.json index 00e749f0d79aa..31512dccb5002 100644 --- a/data/mods/Magiclysm/mutations/mutations.json +++ b/data/mods/Magiclysm/mutations/mutations.json @@ -726,5 +726,54 @@ "category": [ "DRAGON_BLACK" ], "threshreq": [ "THRESH_DRAGON_BLACK" ], "spells_learned": [ [ "acid_claw", 1 ] ] + }, + { + "type": "effect_on_condition", + "id": "EOC_GIVE_SOUL_PRESSURE_OFF", + "//": "Works only once, and give you a SOUL_PRESSURE_OFF mutation. Dont know how to optimise it, so left it as it is.", + "recurrence": [ "1 s", "1 s" ], + "condition": { + "and": [ + { "u_has_trait": "SOULFIRE" }, + { + "not": { "u_has_var": "u_got_soulfire_attunement", "type": "attunement", "context": "attunement", "value": "yes" } + } + ] + }, + "deactivate_condition": { "not": { "u_has_trait": "SOULFIRE" } }, + "effect": [ + { "u_add_trait": "SOUL_PRESSURE_OFF" }, + { "u_add_var": "u_got_soulfire_attunement", "type": "attunement", "context": "attunement", "value": "yes" } + ] + }, + { + "type": "mutation", + "id": "SOUL_PRESSURE_OFF", + "starting_trait": false, + "purifiable": false, + "valid": false, + "name": { "str": "Soul Pressure" }, + "points": 0, + "active": true, + "description": "Your presence is so dangerous you can burn living creatures around you. You suppress it now.", + "transform": { + "target": "SOUL_PRESSURE_ON", + "msg_transform": "Living creatures around you start to burn!", + "active": true, + "moves": 10 + } + }, + { + "type": "mutation", + "id": "SOUL_PRESSURE_ON", + "starting_trait": false, + "purifiable": false, + "valid": false, + "active": true, + "name": { "str": "Soul Pressure (on)" }, + "points": -1, + "description": "Your presence is so dangerous you can burn living creatures around you.", + "enchantments": [ "SOULFIRE" ], + "transform": { "target": "SOUL_PRESSURE_OFF", "msg_transform": "You suppress your soul pressure.", "active": false, "moves": 10 } } ] diff --git a/data/mods/Magiclysm/traits/attunements.json b/data/mods/Magiclysm/traits/attunements.json index d1effde8110f6..9fd0a022d0972 100644 --- a/data/mods/Magiclysm/traits/attunements.json +++ b/data/mods/Magiclysm/traits/attunements.json @@ -891,7 +891,6 @@ "valid": false, "description": "The Soulfire is a phenomena of the caster's spirit binding to a fragment of a spirit of flame. This makes it possible for the Soulfire to use its namesake as an element - much like fire, it does burn, but it burns away at the soul instead of the flesh.", "spells_learned": [ [ "burn_at_both_ends", 5 ], [ "soul_afterburner", 5 ] ], - "enchantments": [ "SOULFIRE" ], "prereqs": [ "KELVINIST", "ANIMIST" ], "cancels": [ "ARTIFICER",