Skip to content

Commit

Permalink
Make the random random, thanks again Kapu.
Browse files Browse the repository at this point in the history
  • Loading branch information
GenericDM committed Sep 27, 2023
1 parent dcede54 commit 9cec65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/structures/crateshelf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
crate.layer = BELOW_OBJ_LAYER // Reset the crates back to default visual state
crate.pixel_y = 0
crate.forceMove(dump_turf)
step_rand(crate) // Shuffle the crates around as though they've fallen down
step(crate, pick(GLOB.alldirs)) // Shuffle the crates around as though they've fallen down
crate.SpinAnimation(rand(4,7), 1)
if(prob(10))
if(crate.open()) // Break some open, cause a little chaos
Expand Down

0 comments on commit 9cec65b

Please sign in to comment.