Skip to content

Commit ef77444

Browse files
authored
Merge pull request #1444 from blake-sc/master
remove-stress also removes long-term stress, which also immediately removes stressed and haggard statuses
2 parents ceea83b + 1cd36fb commit ef77444

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Template for new versions:
4040
- `starvingdead`: ensure undead decay does not happen faster than the declared decay rate when saving and loading the game
4141

4242
## Misc Improvements
43+
- `remove-stress`: also applied to long-term stress, immediately removing stressed and haggard statuses
4344

4445
## Removed
4546

remove-stress.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ function removeStress(unit,value)
1414
if unit.status.current_soul.personality.stress > value then
1515
unit.status.current_soul.personality.stress = value
1616
end
17+
if unit.status.current_soul.personality.longterm_stress > value then
18+
unit.status.current_soul.personality.longterm_stress = value
19+
end
1720
end
1821
end
1922

0 commit comments

Comments
 (0)