Boxing Ring files & Icons

Currently uses procs from window.dm. Might change in the future.
This commit is contained in:
DHA
2020-02-12 06:41:04 -08:00
parent f58b80aa67
commit 4adfbb57f4
5 changed files with 48 additions and 0 deletions
@@ -0,0 +1,32 @@
/obj/structure/boxingrope
name = "Boxing Ropes"
desc = "Do not exit the ring."
density = 1
anchored = 1
icon = 'icons/obj/boxing_rope_ch.dmi'
icon_state = "ringrope"
layer = OBJ_LAYER
/obj/structure/boxingrope/CanPass(atom/movable/mover, turf/target) //Taken from window.dm
if(istype(mover) && mover.checkpass(PASSGLASS))
return TRUE
if((get_dir(loc, target) & dir) || (get_dir(mover, target) == turn(dir, 180)))
return !density
else
return TRUE
/obj/structure/boxingrope/CheckExit(atom/movable/O as mob|obj, target as turf)
if(istype(O) && O.checkpass(PASSGLASS))
return 1
if(get_dir(O.loc, target) == dir)
return 0
return 1
/obj/structure/boxingropeenter
name = "Ring entrance"
desc = "Do not exit the ring."
density = 0
anchored = 1
icon = 'icons/obj/boxing_rope_ch.dmi'
icon_state = "ringrope"
layer = OBJ_LAYER