mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
New mime uplink spell: Invisible Un-wall (#29706)
* Basis of spell * Spellbook and uplink entry * Only mimes can read it * Spell rework * Indent fix * Table hotfix * Checks to prevent players breaking some maps and whatnot * Reimplementation as requested * Movables... * Further reimplementation * Typo * Duration handle fix * Documenting spell * Duration has to be defined itself * Description fix * Allowing turfs to be targeted * Trying this to include turfs * Annoying workaround but it'll do * Removing from bundle * New recoil * Fix * Fix * Works better in uncross * Here too * Oh wow * Performance tweak * This is redundant * Requested fixes Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -83,6 +83,8 @@
|
||||
to_chat(runner,"<span class='warning'>You're exhausted! You can't run anymore!</span>")
|
||||
|
||||
/obj/machinery/power/treadmill/Uncross(var/atom/movable/mover, var/turf/target)
|
||||
if(locate(/obj/effect/unwall_field) in loc) //Annoying workaround for this -kanef
|
||||
return 1
|
||||
if(istype(mover) && mover.checkpass(PASSGLASS))
|
||||
return 1
|
||||
if((flow_flags & ON_BORDER) && (mover.dir == dir))
|
||||
@@ -91,6 +93,8 @@
|
||||
return 1
|
||||
|
||||
/obj/machinery/power/treadmill/Cross(atom/movable/mover, turf/target, height=1.5, air_group = 0)
|
||||
if(locate(/obj/effect/unwall_field) in loc) //Annoying workaround for this -kanef
|
||||
return 1
|
||||
if(istype(mover) && mover.checkpass(PASSGLASS))
|
||||
return 1
|
||||
if(get_dir(loc, target) == dir || get_dir(loc, mover) == dir)
|
||||
|
||||
Reference in New Issue
Block a user