Skip to content

Commit

Permalink
Greyscaling pit icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 committed Dec 12, 2023
1 parent 1d1a016 commit a9a47de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/game/objects/structures/pit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
desc = initial(desc)
open = TRUE
for(var/atom/movable/A in src)
A.forceMove(src.loc)
A.dropInto(loc)
update_icon()

/obj/structure/pit/proc/close(var/user)
Expand All @@ -57,14 +57,14 @@
open = FALSE

//If we close the pit without anything inside, just leave the soil undisturbed
var/turf/T = get_turf(src)
if(length(T.contents - src) <= 0)
if(isturf(loc))
for(var/atom/movable/A in loc)
if(A != src && !A.anchored && A != user && A.simulated)
A.forceMove(src)
if(!length(contents))
qdel(src)
return
for(var/atom/movable/A in T)
if(!A.anchored && A != user && A.simulated)
A.forceMove(src)
update_icon()
else
update_icon()

/obj/structure/pit/return_air()
return open && loc?.return_air()
Expand Down
Binary file modified icons/obj/structures/pit.dmi
Binary file not shown.

0 comments on commit a9a47de

Please sign in to comment.