mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 01:54:52 +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:
@@ -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