Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-buff immovable rods #27985

Merged
merged 2 commits into from
Jan 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
More deadly collisions.
FunnyMan3595 committed Jan 15, 2025
commit 4fc3c4e02694b9558d2af9d130c47dc9dd5fa826
13 changes: 11 additions & 2 deletions code/modules/events/immovable_rod.dm
Original file line number Diff line number Diff line change
@@ -91,8 +91,17 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
if(isnull(newloc))
// The turf is dead, long live the turf!
newloc = loc
for(var/atom/victim as anything in newloc)
clong_thing(victim)

while(TRUE)
var/hit_something_dense = FALSE
for(var/atom/victim as anything in newloc)
clong_thing(victim)
if(victim.density)
hit_something_dense = TRUE

// Keep hitting stuff until there's nothing dense or we randomly go through it.
if(!hit_something_dense || prob(25))
break

/obj/effect/immovablerod/proc/clong_turf(turf/victim)
if(!victim.density)