Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 031e9fc

Browse files
authored
Lets skittish people dive into crates properly, rather than smashing their face into it again and again (#21506)
* Update closets.dm * Update closets.dm
1 parent 0700dab commit 031e9fc

File tree

1 file changed

+6
-3
lines changed
  • code/game/objects/structures/crates_lockers

1 file changed

+6
-3
lines changed

code/game/objects/structures/crates_lockers/closets.dm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,18 @@ GLOBAL_LIST_EMPTY(lockers)
611611
if(!open(user))
612612
to_chat(user, span_warning("It won't budge!"))
613613
return
614+
density = FALSE //otherwise it's impossible to step toward (it becomes dense again when closed)
614615
step_towards(user, T2)
616+
if(dense_when_open)
617+
density = TRUE
615618
T1 = get_turf(user)
616619
if(T1 == T2)
617-
user.resting = TRUE //so people can jump into crates without slamming the lid on their head
620+
user.density = FALSE //so people can jump into crates without slamming the lid on their head
618621
if(!close(user))
619622
to_chat(user, span_warning("You can't get [src] to close!"))
620-
user.resting = FALSE
623+
user.density = TRUE
621624
return
622-
user.resting = FALSE
625+
user.density = TRUE
623626
togglelock(user)
624627
T1.visible_message(span_warning("[user] dives into [src]!"))
625628

0 commit comments

Comments
 (0)