Minor speedups to movement: First Blood Part 2

This commit is contained in:
vuonojenmustaturska
2017-11-14 15:00:45 -06:00
committed by CitadelStationBot
parent 9c7da6a133
commit 8136148303
27 changed files with 48 additions and 63 deletions
+2 -2
View File
@@ -100,7 +100,7 @@
/obj/structure/grille/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSGRILLE))
if(istype(mover) && (mover.pass_flags & PASSGRILLE))
return TRUE
else
if(istype(mover, /obj/item/projectile) && density)
@@ -112,7 +112,7 @@
. = !density
if(ismovableatom(caller))
var/atom/movable/mover = caller
. = . || mover.checkpass(PASSGRILLE)
. = . || (mover.pass_flags & PASSGRILLE)
/obj/structure/grille/attackby(obj/item/W, mob/user, params)
user.changeNext_move(CLICK_CD_MELEE)