mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
* Update AI health after healing damage in integrity restorer * Also feex legacy AI inegrity restorer. * Update IntelliCard icon when AI is successfully revived. * Clean up proc arguments * Feex
This commit is contained in:
@@ -62,9 +62,10 @@
|
||||
|
||||
/obj/machinery/computer/aifixer/proc/Fix()
|
||||
use_power(1000)
|
||||
occupier.adjustOxyLoss(-5, 0, FALSE)
|
||||
occupier.adjustFireLoss(-5, 0, FALSE)
|
||||
occupier.adjustBruteLoss(-5, 0)
|
||||
occupier.adjustOxyLoss(-5, FALSE)
|
||||
occupier.adjustFireLoss(-5, FALSE)
|
||||
occupier.adjustBruteLoss(-5, FALSE)
|
||||
occupier.updatehealth()
|
||||
if(occupier.health >= 0 && occupier.stat == DEAD)
|
||||
occupier.revive(full_heal = FALSE, admin_revive = FALSE)
|
||||
if(!occupier.radio_enabled)
|
||||
|
||||
@@ -71,12 +71,18 @@
|
||||
ai_slot.locked = FALSE
|
||||
restoring = FALSE
|
||||
return
|
||||
ai_slot.locked =TRUE
|
||||
A.adjustOxyLoss(-5, 0, FALSE)
|
||||
A.adjustFireLoss(-5, 0, FALSE)
|
||||
A.adjustBruteLoss(-5, 0)
|
||||
ai_slot.locked = TRUE
|
||||
A.adjustOxyLoss(-5, FALSE)
|
||||
A.adjustFireLoss(-5, FALSE)
|
||||
A.adjustBruteLoss(-5, FALSE)
|
||||
|
||||
// Please don't forget to update health, otherwise the below if statements will probably always fail.
|
||||
A.updatehealth()
|
||||
|
||||
if(A.health >= 0 && A.stat == DEAD)
|
||||
A.revive(full_heal = FALSE, admin_revive = FALSE)
|
||||
cardhold.update_icon()
|
||||
|
||||
// Finished restoring
|
||||
if(A.health >= 100)
|
||||
ai_slot.locked = FALSE
|
||||
|
||||
Reference in New Issue
Block a user