Reworks AI backup battery system slightly, and allows (un)bolting while on backup at heavy power cost (#43952)

* power underwhelming

* Update ai_core.dm

* status page update

backup power now only shows in the status page if the AI is in the core.
This commit is contained in:
zxaber
2019-05-18 16:32:02 +02:00
committed by AnturK
parent 541b7a45e1
commit a22ffe33b1
3 changed files with 21 additions and 5 deletions
+2
View File
@@ -333,9 +333,11 @@ That prevents a few funky behaviors.
to_chat(AI, "You have been uploaded to a stationary terminal. Remote device connection restored.")
to_chat(user, "<span class='boldnotice'>Transfer successful</span>: [AI.name] ([rand(1000,9999)].exe) installed and executed successfully. Local copy has been removed.")
card.AI = null
AI.battery = circuit.battery
qdel(src)
else //If for some reason you use an empty card on an empty AI terminal.
to_chat(user, "There is no AI loaded on this terminal!")
/obj/item/circuitboard/aicore
name = "AI core (AI Core Board)" //Well, duh, but best to be consistent
var/battery = 200 //backup battery for when the AI loses power. Copied to/from AI mobs when carding, and placed here to avoid recharge via deconning the core