Skip to content

Commit 2c765f5

Browse files
[XE] Torpor works without a do_turn_eoc now. (#83174)
1 parent 6df53fa commit 2c765f5

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

data/mods/Xedra_Evolved/mutations/vampire_trait_eocs.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,8 @@
17241724
"type": "effect_on_condition",
17251725
"id": "EOC_VAMPIRE_TORPOR_activated",
17261726
"effect": [
1727+
{ "math": [ "u_val('sleepiness') = 0" ] },
1728+
{ "math": [ "u_val('sleep_deprivation') = 0" ] },
17271729
{ "u_assign_activity": "ACT_VAMPIRE_TORPOR", "duration": "8 hours" },
17281730
{ "u_add_effect": "effect_vampire_torpor", "duration": "8 hours" }
17291731
]
@@ -1738,13 +1740,16 @@
17381740
"interruptable": false,
17391741
"interruptable_with_kb": false,
17401742
"rooted": true,
1741-
"do_turn_eoc": "EOC_VAMPIRE_TORPOR_RECOVER",
1742-
"completion_eoc": "EOC_EARTH_SLEEP_CHECK_REAL"
1743+
"completion_eoc": "EOC_REGAIN_SLEEP_AND_EARTH_SLEEP_CHECK_REAL"
17431744
},
17441745
{
17451746
"type": "effect_on_condition",
1746-
"id": "EOC_VAMPIRE_TORPOR_RECOVER",
1747-
"effect": [ { "math": [ "u_val('sleepiness') = 0" ] }, { "math": [ "u_val('sleep_deprivation') = 0" ] } ]
1747+
"id": "EOC_REGAIN_SLEEP_AND_EARTH_SLEEP_CHECK_REAL",
1748+
"effect": [
1749+
{ "math": [ "u_val('sleepiness') = 0" ] },
1750+
{ "math": [ "u_val('sleep_deprivation') = 0" ] },
1751+
{ "run_eocs": "EOC_EARTH_SLEEP_CHECK_REAL" }
1752+
]
17481753
},
17491754
{
17501755
"type": "effect_type",
@@ -1773,7 +1778,9 @@
17731778
]
17741779
}
17751780
},
1776-
{ "value": "REGEN_HP_AWAKE", "multiply": 1 }
1781+
{ "value": "REGEN_HP_AWAKE", "multiply": 1 },
1782+
{ "value": "SLEEPINESS_REGEN", "multiply": 20 },
1783+
{ "value": "SLEEPINESS", "multiply": -0.99 }
17771784
]
17781785
}
17791786
]

data/mods/Xedra_Evolved/obsoletion_and_migration/eocs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,10 @@
142142
"type": "effect_on_condition",
143143
"id": "EOC_SUN_BURN_CHECK",
144144
"effect": [ ]
145+
},
146+
{
147+
"type": "effect_on_condition",
148+
"id": "EOC_VAMPIRE_TORPOR_RECOVER",
149+
"effect": [ { "math": [ "u_val('sleepiness') = 0" ] }, { "math": [ "u_val('sleep_deprivation') = 0" ] } ]
145150
}
146151
]

0 commit comments

Comments
 (0)