Removes access loss on ID contamination/digestion.

This commit is contained in:
Heroman
2021-05-02 09:56:34 +10:00
parent 7a49a51438
commit 4a2866255c
4 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ var/list/gurgled_overlays = list(
// Special handling of gurgle_contaminate
//////////////
/obj/item/weapon/card/id/gurgle_contaminate(var/atom/movable/item_storage = null)
digest_act(item_storage) //Digesting these anyway
digest_act(item_storage) //Contamination and digestion does same thing to these
return TRUE
/obj/item/device/pda/gurgle_contaminate(var/atom/movable/item_storage = null)
+1 -9
View File
@@ -55,8 +55,6 @@
/////////////
/obj/item/weapon/hand_tele/digest_act(var/atom/movable/item_storage = null)
return FALSE
/obj/item/weapon/card/id/gold/captain/spare/digest_act(var/atom/movable/item_storage = null)
return FALSE
/obj/item/device/aicard/digest_act(var/atom/movable/item_storage = null)
return FALSE
/obj/item/device/paicard/digest_act(var/atom/movable/item_storage = null)
@@ -78,20 +76,14 @@
// Some special treatment
/////////////
/obj/item/weapon/card/id
var/lost_access = list()
/obj/item/weapon/card/id/digest_act(atom/movable/item_storage = null)
desc = "A partially digested card that has seen better days. The damage appears to be only cosmetic, but the access codes need to be reprogrammed at the HoP office or ID restoration terminal."
desc = "A partially digested card that has seen better days. The damage appears to be only cosmetic."
if(!sprite_stack || !istype(sprite_stack) || !(sprite_stack.len))
icon = 'icons/obj/card_vr.dmi'
icon_state = "[initial(icon_state)]_digested"
else
sprite_stack += "digested"
update_icon()
if(!(LAZYLEN(lost_access)) && LAZYLEN(access))
lost_access = access //Do not forget what access we lose
access = list() // Then lose it
return FALSE
/obj/item/weapon/reagent_containers/food/digest_act(atom/movable/item_storage = null)