Merge pull request #13199 from Very-Soft/paideath

A pAI death tweak I forgot!
This commit is contained in:
Casey
2022-06-29 02:21:47 -04:00
committed by GitHub
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -143,9 +143,9 @@
pcard.damage_random_component()
update_icon()
else if(pcard.pai.bruteloss)
pcard.pai.adjustBruteLoss(-1)
pcard.pai.adjustBruteLoss(-5)
else if(pcard.pai.fireloss)
pcard.pai.adjustFireLoss(-1)
pcard.pai.adjustFireLoss(-5)
else
charging = null
update_icon()
@@ -21,9 +21,10 @@ var/global/list/paikeys = list()
user.visible_message("<span class ='notice'>\The [user] secured \the [src]'s maintenance panel.</span>")
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
else if(pai)
panel_open = TRUE
user.visible_message("<span class ='warning'>\The [user] opened \the [src]'s maintenance panel.</span>")
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
if(do_after(user, 3 SECONDS))
panel_open = TRUE
user.visible_message("<span class ='warning'>\The [user] opened \the [src]'s maintenance panel.</span>")
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
if(istype(I,/obj/item/device/robotanalyzer))
if(!panel_open)
to_chat(user, "<span class ='warning'>The panel isn't open. You will need to unscrew it to open it.</span>")