Skip to content

Commit

Permalink
excludes user from seeing storage insertion message (#27490)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuga-git authored Nov 30, 2024
1 parent 8da12bc commit c21be0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/game/objects/items/weapons/storage/storage_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,12 @@
add_fingerprint(user)

if(!prevent_warning)
// all mobs with clients attached, sans the item's user

// the item's user will always get a notification
to_chat(user, "<span class='notice'>You put [I] into [src].</span>")

// if the item less than normal sized, only people within 1 tile get the message, otherwise, everybody in view gets it
if(I.w_class < WEIGHT_CLASS_NORMAL)
for(var/mob/M in range(1, user))
for(var/mob/M in orange(1, user))
if(in_range(M, user))
M.show_message("<span class='notice'>[user] puts [I] into [src].</span>")
else
Expand Down

0 comments on commit c21be0b

Please sign in to comment.