diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 62df1b88e04..5cb6ad80977 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -21,6 +21,8 @@ var/dat var/busy = FALSE var/list/validSurfaces = list(/turf/simulated/floor) + var/times_eaten = 0 //How many times this crayon has been gnawed on + var/max_bites = 4 //How many times a crayon can be bitten before being depleted. You eated it /obj/item/toy/crayon/suicide_act(mob/user) user.visible_message("[user] is jamming the [name] up [user.p_their()] nose and into [user.p_their()] brain. It looks like [user.p_theyre()] trying to commit suicide.") @@ -108,17 +110,25 @@ if(!H.check_has_mouth()) to_chat(user, "You do not have a mouth!") return + times_eaten++ playsound(loc, 'sound/items/eatfood.ogg', 50, 0) - to_chat(user, "You take a [huffable ? "huff" : "bite"] of the [name]. Delicious!") user.adjust_nutrition(5) - if(uses) - uses -= 5 - if(uses <= 0) - to_chat(user, "There is no more of [name] left!") - qdel(src) + if(times_eaten < max_bites) + to_chat(user, "You take a [huffable ? "huff" : "bite"] of the [name]. Delicious!") + else + to_chat(user, "There is no more of [name] left!") + qdel(src) else ..() +/obj/item/toy/crayon/examine(mob/user) + . = ..() + if(!user.Adjacent(src) || !times_eaten) + return + if(times_eaten == 1) + . += "[src] was bitten by someone!" + else + . += "[src] was bitten multiple times!" /obj/item/toy/crayon/red name = "red crayon"