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/hunger_threshold = NUTRITION_LEVEL_STARVING
|
||||||
var/synthesizing = 0
|
var/synthesizing = 0
|
||||||
var/poison_amount = 5
|
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
|
slot = ORGAN_SLOT_STOMACH_AID
|
||||||
|
|
||||||
/obj/item/organ/cyberimp/chest/nutriment/on_life()
|
/obj/item/organ/cyberimp/chest/nutriment/on_life()
|
||||||
@@ -26,9 +28,9 @@
|
|||||||
|
|
||||||
if(owner.nutrition <= hunger_threshold)
|
if(owner.nutrition <= hunger_threshold)
|
||||||
synthesizing = TRUE
|
synthesizing = TRUE
|
||||||
to_chat(owner, "<span class='notice'>You feel less hungry...</span>")
|
to_chat(owner, message)
|
||||||
owner.adjust_nutrition(50)
|
owner.nutrition += nutrition_amount
|
||||||
addtimer(CALLBACK(src, PROC_REF(synth_cool)), 50)
|
addtimer(CALLBACK(src,PROC_REF(synth_cool)), 50)
|
||||||
|
|
||||||
/obj/item/organ/cyberimp/chest/nutriment/proc/synth_cool()
|
/obj/item/organ/cyberimp/chest/nutriment/proc/synth_cool()
|
||||||
synthesizing = FALSE
|
synthesizing = FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user