Moves randomized hunger/thirst setup from jobs subsystem to human/initialize (#7646)

With this, bluespace technicians, emergency responders and other spawned humans without jobs will no longer start out hungry/thirsty.
This commit is contained in:
fernerr
2019-12-14 00:10:35 +02:00
committed by Erki
parent 8c5e4e2cfa
commit 480f537afb
3 changed files with 10 additions and 8 deletions
@@ -27,6 +27,12 @@
if(mind)
mind.name = real_name
// Randomize nutrition and hydration. Defines are in __defines/mobs.dm
if(max_nutrition > 0)
nutrition = rand(CREW_MINIMUM_NUTRITION*100, CREW_MAXIMUM_NUTRITION*100) * max_nutrition * 0.01
if(max_hydration > 0)
hydration = rand(CREW_MINIMUM_HYDRATION*100, CREW_MAXIMUM_HYDRATION*100) * max_hydration * 0.01
hud_list[HEALTH_HUD] = new /image/hud_overlay('icons/mob/hud_med.dmi', src, "100")
hud_list[STATUS_HUD] = new /image/hud_overlay('icons/mob/hud.dmi', src, "hudhealthy")
hud_list[ID_HUD] = new /image/hud_overlay('icons/hud/hud_security.dmi', src, "hudunknown")