diff --git a/data/mods/Sky_Island/mod_interactions/xedra_evolved/effects.json b/data/mods/Sky_Island/mod_interactions/xedra_evolved/effects.json new file mode 100644 index 0000000000000..096300ba6053a --- /dev/null +++ b/data/mods/Sky_Island/mod_interactions/xedra_evolved/effects.json @@ -0,0 +1,8 @@ +[ + { + "id": "effect_si_lilin_no_ruach_upgrades", + "type": "effect_type", + "name": [ "Fragile Spirit" ], + "desc": [ "Your ruach is too fragile to spend it frivilously." ] + } +] diff --git a/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs.json b/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs.json index 14551f6961924..c9bb7e2596af5 100644 --- a/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs.json +++ b/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs.json @@ -23,5 +23,26 @@ { "if": { "u_has_trait": "HOMULLUS" }, "then": { "math": [ "u_vitamin('mutagen_dollkin')", "+=", "550 " ] } }, { "if": { "u_has_trait": "ARVORE" }, "then": { "math": [ "u_vitamin('mutagen_plantkin')", "+=", "550 " ] } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_LILIN_SPEND_RUACH_FOR_POWERS", + "condition": { "math": [ "u_vitamin('lilin_ruach_vitamin') >= 240" ] }, + "effect": [ + { + "if": { "not": { "u_has_effect": "effect_si_lilin_no_ruach_upgrades" } }, + "then": [ + { "math": [ "u_vitamin('lilin_ruach_vitamin')", "-=", "240" ] }, + { "math": [ "u_lilin_amount_of_ruach_spent_for_powers_increaser", "+=", "0.75" ] }, + { + "math": [ "u_lilin_amount_of_ruach_spent_for_powers", "+=", "u_lilin_amount_of_ruach_spent_for_powers_increaser" ] + } + ], + "else": [ + { "u_message": "Your spirit is still fragile after your brush with death. You have no ruach to spare.", "type": "bad" } + ] + } + ], + "false_effect": [ { "u_message": "You don't have enough ruach to dedicate any to increasing your powers!", "type": "bad" } ] } ] diff --git a/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs_healing.json b/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs_healing.json index e43d8342ce9d7..10f52e3409500 100644 --- a/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs_healing.json +++ b/data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs_healing.json @@ -5,7 +5,10 @@ "effect": [ { "if": { "and": [ { "u_has_trait": "LILIN_TRAITS" }, { "math": [ "u_vitamin('lilin_ruach_vitamin') == 0" ] } ] }, - "then": { "math": [ "u_vitamin('lilin_ruach_vitamin')", "=", "720" ] } + "then": [ + { "math": [ "u_vitamin('lilin_ruach_vitamin')", "=", "720" ] }, + { "u_add_effect": "effect_si_lilin_no_ruach_upgrades", "duration": 259200 } + ] }, { "if": { "and": [ { "u_has_trait": "VAMPIRE" }, { "math": [ "u_vitamin('human_blood_vitamin') <= -4800" ] } ] },