mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +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()
|
/obj/machinery/computer/aifixer/proc/Fix()
|
||||||
use_power(1000)
|
use_power(1000)
|
||||||
occupier.adjustOxyLoss(-1, 0)
|
occupier.adjustOxyLoss(-5, 0)
|
||||||
occupier.adjustFireLoss(-1, 0)
|
occupier.adjustFireLoss(-5, 0)
|
||||||
occupier.adjustToxLoss(-1, 0)
|
occupier.adjustToxLoss(-5, 0)
|
||||||
occupier.adjustBruteLoss(-1, 0)
|
occupier.adjustBruteLoss(-5, 0)
|
||||||
occupier.updatehealth()
|
occupier.updatehealth()
|
||||||
if(occupier.health >= 0 && occupier.stat == DEAD)
|
if(occupier.health >= 0 && occupier.stat == DEAD)
|
||||||
occupier.revive(full_heal = FALSE, admin_revive = FALSE)
|
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
|
return occupier.health < 100
|
||||||
|
|
||||||
/obj/machinery/computer/aifixer/process()
|
/obj/machinery/computer/aifixer/process()
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
if(AI && AI.loc == src)
|
if(AI && AI.loc == src)
|
||||||
to_chat(AI, "<span class='userdanger'>Your core files are being wiped!</span>")
|
to_chat(AI, "<span class='userdanger'>Your core files are being wiped!</span>")
|
||||||
while(AI.stat != DEAD && flush)
|
while(AI.stat != DEAD && flush)
|
||||||
AI.adjustOxyLoss(1)
|
AI.adjustOxyLoss(5)
|
||||||
AI.updatehealth()
|
AI.updatehealth()
|
||||||
sleep(5)
|
sleep(5)
|
||||||
flush = FALSE
|
flush = FALSE
|
||||||
|
|||||||
@@ -74,10 +74,10 @@
|
|||||||
restoring = FALSE
|
restoring = FALSE
|
||||||
return
|
return
|
||||||
ai_slot.locked =TRUE
|
ai_slot.locked =TRUE
|
||||||
A.adjustOxyLoss(-1, 0)
|
A.adjustOxyLoss(-5, 0)
|
||||||
A.adjustFireLoss(-1, 0)
|
A.adjustFireLoss(-5, 0)
|
||||||
A.adjustToxLoss(-1, 0)
|
A.adjustToxLoss(-5, 0)
|
||||||
A.adjustBruteLoss(-1, 0)
|
A.adjustBruteLoss(-5, 0)
|
||||||
A.updatehealth()
|
A.updatehealth()
|
||||||
if(A.health >= 0 && A.stat == DEAD)
|
if(A.health >= 0 && A.stat == DEAD)
|
||||||
A.revive(full_heal = FALSE, admin_revive = FALSE)
|
A.revive(full_heal = FALSE, admin_revive = FALSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user