mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
Finishes seperating ZAS logic from CanPass().
This commit is contained in:
@@ -320,19 +320,18 @@
|
||||
visible_message("<span class='notice'>[user] dunks [W] into the [src]!</span>", 3)
|
||||
return
|
||||
|
||||
/obj/structure/holohoop/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
/obj/structure/holohoop/CanPass(atom/movable/mover, turf/target)
|
||||
if (istype(mover,/obj/item) && mover.throwing)
|
||||
var/obj/item/I = mover
|
||||
if(istype(I, /obj/item/projectile))
|
||||
return
|
||||
return TRUE
|
||||
if(prob(50))
|
||||
I.loc = src.loc
|
||||
visible_message("<span class='notice'>Swish! \the [I] lands in \the [src].</span>", 3)
|
||||
I.forceMove(loc)
|
||||
visible_message(span("notice", "Swish! \the [I] lands in \the [src]."), 3)
|
||||
else
|
||||
visible_message("<span class='warning'>\The [I] bounces off of \the [src]'s rim!</span>", 3)
|
||||
return 0
|
||||
else
|
||||
return ..(mover, target, height, air_group)
|
||||
visible_message(span("warning", "\The [I] bounces off of \the [src]'s rim!"), 3)
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/machinery/readybutton
|
||||
|
||||
Reference in New Issue
Block a user