Merge pull request #6429 from Heroman3003/idfix

Fixes editing colony director IDs editing global 'station access' list
This commit is contained in:
Anewbe
2019-08-29 17:26:45 -05:00
committed by VirgoBot
parent a006728e5d
commit 083a0634a0
3 changed files with 6 additions and 6 deletions

View File

@@ -47,8 +47,8 @@ var/datum/antagonist/highlander/highlanders
var/obj/item/weapon/card/id/W = new(player)
W.name = "[player.real_name]'s ID Card"
W.icon_state = "centcom"
W.access = get_all_station_access()
W.access += get_all_centcom_access()
W.access = get_all_station_access().Copy
W.access |= get_all_centcom_access()
W.assignment = "Highlander"
W.registered_name = player.real_name
player.equip_to_slot_or_del(W, slot_wear_id)

View File

@@ -171,7 +171,7 @@
/obj/item/weapon/card/id/synthetic/Initialize()
. = ..()
access = get_all_station_access() + access_synth
access = get_all_station_access().Copy() + access_synth
/obj/item/weapon/card/id/centcom
name = "\improper CentCom. ID"
@@ -182,7 +182,7 @@
/obj/item/weapon/card/id/centcom/Initialize()
. = ..()
access = get_all_centcom_access()
access = get_all_centcom_access().Copy()
/obj/item/weapon/card/id/centcom/station/Initialize()
. = ..()

View File

@@ -282,11 +282,11 @@
var/obj/item/device/pda/pda = H.wear_id
id = pda.id
id.icon_state = "gold"
id.access = get_all_accesses()
id.access = get_all_accesses().Copy()
else
var/obj/item/weapon/card/id/id = new/obj/item/weapon/card/id(M);
id.icon_state = "gold"
id.access = get_all_accesses()
id.access = get_all_accesses().Copy()
id.registered_name = H.real_name
id.assignment = "Colony Director"
id.name = "[id.registered_name]'s ID Card ([id.assignment])"