mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
SSthrowing (#19421)
Ported SSThrowing from TG, to handle throwings. Updated movement system to the latest iteration, made it a datum as per latest iteration. Updated pass/hit handling of atoms, introduced pass_flag_self to determine what atoms allow to pass. Moved procs and defines around to make them more organized.
This commit is contained in:
@@ -340,7 +340,7 @@
|
||||
/obj/structure/stairs_railing/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
if(istype(mover,/obj/item/projectile))
|
||||
return TRUE
|
||||
if(!istype(mover) || mover.checkpass(PASSRAILING))
|
||||
if(!istype(mover) || mover.pass_flags & PASSRAILING)
|
||||
return TRUE
|
||||
if(mover.throwing)
|
||||
return TRUE
|
||||
@@ -418,7 +418,7 @@
|
||||
/obj/structure/platform/CanPass(atom/movable/mover, turf/target, height, air_group)
|
||||
if(istype(mover, /obj/item/projectile))
|
||||
return TRUE
|
||||
if(!istype(mover) || mover.checkpass(PASSRAILING))
|
||||
if(!istype(mover) || mover.pass_flags & PASSRAILING)
|
||||
return TRUE
|
||||
if(mover.throwing)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user