mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Nutrition Refactor (#12389)
This commit is contained in:
committed by
variableundefined
parent
082dcc9910
commit
86e6d85093
@@ -1398,3 +1398,11 @@ var/list/slot_equipment_priority = list( \
|
||||
suffix = "_8"
|
||||
|
||||
S.icon_state = "[initial(S.icon_state)][suffix]"
|
||||
|
||||
///Adjust the nutrition of a mob
|
||||
/mob/proc/adjust_nutrition(change)
|
||||
nutrition = max(0, nutrition + change)
|
||||
|
||||
///Force set the mob nutrition
|
||||
/mob/proc/set_nutrition(change)
|
||||
nutrition = max(0, change)
|
||||
Reference in New Issue
Block a user