You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fix/noexert-exhaustion.lua
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,10 @@
5
5
--Running this script on repeat approximately at least every 350 ticks should prevent NOEXERT units from becoming Tired as a result of Individual Combat Drill.
6
6
7
7
functionisNoExert(u)
8
-
if(u.curse.rem_tags1.NOEXERT) then--tag removal overrides tag addition, so if the NOEXERT tag is removed the unit cannot be NOEXERT.
8
+
if(u.uwss_remove_caste_flag.NOEXERT) then--tag removal overrides tag addition, so if the NOEXERT tag is removed the unit cannot be NOEXERT.
9
9
returnfalse
10
10
end
11
-
if(u.curse.add_tags1.NOEXERT) then--if the tag hasn't been removed, and the unit has a curse that adds it, they must be NOEXERT.
11
+
if(u.uwss_add_caste_flag.NOEXERT) then--if the tag hasn't been removed, and the unit has a curse that adds it, they must be NOEXERT.
12
12
returntrue
13
13
end
14
14
if(dfhack.units.casteFlagSet(u.race,u.caste, df.caste_raw_flags.NOEXERT)) then--if the tag hasn't been added or removed, but their race and caste has the tag, they're NOEXERT.
0 commit comments