Files
Bubberstation/code/game/objects/items/taster.dm
SkyratBot b540aaf8ab [MIRROR] Afterattack is dead, long live Afterattack (#28128)
* Afterattack is dead, long live Afterattack

* wew

* fixes

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2024-06-15 04:02:11 +02:00

20 lines
889 B
Plaintext

/obj/item/taster
name = "taster"
desc = "Tastes things, so you don't have to!"
icon = 'icons/obj/medical/organs/organs.dmi'
icon_state = "tongue"
w_class = WEIGHT_CLASS_TINY
var/taste_sensitivity = 15
/obj/item/taster/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)
if(!interacting_with.reagents)
to_chat(user, span_notice("[src] cannot taste [interacting_with], since [interacting_with.p_they()] [interacting_with.p_have()] have no reagents."))
else if(interacting_with.reagents.total_volume == 0)
to_chat(user, span_notice("[src] cannot taste [interacting_with], since [interacting_with.p_they()] [interacting_with.p_are()] empty."))
else
var/message = interacting_with.reagents.generate_taste_message(user, taste_sensitivity)
to_chat(user, span_notice("[src] tastes <i>[message]</i> in [interacting_with]."))
return ITEM_INTERACT_SUCCESS