Merge pull request #2089 from Verkister/ghostboop

Adds a ghost verb to alert blank pAI cards.
This commit is contained in:
Spades
2017-09-01 18:11:20 -04:00
committed by GitHub
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/mob/observer/dead/verb/paialert()
set category = "Ghost"
set name = "Blank pAI alert"
set desc = "Flash an indicator light on available blank pAI devices for a smidgen of hope."
if(usr.client.prefs.be_special & BE_PAI)
for(var/obj/item/device/paicard/p in world)
var/obj/item/device/paicard/PP = p
if(PP.pai == null)
PP.icon = 'icons/obj/pda_vr.dmi'
PP.overlays += "pai-ghostalert"
spawn(54)
PP.overlays.Cut()