mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
Because the wings were in fact made of wax ## About The Pull Request Storage goes to the very bottom of the interaction chain, hardcoded in on `/atom`. This is not preferred, obviously, but it ends up being a lot less snowflaking overall. Tables also go at the very bottom by extending `base_item_interaction`. Fixes #83742 Fixes #84434 Fixes #83982 Fixes #85516 Fixes #84990 Fixes #84890 Closes #85036 Closes #84025 (RMB places it on the table.) Closes #86616 Other changes: Refactored pod storage to be less jank. Patches some exploits around it. ## Why It's Good For The Game Should make a lot more interactions a lot more reliable... hopefully ## Changelog 🆑 Melbert refactor: Storage and Tables are now a lower priority action, meaning some uses of items on storage should work... better, now. Here's hoping at least, report any oddities. refactor: Note: For an overwhelming majority of items, **combat mode** will attempt to attack/insert into the target, while **non-combat-mode** will attempt to use on a target. This means screwdrivering or emagging a MODsuit must be done on non-combat-mode, as combat mode will simply put the screwdriver or emag into its storage. Same applies to tables, though when in doubt, RMB may help (for things which are also weapons, like mops). refactor: Refactored escape pod storage, now they actually properly show as unlocked on red alert and above. /🆑
20 lines
915 B
Plaintext
20 lines
915 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 user.combat_mode ? NONE : ITEM_INTERACT_SUCCESS
|