From 15b7a76c91bd649cfa82efa3fb2d391ed41ffc9b Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Fri, 2 Jul 2021 14:39:58 -0400 Subject: [PATCH] Fixes syndicate teleporter saving throw bug (#16287) --- code/game/objects/items/devices/traitordevices.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 820f95ee092..ca9de14fe7c 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -273,20 +273,20 @@ effective or pretty fucking useless. /obj/item/teleporter/proc/dir_correction(mob/user) //Direction movement, screws with teleport distance and saving throw, and thus must be removed first var/temp_direction = user.dir switch(temp_direction) - if(NORTHEAST || SOUTHEAST) + if(NORTHEAST, SOUTHEAST) user.dir = EAST - if(NORTHWEST || SOUTHWEST) + if(NORTHWEST, SOUTHWEST) user.dir = WEST /obj/item/teleporter/proc/panic_teleport(mob/user, turf/destination, direction = NORTH) var/saving_throw switch(direction) - if(NORTH || SOUTH) + if(NORTH, SOUTH) if(prob(50)) saving_throw = EAST else saving_throw = WEST - if(EAST || WEST) + if(EAST, WEST) if(prob(50)) saving_throw = NORTH else