mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user