So that's why it wasn't compiling. Missing Vars.

This commit is contained in:
brightkitsune
2025-01-24 18:05:36 +00:00
committed by GitHub
parent 1a73b7e405
commit ea97d2a789

View File

@@ -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