mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #6429 from Heroman3003/idfix
Fixes editing colony director IDs editing global 'station access' list
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
. = ..()
|
||||
|
||||
@@ -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])"
|
||||
|
||||
Reference in New Issue
Block a user