Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamySkrell committed Jan 15, 2025
1 parent b2a8900 commit 9e03d20
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 86 deletions.
16 changes: 16 additions & 0 deletions code/__DEFINES/access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -848,3 +848,19 @@
/datum/access/nuclear_missile_silo_access_high
id = ACCESS_NUCLEAR_MISSILE_SILO_HIGH
desc = "Nuclear Missile Silo Access High Security"

/datum/access/enviro_testing_facility_access_control
id = 249
desc = "Env-Test Facility Zoya, Control Access"

/datum/access/enviro_testing_facility_access_medres
id = 250
desc = "Env-Test Facility Zoya, Medical-Research Access"

/datum/access/enviro_testing_facility_access_engops
id = 251
desc = "Env-Test Facility Zoya, Engineering-Operations Access"

/datum/access/enviro_testing_facility_access_sec
id = 252
desc = "Env-Test Facility Zoya, Security Access"
18 changes: 11 additions & 7 deletions code/modules/effects/map_effects/door_helper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/// Removes access requirement on the door it is placed on top of, in the helper's direction.
/// Example use: entering a room or department requires an ID access, but leaving it is always possible without any ID.
/obj/effect/map_effect/door_helper/unres
icon_state = "unres_door"
icon_state = "door_helper_unres_door"

/obj/effect/map_effect/door_helper/unres/modify_door(obj/machinery/door/D)
D.unres_dir ^= dir
Expand All @@ -31,7 +31,7 @@

/// Ship alert level dependent access.
/obj/effect/map_effect/door_helper/level_access
icon_state = "level_door"
icon_state = "door_helper_level_door"

/// Sets access_by_level (access override based on security level) on the airlock this is spawned on.
/// For more information check the access_by_level variable on the airlock.
Expand Down Expand Up @@ -76,7 +76,7 @@

/// Locks/bolts any (lockable) door/airlock this marker is placed on.
/obj/effect/map_effect/door_helper/lock
icon_state = "locked"
icon_state = "door_helper_locked"

/obj/effect/map_effect/door_helper/lock/modify_door(obj/machinery/door/D)
. = ..()
Expand All @@ -88,12 +88,16 @@
// --------------------------

/// Adds access requirements to the door this helper is placed on.
/// Adds, not replaces. So multiple access req helpers can be placed on a door.
/obj/effect/map_effect/door_helper/access_req
icon_state = "access"
icon_state = "door_helper_access_req"

/obj/effect/map_effect/door_helper/access_req/modify_door(obj/machinery/door/door)
. = ..()
if(isairlock(door) || istype(door, /obj/machinery/door/window))
var/obj/machinery/door/airlock/airlock = door
airlock.req_access = req_access
airlock.req_one_access = req_one_access
if(!door.req_access && req_access)
door.req_access = list()
door.req_access += req_access
if(!door.req_one_access && req_one_access)
door.req_one_access = list()
door.req_one_access += req_one_access
Binary file modified icons/effects/map_effects.dmi
Binary file not shown.
Binary file modified icons/obj/item/tools/research_slip.dmi
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
name = "Anastasia-Archippos, Barren Planet"
desc = "\
Barren planet, covered in loose rocks, mountains, craters, with a expansive cave system deep underground. \
The planet, amusingly, holds a standard breathable atmosphere, and there are some traces of carbon-based life. \
The planet, however, holds a standard breathable atmosphere, and there are some traces of carbon-based life. \
Landing site is in a valley, near some facility carved into the mountain.\
"
icon_state = "globe2"
Expand Down Expand Up @@ -102,3 +102,15 @@
/obj/item/research_slip/enviro_testing_facility
icon_state = "slip_generic"
origin_tech = list(TECH_MATERIAL = 7, TECH_MAGNET = 4, TECH_DATA = 4, TECH_ENGINEERING = 6, TECH_COMBAT = 6)

/obj/effect/map_effect/door_helper/access_req/enviro_testing_facility/control
req_access = /datum/access/enviro_testing_facility_access_control::id

/obj/effect/map_effect/door_helper/access_req/enviro_testing_facility/medres
req_access = /datum/access/enviro_testing_facility_access_medres::id

/obj/effect/map_effect/door_helper/access_req/enviro_testing_facility/engops
req_access = /datum/access/enviro_testing_facility_access_engops::id

/obj/effect/map_effect/door_helper/access_req/enviro_testing_facility/sec
req_access = /datum/access/enviro_testing_facility_access_sec::id
Loading

0 comments on commit 9e03d20

Please sign in to comment.