Makes AI Progams not function while carded (#29421)

This commit is contained in:
PollardTheDragon
2025-05-25 16:02:25 +00:00
committed by GitHub
parent 0e8cd313ff
commit 607ada8fba
2 changed files with 5 additions and 0 deletions
@@ -1394,6 +1394,8 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
aiRadio.disabledAi = TRUE //No talking on the built-in radio for you either!
if(GetComponent(/datum/component/ducttape))
QDEL_NULL(builtInCamera)
if(program_picker)
program_picker.reset_programs()
forceMove(card) //Throw AI into the card.
to_chat(src, "You have been downloaded to a mobile storage device. Remote device connection severed.")
to_chat(user, "<span class='boldnotice'>Transfer successful</span>: [name] ([rand(1000,9999)].exe) removed from host terminal and stored within local memory.")
@@ -254,6 +254,9 @@
if(istype(user.loc, /obj/machinery/power/apc))
to_chat(user, "<span class='warning'>Error: APCs do not have enough processing power to handle programs!</span>")
return
if(istype(user.loc, /obj/item/aicard))
to_chat(user, "<span class='warning'>Error: InteliCards do not have enough processing power to handle programs!</span>")
return
user.program_picker.ui_interact(user)
/// RGB Lighting - Recolors Lights