Files
Yogstation/code/game/objects/items/taster.dm
Trevor Serpas 6d395a672f Afterattack() Signal (#38606)
* adds signal and modifies each call of afterattack to call it's inherited proc

* uses new macro for sendsignal()

* map fuck

* skip precommithooks

* combine and negate 2 ifs
2018-07-07 07:01:19 +01:00

22 lines
533 B
Plaintext

/obj/item/taster
name = "taster"
desc = "Tastes things, so you don't have to!"
icon = 'icons/obj/surgery.dmi'
icon_state = "tonguenormal"
w_class = WEIGHT_CLASS_TINY
var/taste_sensitivity = 15
/obj/item/taster/get_spans()
return list()
/obj/item/taster/afterattack(atom/O, mob/user, proximity)
. = ..()
if(!proximity)
return
if(O.reagents)
var/message = O.reagents.generate_taste_message(taste_sensitivity)
to_chat(user, "<span class='notice'>[src] tastes <span class='italics'>[message]</span> in [O].</span>")