mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fixes corgis consuming food at warp speed
Also fixes a small issue with the code that restores corgi health when they eat.
This commit is contained in:
@@ -239,15 +239,13 @@
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/attack_animal(mob/M)
|
||||
if(isanimal(M))
|
||||
M.changeNext_move(CLICK_CD_MELEE)
|
||||
if(iscorgi(M))
|
||||
if(bitecount >= 4)
|
||||
M.visible_message("[M] [pick("burps from enjoyment", "yaps for more", "woofs twice", "looks at the area where \the [src] was")].","<span class=\"notice\">You swallow up the last part of \the [src].")
|
||||
playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
|
||||
var/mob/living/simple_animal/pet/corgi/C = M
|
||||
if (C.health <= C.maxHealth + 5)
|
||||
C.health += 5
|
||||
else
|
||||
C.health = C.maxHealth
|
||||
C.health = min(C.health + 5, C.maxHealth)
|
||||
del(src)
|
||||
else
|
||||
M.visible_message("[M] takes a bite of \the [src].","<span class=\"notice\">You take a bite of \the [src].")
|
||||
|
||||
Reference in New Issue
Block a user