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:
kane-f
2021-06-24 16:11:27 +01:00
committed by GitHub
parent 82f1e8b517
commit c49d69431a
10 changed files with 126 additions and 10 deletions

View File

@@ -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)