Chance for quiet belly growls if HONGRY

This commit is contained in:
Poojawa
2019-03-27 10:58:38 -05:00
parent 88d6cf7da8
commit d4503e77de
8 changed files with 11 additions and 1 deletions
@@ -1144,6 +1144,13 @@ GLOBAL_LIST_EMPTY(roundstart_races)
H.update_inv_w_uniform()
H.update_inv_wear_suit()
if(H.noisy && H.nutrition <= NUTRITION_LEVEL_HUNGRY)
if(prob(10))
playsound(get_turf(H),"hunger_sounds",15,0,-5,1,ignore_walls = FALSE,channel=CHANNEL_PRED)
else if(H.noisy && H.nutrition <= NUTRITION_LEVEL_STARVING)
if(prob(10))
playsound(get_turf(H),"hunger_sounds",35,0,-5,1,ignore_walls = FALSE,channel=CHANNEL_PRED)
// nutrition decrease and satiety
if (H.nutrition > 0 && H.stat != DEAD && !H.has_trait(TRAIT_NOHUNGER))
// THEY HUNGER