Merge pull request #4445 from CHOMPStation2/upstream-merge-13199

[MIRROR] A pAI death tweak I forgot!
This commit is contained in:
Nadyr
2022-06-30 17:45:16 -04:00
committed by GitHub
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -154,9 +154,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>")