Skip to content

Commit

Permalink
stop phones from going in lockers/crates
Browse files Browse the repository at this point in the history
  • Loading branch information
VileBeggar committed Aug 2, 2024
1 parent 807ebaa commit f0c2873
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/crates_lockers/closets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@
var/obj/item/explosive/plastic/P = I
if(P.active)
continue
if(istype(I, /obj/item/phone))
continue
var/item_size = ceil(I.w_class / 2)
if(stored_units + item_size > storage_capacity)
continue
Expand Down
2 changes: 2 additions & 0 deletions code/game/objects/structures/crates_lockers/crates.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
var/obj/structure/bed/B = O
if(B.buckled_mob)
continue
if(istype(O, /obj/item/phone))
continue
O.forceMove(src)
itemcount++

Expand Down

0 comments on commit f0c2873

Please sign in to comment.