Skip to content

Commit

Permalink
Update living.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Aug 25, 2024
1 parent 99aee84 commit 49cee73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@

/// Returns mob_swap_mode for Bump() with other mobs
/mob/living/proc/return_mob_swap_mode(mob/living/target)
if(moving_diagonally && (get_dir(src, target) in GLOB.cardinals) && get_step(src, dir).Enter(src, loc) && (target.faction == faction || target.move_resist <= move_force))
return PHASING
if(move_force > target.move_resist || target.a_intent == INTENT_HELP || target.restrained())
return SWAPPING
if(moving_diagonally && (get_dir(src, target) in GLOB.cardinals) && get_step(src, dir).Enter(src, loc))
return PHASING
return NO_SWAP

//Called when we want to push an atom/movable
Expand Down

0 comments on commit 49cee73

Please sign in to comment.