mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* 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
22 lines
533 B
Plaintext
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>")
|