mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Converted all old events to lazy_events, removed old events, renamed lazy_event to event (#30503)
* wip refactor old events * refactored events * We're not lazy anymore! I mean we're still are. We just don't call ourselves that. Lazy is the new default option. It's also the only option. God, this took so long.
This commit is contained in:
@@ -140,9 +140,9 @@
|
||||
P.reflected = TRUE//you can now get hit by the projectile you just fired. Careful with portals!
|
||||
|
||||
if(curturf.z != destturf.z)
|
||||
teleatom.lazy_invoke_event(/lazy_event/on_z_transition, list("user" = teleatom, "from_z" = curturf.z, "to_z" = destturf.z))
|
||||
teleatom.invoke_event(/event/z_transition, list("user" = teleatom, "from_z" = curturf.z, "to_z" = destturf.z))
|
||||
for(var/atom/movable/AA in recursive_type_check(teleatom))
|
||||
AA.lazy_invoke_event(/lazy_event/on_z_transition, list("user" = AA, "from_z" = curturf.z, "to_z" = destturf.z))
|
||||
AA.invoke_event(/event/z_transition, list("user" = AA, "from_z" = curturf.z, "to_z" = destturf.z))
|
||||
|
||||
if(force_teleport)
|
||||
teleatom.forceMove(destturf,TRUE)
|
||||
|
||||
Reference in New Issue
Block a user