mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Migrating Code to use Proper Byond Move() Code (#8667)
* Initial Commit All CanPass replaced with cross, all CheckExit replaced with uncross * Commit #2 Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc * Commit #3 All move code has now been unhacked, all of it is functional except for border objects which still retain none of their original functionality * Commit #2 Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc * Commit #2 Cross() argment turf/target now has a standard value of src.loc, the basis for this is the fact that Cross() should technically only be called with a default value by Move() code when moving to a new turf thus everything on it the target turf should be the src.loc (reverted from commit fdee8c8b687a4d1f305bdc5f5e1a59ebeacb4702) * Fuck me * Okay Redo * Hello, I am finished
This commit is contained in:
@@ -73,7 +73,7 @@ proc/cardinalrange(var/center)
|
||||
return
|
||||
|
||||
|
||||
/obj/machinery/am_shielding/CanPass(atom/movable/mover, turf/target, height=1.5, air_group = 0)
|
||||
/obj/machinery/am_shielding/Cross(atom/movable/mover, turf/target, height=1.5, air_group = 0)
|
||||
if(air_group || (height==0)) return 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
runner.bodytemperature = max(T0C + 100,cached_temp)
|
||||
else to_chat(runner,"<span class='warning'>You're exhausted! You can't run anymore!</span>")
|
||||
|
||||
/obj/machinery/power/treadmill/CheckExit(var/atom/movable/O, var/turf/target)
|
||||
/obj/machinery/power/treadmill/Uncross(var/atom/movable/O, var/turf/target)
|
||||
if(istype(O) && O.checkpass(PASSGLASS))
|
||||
return 1
|
||||
if(get_dir(O.loc, target) == dir)
|
||||
@@ -85,10 +85,10 @@
|
||||
return 0
|
||||
return 1
|
||||
|
||||
/obj/machinery/power/treadmill/CanPass(atom/movable/mover, turf/target, height=1.5, air_group = 0)
|
||||
/obj/machinery/power/treadmill/Cross(atom/movable/mover, turf/target, height=1.5, air_group = 0)
|
||||
if(istype(mover) && mover.checkpass(PASSGLASS))
|
||||
return 1
|
||||
if(get_dir(loc, target) == dir)
|
||||
if(get_dir(loc, target) == dir || get_dir(loc, mover) == dir)
|
||||
if(air_group) return 1
|
||||
return 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user