Created
October 20, 2015 10:39
-
-
Save headswe/70ff5bdfad8d7653dc23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_prevFat = getFatigue player; | |
while{alive player} do { | |
_fat = getFatigue player; | |
_dfat = _fat - _prevfat; | |
if(_dfat < 0) then { | |
_unit setFatigue (_fat + _dfat/2); | |
}; | |
_prevFat = getFatigue player; | |
uisleep 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment