Skip to content

Commit

Permalink
Spiderlings on move_manager (#28244)
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnyMan3595 authored Feb 5, 2025
1 parent a8a580b commit 37dfa54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/effects/spiders.dm
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@

/obj/structure/spider/spiderling/Destroy()
STOP_PROCESSING(SSobj, src)
// Release possible ref if a walk is still being processed
walk_to(src, 0)
// Cancel our movement.
GLOB.move_manager.stop_looping(src)
entry_vent = null
if(amount_grown < 100)
new /obj/effect/decal/cleanable/spiderling_remains(get_turf(src))
Expand Down Expand Up @@ -175,7 +175,7 @@
for(var/obj/machinery/atmospherics/unary/vent_pump/v in view(7,src))
if(!v.welded)
entry_vent = v
walk_to(src, entry_vent, 1)
GLOB.move_manager.home_onto(src, entry_vent, 1, 10)
break
if(isturf(loc))
amount_grown += rand(0,2)
Expand Down Expand Up @@ -214,7 +214,7 @@
available_turfs += S
if(!length(available_turfs))
return FALSE
walk_to(src, pick(available_turfs))
GLOB.move_manager.home_onto(src, pick(available_turfs), 1, 10)
return TRUE

/obj/structure/spider/spiderling/decompile_act(obj/item/matter_decompiler/C, mob/user)
Expand Down

0 comments on commit 37dfa54

Please sign in to comment.