Skip to content

Commit

Permalink
[s] Fixing cleanbot AI related CI runtimes (#750)
Browse files Browse the repository at this point in the history
* [Testing] Fixing cleanbot AI related CI runtimes

* Update find_and_set.dm

* Why does this still keep happening?!!?!?

* Update cleanbot_ai.dm
  • Loading branch information
vinylspiders authored and FFMirrorBot committed Feb 3, 2024
1 parent d513c01 commit 76a72a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/datums/ai/generic/find_and_set.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
if (controller.blackboard_key_exists(set_key))
finish_action(controller, TRUE)
return
// NOVA EDIT ADDITION START - TODO: REVERT TO TG ONCE FIX COMES IN
if(QDELETED(controller.pawn))
finish_action(controller, FALSE)
return
// NOVA ADDITION END
var/find_this_thing = search_tactic(controller, locate_path, search_range)
if(QDELETED(controller.pawn) || isnull(find_this_thing))
if(isnull(find_this_thing)) // NOVA EDIT CHANGE - TODO: REVERT TO TG ONCE FIX COMES IN
finish_action(controller, FALSE)
return
controller.set_blackboard_key(set_key, find_this_thing)
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/living/basic/bots/cleanbot/cleanbot_ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
var/list/found = typecache_filter_list(oview(search_range, controller.pawn), locate_paths)
var/list/ignore_list = controller.blackboard[BB_TEMPORARY_IGNORE_LIST]
for(var/atom/found_item in found)
// NOVA EDIT ADDITION START - TODO: REVERT TO TG ONCE FIX COMES IN
if(QDELETED(controller.pawn))
break
// NOVA EDIT ADDITION END
if(LAZYACCESS(ignore_list, REF(found_item)))
continue
var/list/path = get_path_to(controller.pawn, found_item, max_distance = BOT_CLEAN_PATH_LIMIT, access = controller.get_access())
Expand Down

0 comments on commit 76a72a6

Please sign in to comment.