mirror of
https://github.com/KabKebab/GS13.git
synced 2026-02-09 23:27:37 +00:00
a
This commit is contained in:
17
GainStation13/code/mechanics/fatness.dm
Normal file
17
GainStation13/code/mechanics/fatness.dm
Normal file
@@ -0,0 +1,17 @@
|
||||
#define MINIMUM_FATNESS_LEVEL = 0
|
||||
|
||||
/mob/living/carbon
|
||||
///What level of fatness is the parent mob at?
|
||||
var/fatness = 0
|
||||
///How full is the parent mob?
|
||||
var/fullness = FULLNESS_LEVEL_HALF_FULL
|
||||
|
||||
///Adjusts the fatness level of the parent mob. Positive numbers increase fatness, negative numbers remove fatness.
|
||||
/mob/living/carbon/proc/adjust_fatness(adjustment_amount)
|
||||
if(!adjustment_amount)
|
||||
return FALSE
|
||||
|
||||
fatness += adjustment_amount
|
||||
fatness = max(adjustment_amount, MINIMUM_FATNESS_LEVEL) //It would be a little silly if someone got negative fat.
|
||||
return TRUE
|
||||
|
||||
@@ -60,8 +60,7 @@
|
||||
var/drowsyness = 0//Carbon
|
||||
var/dizziness = 0//Carbon
|
||||
var/jitteriness = 0//Carbon
|
||||
var/fatness = 0//Carbon, GS13 addition
|
||||
var/fullness = FULLNESS_LEVEL_HALF_FULL//Carbon, GS13 addition
|
||||
|
||||
var/nutrition = NUTRITION_LEVEL_START_MIN // randomised in Initialize
|
||||
var/thirst = THIRST_LEVEL_START_MIN //same for this
|
||||
var/satiety = 0//Carbon
|
||||
|
||||
@@ -3316,6 +3316,7 @@
|
||||
#include "code\modules\VR\vr_sleeper.dm"
|
||||
#include "code\modules\zombie\items.dm"
|
||||
#include "code\modules\zombie\organs.dm"
|
||||
#include "GainStation13\code\mechanics\fatness.dm"
|
||||
#include "GainStation13\code\modules\mob\living\emote.dm"
|
||||
#include "GainStation13\code\modules\reagents\chemistry\reagents\consumable_reagents.dm"
|
||||
#include "GainStation13\code\modules\reagents\chemistry\recipes\fatchem.dm"
|
||||
|
||||
Reference in New Issue
Block a user