So that's why it wasn't compiling. Missing Vars.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
var/hunger_threshold = NUTRITION_LEVEL_STARVING
|
||||
var/synthesizing = 0
|
||||
var/poison_amount = 5
|
||||
var/nutrition_amount = 50 // GS13
|
||||
var/message = "<span class='notice'>You feel less hungry...</span>" // GS13
|
||||
slot = ORGAN_SLOT_STOMACH_AID
|
||||
|
||||
/obj/item/organ/cyberimp/chest/nutriment/on_life()
|
||||
@@ -26,9 +28,9 @@
|
||||
|
||||
if(owner.nutrition <= hunger_threshold)
|
||||
synthesizing = TRUE
|
||||
to_chat(owner, "<span class='notice'>You feel less hungry...</span>")
|
||||
owner.adjust_nutrition(50)
|
||||
addtimer(CALLBACK(src, PROC_REF(synth_cool)), 50)
|
||||
to_chat(owner, message)
|
||||
owner.nutrition += nutrition_amount
|
||||
addtimer(CALLBACK(src,PROC_REF(synth_cool)), 50)
|
||||
|
||||
/obj/item/organ/cyberimp/chest/nutriment/proc/synth_cool()
|
||||
synthesizing = FALSE
|
||||
|
||||
Reference in New Issue
Block a user