From ae202e22b52a1a0482bf2e52609be850a5d2eb5b Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:09:44 -0400 Subject: [PATCH] GOODBYE TECHDEBT (#24408) --- code/game/objects/items/weapons/cards_ids.dm | 3 +-- code/modules/mob/living/simple_animal/bot/!bot.dm | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index a6fadb5b160..813b74fddf2 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -630,8 +630,7 @@ assignment = "Captain" /obj/item/card/id/captains_spare/New() - var/datum/job/captain/J = new/datum/job/captain - access = J.get_access() + access = get_all_accesses() ..() /obj/item/card/id/admin diff --git a/code/modules/mob/living/simple_animal/bot/!bot.dm b/code/modules/mob/living/simple_animal/bot/!bot.dm index 284f680dfe2..cf9c15ffaa6 100644 --- a/code/modules/mob/living/simple_animal/bot/!bot.dm +++ b/code/modules/mob/living/simple_animal/bot/!bot.dm @@ -638,8 +638,7 @@ Pass a positive integer as an argument to override a bot's default speed. bot_reset() // Reset a bot before setting it to call mode. var/area/end_area = get_area(waypoint) - var/datum/job/captain/All = new/datum/job/captain - access_card.access = All.get_access() // Give the bot temporary all access + access_card.access = get_all_accesses() // Give the bot temporary all access set_path(get_path_to(src, waypoint, 200, id = access_card)) calling_ai = caller // Link the AI to the bot!