mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Component processing subsystem (#19506)
Moves component processing to a subsystem, rather than have to trawl through life and add something to fire it each time in every override that doesn't call the parent.
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
target = args["loc"]
|
||||
movement_nodes = AStar(M, target, /turf/proc/AdjacentTurfsSpace, /turf/proc/Distance, 0, 30, id=M.get_visible_id())
|
||||
if("dir" in args)
|
||||
movement_nodes.Cut()
|
||||
movement_nodes = list()
|
||||
walk(M, args["dir"], walk_delay)
|
||||
if(message_type == COMSIG_LIFE)
|
||||
if(movement_nodes.len && target && (target != null))
|
||||
if(movement_nodes && movement_nodes.len && target && (target != null))
|
||||
if(movement_nodes.len > 0)
|
||||
step_to(M, movement_nodes[1])
|
||||
movement_nodes -= movement_nodes[1]
|
||||
|
||||
Reference in New Issue
Block a user