Merge pull request #7022 from Citadel-Station-13/upstream-merge-38294

[MIRROR] Readds hunger slowdown
This commit is contained in:
deathride58
2018-06-09 04:45:08 +00:00
committed by GitHub
@@ -1260,6 +1260,10 @@ GLOBAL_LIST_EMPTY(roundstart_races)
. += ((health_deficiency-39) / 75) // CIT CHANGE - adds -39 to health deficiency penalty to make the transition to low health movement a little less jarring
else
. += ((health_deficiency-39) / 25) // CIT CHANGE - ditto
if(CONFIG_GET(flag/disable_human_mood))
var/hungry = (500 - H.nutrition) / 5 //So overeat would be 100 and default level would be 80
if((hungry >= 70) && !flight) //Being hungry will still allow you to use a flightsuit/wings.
. += hungry / 50
GET_COMPONENT_FROM(mood, /datum/component/mood, H)
if(mood && !flight) //How can depression slow you down if you can just fly away from your problems?