Skip to content

Commit

Permalink
[Xedra Evolved] Fix Lilit trait gain EoC (#79404)
Browse files Browse the repository at this point in the history
* Initial commit

* Move effect check to active EoC

* Kick test
  • Loading branch information
Standing-Storm authored Jan 29, 2025
1 parent e78df8b commit a96bf09
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions data/mods/Xedra_Evolved/mutations/xe_lilin_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@
"id": "EOC_LILIN_GAIN_POWERS_AT_NIGHT_SETUP",
"recurrence": { "math": [ "time_until('sunset')" ] },
"//": "Lilin have a small chance to gain powers if they're outside under the moon, every night. Each time they gain powers it increases the counter until the next time they can gain more powers.",
"condition": {
"and": [ "u_is_outside", { "u_has_trait": "LILIN_TRAITS" }, { "not": { "u_has_effect": "effect_gained_lilin_power" } } ]
},
"condition": { "u_has_trait": "LILIN_TRAITS" },
"deactivate_condition": { "not": { "u_has_trait": "LILIN_TRAITS" } },
"effect": [ { "run_eocs": "EOC_LILIN_GAIN_POWERS_AT_NIGHT_ACTIVE", "time_in_future": [ "1 hours", "2 hours" ] } ]
},
Expand All @@ -139,7 +137,8 @@
"and": [
"u_is_outside",
{ "not": "is_day" },
{ "x_in_y_chance": { "x": { "math": [ "u_lilin_amount_of_ruach_spent_for_powers" ] }, "y": 250 } }
{ "x_in_y_chance": { "x": { "math": [ "u_lilin_amount_of_ruach_spent_for_powers" ] }, "y": 250 } },
{ "not": { "u_has_effect": "effect_gained_lilin_power" } }
]
},
"effect": [
Expand Down Expand Up @@ -168,7 +167,12 @@
]
}
],
"false_effect": [ { "run_eocs": "EOC_LILIN_GAIN_POWERS_AT_NIGHT_ACTIVE", "time_in_future": [ "1 hours", "2 hours" ] } ]
"false_effect": [
{
"if": { "not": "is_day" },
"then": [ { "run_eocs": "EOC_LILIN_GAIN_POWERS_AT_NIGHT_ACTIVE", "time_in_future": [ "1 hours", "2 hours" ] } ]
}
]
},
{
"type": "effect_on_condition",
Expand Down

0 comments on commit a96bf09

Please sign in to comment.