mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Did it in a better way
This commit is contained in:
@@ -11,13 +11,18 @@
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
flags = NOBLUDGEON
|
||||
var/mode = WAND_OPEN
|
||||
var/region_access = 1 //See access.dm
|
||||
var/region_access = list()
|
||||
var/additional_access = list()
|
||||
var/obj/item/card/id/ID
|
||||
|
||||
/obj/item/door_remote/New()
|
||||
..()
|
||||
ID = new /obj/item/card/id
|
||||
ID.access = get_region_accesses(region_access)
|
||||
for(var/region in region_access)
|
||||
ID.access += get_region_accesses(region)
|
||||
for(var/add_access in additional_access)
|
||||
ID.access += add_access
|
||||
ID.access = uniquelist(ID.access) //remove duplicates
|
||||
|
||||
/obj/item/door_remote/Destroy()
|
||||
QDEL_NULL(ID)
|
||||
@@ -70,48 +75,49 @@
|
||||
name = "omni door remote"
|
||||
desc = "This control wand can access any door on the station."
|
||||
icon_state = "gangtool-yellow"
|
||||
region_access = REGION_ALL
|
||||
region_access = list(REGION_ALL)
|
||||
|
||||
/obj/item/door_remote/captain
|
||||
name = "command door remote"
|
||||
icon_state = "gangtool-yellow"
|
||||
region_access = REGION_COMMAND
|
||||
region_access = list(REGION_COMMAND)
|
||||
|
||||
/obj/item/door_remote/chief_engineer
|
||||
name = "engineering door remote"
|
||||
icon_state = "gangtool-orange"
|
||||
region_access = REGION_ENGINEERING
|
||||
region_access = list(REGION_ENGINEERING)
|
||||
|
||||
/obj/item/door_remote/research_director
|
||||
name = "research door remote"
|
||||
icon_state = "gangtool-purple"
|
||||
region_access = REGION_RESEARCH
|
||||
region_access = list(REGION_RESEARCH)
|
||||
|
||||
/obj/item/door_remote/head_of_security
|
||||
name = "security door remote"
|
||||
icon_state = "gangtool-red"
|
||||
region_access = REGION_SECURITY
|
||||
region_access = list(REGION_SECURITY)
|
||||
|
||||
/obj/item/door_remote/quartermaster
|
||||
name = "supply door remote"
|
||||
icon_state = "gangtool-green"
|
||||
region_access = REGION_SUPPLY
|
||||
region_access = list(REGION_SUPPLY)
|
||||
|
||||
/obj/item/door_remote/chief_medical_officer
|
||||
name = "medical door remote"
|
||||
icon_state = "gangtool-blue"
|
||||
region_access = REGION_MEDBAY
|
||||
region_access = list(REGION_MEDBAY)
|
||||
|
||||
/obj/item/door_remote/civillian
|
||||
name = "civillian door remote"
|
||||
icon_state = "gangtool-white"
|
||||
region_access = REGION_HOP
|
||||
region_access = list(REGION_GENERAL, REGION_SUPPLY)
|
||||
additional_access = list(access_hop)
|
||||
|
||||
/obj/item/door_remote/centcomm
|
||||
name = "centcomm door remote"
|
||||
desc = "High-ranking NT officials only."
|
||||
icon_state = "gangtool-blue"
|
||||
region_access = REGION_CENTCOMM
|
||||
region_access = list(REGION_CENTCOMM)
|
||||
|
||||
#undef WAND_OPEN
|
||||
#undef WAND_BOLT
|
||||
|
||||
Reference in New Issue
Block a user