Skip to content

Commit

Permalink
Смятые стикеры можно выбросить в мусорку (#13741)
Browse files Browse the repository at this point in the history
* fix place crumpled sticker into disposal bin

* Update code/modules/paperwork/stickers.dm

Co-authored-by: NinjaPikachuska <[email protected]>

---------

Co-authored-by: NinjaPikachuska <[email protected]>
  • Loading branch information
Slex and NinjaPikachuska authored Jan 28, 2025
1 parent a5886a1 commit 42eaea1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/paperwork/stickers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
return
if(!istype(target, /obj/structure) && !ismachinery(target))
return
if (crumpled)
return ..()

var/list/click_params = params2list(params)
var/matrix/M = matrix()
Expand Down
6 changes: 6 additions & 0 deletions code/modules/recycling/disposal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,14 @@
for(var/mob/living/holdermob in I.contents)
holdermob.log_combat(usr, "placed in disposals")

if(istype(I, /obj/item/weapon/paper/sticker))
var/obj/item/weapon/paper/sticker/S = I
if (!S.crumpled)
return

if(!I || !I.canremove || I.flags & NODROP)
return

user.drop_from_inventory(I, src)

user.visible_message("<span class='notice'>[user.name] places \the [I] into the [src].</span>", self_message = "<span class='notice'>You place \the [I] into the [src].</span>")
Expand Down

0 comments on commit 42eaea1

Please sign in to comment.