mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Nutrition Refactor (#12389)
This commit is contained in:
committed by
variableundefined
parent
082dcc9910
commit
86e6d85093
@@ -991,12 +991,12 @@
|
||||
/obj/machinery/hydroponics/attack_animal(mob/living/user)
|
||||
if(istype(user, /mob/living/simple_animal/diona))
|
||||
if(weedlevel > 0)
|
||||
user.nutrition += weedlevel * 15
|
||||
user.adjust_nutrition(weedlevel * 15)
|
||||
adjustWeeds(-10)
|
||||
update_icon()
|
||||
visible_message("<span class='danger'>[user] begins rooting through [src], ripping out weeds and eating them noisily.</span>","<span class='danger'>You begin rooting through [src], ripping out weeds and eating them noisily.</span>")
|
||||
else if(nutrilevel < 10)
|
||||
user.nutrition -= ((10 - nutrilevel) * 5)
|
||||
user.adjust_nutrition(-((10 - nutrilevel) * 5))
|
||||
adjustNutri(10)
|
||||
update_icon()
|
||||
visible_message("<span class='danger'>[user] secretes a trickle of green liquid from its tail, refilling [src]'s nutrient tray.</span>","<span class='danger'>You secrete a trickle of green liquid from your tail, refilling [src]'s nutrient tray.</span>")
|
||||
|
||||
Reference in New Issue
Block a user