Skip to content

Commit

Permalink
Merge pull request tgstation#52481 from ShizCalev/singularity-pull
Browse files Browse the repository at this point in the history
move_resist INFINITY items/mobs can no longer be pulled by the singularity
  • Loading branch information
kriskog authored Jul 26, 2020
2 parents 53c53d0 + 2c654fe commit 560067a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/objs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@

/obj/singularity_pull(S, current_size)
..()
if(move_resist == INFINITY)
return
if(!anchored || current_size >= STAGE_FIVE)
step_towards(src,S)

Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,8 @@

/mob/living/singularity_pull(S, current_size)
..()
if(move_resist == INFINITY)
return
if(current_size >= STAGE_SIX) //your puny magboots/wings/whatever will not save you against supermatter singularity
throw_at(S, 14, 3, src, TRUE)
else if(!src.mob_negates_gravity())
Expand Down

0 comments on commit 560067a

Please sign in to comment.