From aa5d68bf38d0c8898b360aafeb3ee23cda99e989 Mon Sep 17 00:00:00 2001 From: Deniz <66401072+Oyu07@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:03:36 +0000 Subject: [PATCH] MULEBOT AI CALL Fix (#24479) * test * I hate mulebot * no need to change this apparently * INVOKE Begone, no change noticed --- code/modules/mob/living/simple_animal/bot/bot.dm | 2 ++ code/modules/mob/living/simple_animal/bot/mulebot.dm | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 1dbf4a1c62f..284f680dfe2 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -681,6 +681,8 @@ Pass a positive integer as an argument to override a bot's default speed. reset_access_timer_id = null set_path(null) ignore_job.Cut() + new_destination = null + destination = null last_target_location = null lost_target = FALSE summon_target = null diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index 9a11143d804..6036614248d 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -479,8 +479,9 @@ diag_hud_set_botmode() if(!has_power()) - on = FALSE + turn_off() return + if(!on) return @@ -607,7 +608,7 @@ /mob/living/simple_animal/bot/mulebot/proc/start_home() if(!on) return - INVOKE_ASYNC(src, PROC_REF(do_start_home)) + do_start_home() /mob/living/simple_animal/bot/mulebot/proc/do_start_home() set_destination(home_destination)