mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
fixes and defines
This commit is contained in:
+11
-1
@@ -220,4 +220,14 @@
|
||||
#define R_HAND_LAYER 28
|
||||
#define TARGETED_LAYER 29 //BS12: Layer for the target overlay from weapon targeting system
|
||||
#define FIRE_LAYER 30 //If you're on fire
|
||||
#define TOTAL_LAYERS 30
|
||||
#define TOTAL_LAYERS 30
|
||||
|
||||
///Access Region Codes///
|
||||
#define REGION_ALL 0
|
||||
#define REGION_GENERAL 1
|
||||
#define REGION_SECURITY 2
|
||||
#define REGION_MEDBAY 3
|
||||
#define REGION_RESEARCH 4
|
||||
#define REGION_ENGINEERING 5
|
||||
#define REGION_SUPPLY 6
|
||||
#define REGION_COMMAND 7
|
||||
+20
-20
@@ -249,43 +249,43 @@
|
||||
/proc/get_absolutely_all_accesses()
|
||||
return (get_all_accesses() | get_all_centcom_access() | get_all_syndicate_access() | get_all_misc_access())
|
||||
|
||||
/proc/get_region_accesses(var/code)
|
||||
/proc/get_region_accesses(code)
|
||||
switch(code)
|
||||
if(0)
|
||||
if(REGION_ALL)
|
||||
return get_all_accesses()
|
||||
if(1) //station general
|
||||
if(REGION_GENERAL) //station general
|
||||
return list(access_kitchen,access_bar, access_hydroponics, access_janitor, access_chapel_office, access_crematorium, access_library, access_theatre, access_lawyer, access_magistrate, access_clown, access_mime)
|
||||
if(2) //security
|
||||
if(REGION_SECURITY) //security
|
||||
return list(access_sec_doors, access_weapons, access_security, access_brig, access_armory, access_forensics_lockers, access_court, access_pilot, access_hos)
|
||||
if(3) //medbay
|
||||
if(REGION_MEDBAY) //medbay
|
||||
return list(access_medical, access_genetics, access_morgue, access_chemistry, access_psychiatrist, access_virology, access_surgery, access_cmo, access_paramedic)
|
||||
if(4) //research
|
||||
if(REGION_RESEARCH) //research
|
||||
return list(access_research, access_tox, access_tox_storage, access_genetics, access_robotics, access_xenobiology, access_xenoarch, access_minisat, access_rd)
|
||||
if(5) //engineering and maintenance
|
||||
if(REGION_ENGINEERING) //engineering and maintenance
|
||||
return list(access_construction, access_maint_tunnels, access_engine, access_engine_equip, access_external_airlocks, access_tech_storage, access_atmospherics, access_minisat, access_ce, access_mechanic)
|
||||
if(6) //supply
|
||||
if(REGION_SUPPLY) //supply
|
||||
return list(access_mailsorting, access_mining, access_mining_station, access_mineral_storeroom, access_cargo, access_qm)
|
||||
if(7) //command
|
||||
if(REGION_COMMAND) //command
|
||||
return list(access_heads, access_RC_announce, access_keycard_auth, access_change_ids, access_ai_upload, access_teleporter, access_eva, access_tcomsat, access_gateway, access_all_personal_lockers, access_heads_vault, access_blueshield, access_ntrep, access_hop, access_captain)
|
||||
|
||||
/proc/get_region_accesses_name(var/code)
|
||||
/proc/get_region_accesses_name(code)
|
||||
switch(code)
|
||||
if(0)
|
||||
if(REGION_ALL)
|
||||
return "All"
|
||||
if(1) //security
|
||||
if(REGION_GENERAL) //station general
|
||||
return "General"
|
||||
if(REGION_SECURITY) //security
|
||||
return "Security"
|
||||
if(2) //medbay
|
||||
if(REGION_MEDBAY) //medbay
|
||||
return "Medbay"
|
||||
if(3) //research
|
||||
if(REGION_RESEARCH) //research
|
||||
return "Research"
|
||||
if(4) //engineering and maintenance
|
||||
if(REGION_ENGINEERING) //engineering and maintenance
|
||||
return "Engineering"
|
||||
if(5) //command
|
||||
return "Command"
|
||||
if(6) //station general
|
||||
return "Station General"
|
||||
if(7) //supply
|
||||
if(REGION_SUPPLY) //supply
|
||||
return "Supply"
|
||||
if(REGION_COMMAND) //command
|
||||
return "Command"
|
||||
|
||||
|
||||
/proc/get_access_desc(A)
|
||||
|
||||
@@ -62,42 +62,42 @@
|
||||
name = "omni door remote"
|
||||
desc = "This control wand can access any door on the station."
|
||||
icon_state = "gangtool-yellow"
|
||||
region_access = 0
|
||||
region_access = REGION_ALL
|
||||
|
||||
/obj/item/weapon/door_remote/captain
|
||||
name = "command door remote"
|
||||
icon_state = "gangtool-yellow"
|
||||
region_access = 7
|
||||
region_access = REGION_COMMAND
|
||||
|
||||
/obj/item/weapon/door_remote/chief_engineer
|
||||
name = "engineering door remote"
|
||||
icon_state = "gangtool-orange"
|
||||
region_access = 5
|
||||
region_access = REGION_ENGINEERING
|
||||
|
||||
/obj/item/weapon/door_remote/research_director
|
||||
name = "research door remote"
|
||||
icon_state = "gangtool-purple"
|
||||
region_access = 4
|
||||
region_access = REGION_RESEARCH
|
||||
|
||||
/obj/item/weapon/door_remote/head_of_security
|
||||
name = "security door remote"
|
||||
icon_state = "gangtool-red"
|
||||
region_access = 2
|
||||
region_access = REGION_SECURITY
|
||||
|
||||
/obj/item/weapon/door_remote/quartermaster
|
||||
name = "supply door remote"
|
||||
icon_state = "gangtool-green"
|
||||
region_access = 6
|
||||
region_access = REGION_SUPPLY
|
||||
|
||||
/obj/item/weapon/door_remote/chief_medical_officer
|
||||
name = "medical door remote"
|
||||
icon_state = "gangtool-blue"
|
||||
region_access = 3
|
||||
region_access = REGION_MEDBAY
|
||||
|
||||
/obj/item/weapon/door_remote/civillian
|
||||
name = "civillian door remote"
|
||||
icon_state = "gangtool-white"
|
||||
region_access = 1
|
||||
region_access = REGION_GENERAL
|
||||
|
||||
#undef WAND_OPEN
|
||||
#undef WAND_BOLT
|
||||
|
||||
Reference in New Issue
Block a user