Added a message to placing an item in your own storage container (bags, etc.) (#20679)

Title
This commit is contained in:
FlamingLily
2025-05-09 06:56:12 +00:00
committed by GitHub
parent 1b0fec7352
commit 00cdeb02d1
2 changed files with 63 additions and 7 deletions
@@ -595,13 +595,11 @@
add_fingerprint(user)
if(!prevent_warning)
for(var/mob/M in viewers(user, null))
if(M == usr)
continue
else if (M in range(1)) //If someone is standing close enough, they can tell what it is...
M.show_message(SPAN_NOTICE("\The [user] puts [W] into [src]."))
else if (W && W.w_class >= WEIGHT_CLASS_NORMAL) //Otherwise they can only see large or normal items from a distance...
M.show_message(SPAN_NOTICE("\The [user] puts [W] into [src]."))
if(W?.w_class >= WEIGHT_CLASS_NORMAL)
user.visible_message(SPAN_NOTICE("\The [user] puts [W] into [src]."), SPAN_NOTICE("You put [W] into [src]."))
else
user.visible_message(SPAN_NOTICE("\The [user] puts [W] into [src]."), SPAN_NOTICE("You slip [W] into [src]."), null, 2)
orient2hud(user)
if(user.s_active)
user.s_active.show_to(user)