mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 11:12:14 +00:00
Makes resurrecting and killing intellicarded AIs less painful (#47362)
* Update airestorer.dm * Update aifixer.dm * Update aicard.dm * Update airestorer.dm * Update aifixer.dm
This commit is contained in:
@@ -75,13 +75,16 @@
|
||||
|
||||
/obj/machinery/computer/aifixer/proc/Fix()
|
||||
use_power(1000)
|
||||
occupier.adjustOxyLoss(-1, 0)
|
||||
occupier.adjustFireLoss(-1, 0)
|
||||
occupier.adjustToxLoss(-1, 0)
|
||||
occupier.adjustBruteLoss(-1, 0)
|
||||
occupier.adjustOxyLoss(-5, 0)
|
||||
occupier.adjustFireLoss(-5, 0)
|
||||
occupier.adjustToxLoss(-5, 0)
|
||||
occupier.adjustBruteLoss(-5, 0)
|
||||
occupier.updatehealth()
|
||||
if(occupier.health >= 0 && occupier.stat == DEAD)
|
||||
occupier.revive(full_heal = FALSE, admin_revive = FALSE)
|
||||
if(!occupier.radio_enabled)
|
||||
occupier.radio_enabled = TRUE
|
||||
to_chat(occupier, "<span class='warning'>Your Subspace Transceiver has been enabled!</span>")
|
||||
return occupier.health < 100
|
||||
|
||||
/obj/machinery/computer/aifixer/process()
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
if(AI && AI.loc == src)
|
||||
to_chat(AI, "<span class='userdanger'>Your core files are being wiped!</span>")
|
||||
while(AI.stat != DEAD && flush)
|
||||
AI.adjustOxyLoss(1)
|
||||
AI.adjustOxyLoss(5)
|
||||
AI.updatehealth()
|
||||
sleep(5)
|
||||
flush = FALSE
|
||||
|
||||
@@ -74,10 +74,10 @@
|
||||
restoring = FALSE
|
||||
return
|
||||
ai_slot.locked =TRUE
|
||||
A.adjustOxyLoss(-1, 0)
|
||||
A.adjustFireLoss(-1, 0)
|
||||
A.adjustToxLoss(-1, 0)
|
||||
A.adjustBruteLoss(-1, 0)
|
||||
A.adjustOxyLoss(-5, 0)
|
||||
A.adjustFireLoss(-5, 0)
|
||||
A.adjustToxLoss(-5, 0)
|
||||
A.adjustBruteLoss(-5, 0)
|
||||
A.updatehealth()
|
||||
if(A.health >= 0 && A.stat == DEAD)
|
||||
A.revive(full_heal = FALSE, admin_revive = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user