mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 01:54:25 +01:00
Removes access loss on ID contamination/digestion.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user