Skip to content

Commit

Permalink
gears and shorter wanders
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Dec 1, 2024
1 parent 8a49ed1 commit f547a9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/mob/living/critter/ai/artifact_robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

/datum/aiTask/prioritizer/artifact_recycler/New()
..()
transition_tasks += holder.get_instance(/datum/aiTask/timed/wander, list(src.holder, src))
transition_tasks += holder.get_instance(/datum/aiTask/timed/wander/short, list(src.holder, src))
transition_tasks += holder.get_instance(/datum/aiTask/sequence/goalbased/recycle_random_object, list(src.holder, src))

/datum/aiTask/sequence/goalbased/recycle_random_object
Expand Down Expand Up @@ -242,8 +242,8 @@
name = "recycle object subtask"
duration = 3 SECONDS
callback_proc = PROC_REF(produce_object)
action_icon = 'icons/obj/scrap.dmi'
action_icon_state = "Crusher_1"
action_icon = 'icons/effects/effects.dmi'
action_icon_state = "gears"
end_message = null
interrupt_flags = INTERRUPT_MOVE | INTERRUPT_STUNNED | INTERRUPT_ACTION

Expand Down
4 changes: 4 additions & 0 deletions code/mob/living/critter/ai/shared.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
holder?.stop_move() // Just in case they yeet themselves out of existance
holder?.owner.move_dir = null // clear out direction so it doesn't get latched when client is attached

/datum/aiTask/timed/wander/short
minimum_task_ticks = 1
maximum_task_ticks = 3

///////////////////////////////////////////////////////////////////////////////////////////////////////////
// TARGETED TASK
// a timed task that also relates to a target and the acquisition of said target
Expand Down

0 comments on commit f547a9d

Please sign in to comment.