Agent ID Buff (#8918)

The agent ID card now makes you invisible to the AI when electronic warfare is enabled.
    The price of the agent ID card have been upped to 4, from 3.
    Agent IDs now have a charge, which lasts for a few minutes. When the charge runs out, electronic warfare is disabled.

Credits to Loaf (the man of many names) from Nebula for teaching me this technique.
This commit is contained in:
Geeves
2020-05-25 19:22:41 +03:00
committed by GitHub
parent 74a0f05ef2
commit 344630ea29
9 changed files with 113 additions and 6 deletions
+4 -3
View File
@@ -38,6 +38,7 @@
return
if(usr.unEquip(I))
target.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea.
usr.visible_message(span("notice", "\The [usr] handed \the [I] to \the [target]."), span("notice", "You give \the [I] to \the [target]."))
I.on_give(usr, target)
if(!QDELETED(I)) // if on_give deletes the item, we don't want runtimes below
target.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea.
usr.visible_message(span("notice", "\The [usr] handed \the [I] to \the [target]."), span("notice", "You give \the [I] to \the [target]."))
@@ -14,6 +14,9 @@
blind.invisibility = 101
client.screen.Add( blind, flash )
for(var/image/obfuscation_image in SSai_obfuscation.get_obfuscation_images())
client.images += obfuscation_image
if(stat != DEAD)
for(var/obj/machinery/ai_status_display/O in SSmachinery.all_status_displays) //change status
O.mode = 1