Skip to content

Commit

Permalink
Prevent deep drill unwrenching during collapse (#8338)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperioo authored Oct 20, 2023
1 parent d624f0e commit 7d0e625
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/mining/drilling/deep_drill.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
if(cave_connected)
to_chat(user, SPAN_WARNING("You have to collapse the cave first!"))
return
else if(cave_gen.is_collapsing() || cave_gen.is_cleaning())
to_chat(user, SPAN_WARNING("The cave system is being collapsed!"))
return
else if (check_surroundings())
to_chat(user, SPAN_WARNING("The space around \the [src] has to be clear of obstacles!"))
return
Expand Down

0 comments on commit 7d0e625

Please sign in to comment.