Nutrition Refactor (#12389)

This commit is contained in:
Fox McCloud
2019-09-24 15:17:55 -07:00
committed by variableundefined
parent 082dcc9910
commit 86e6d85093
40 changed files with 135 additions and 111 deletions
+1 -1
View File
@@ -111,7 +111,7 @@
return
playsound(loc, 'sound/items/eatfood.ogg', 50, 0)
to_chat(user, "<span class='notice'>You take a [huffable ? "huff" : "bite"] of the [name]. Delicious!</span>")
user.nutrition += 5
user.adjust_nutrition(5)
if(uses)
uses -= 5
if(uses <= 0)
+1 -1
View File
@@ -31,7 +31,7 @@
if(muncher && isdrask(muncher))
to_chat(user, "You take a bite of the [name]. Delicious!")
playsound(user.loc, 'sound/items/eatfood.ogg', 50, 0)
user.nutrition += 2
user.adjust_nutrition(2)
else if(istype(target,/obj/effect/decal/cleanable))
user.visible_message("<span class='warning'>[user] begins to scrub \the [target.name] out with [src].</span>")
if(do_after(user, cleanspeed, target = target) && target)