Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/game/area/areas/holodeck.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

var/obj/machinery/computer/holodeck/linked
var/restricted = 0 // if true, program goes on emag list
var/minimum_sec_level = SEC_LEVEL_GREEN //override this var if you want the program to be locked to a different alert-level (eg. SEC_LEVEL_BLUE, SEC_LEVEL_RED, SEC_LEVEL_DELTA)

/*
Power tracking: Use the holodeck computer's power grid
Expand Down Expand Up @@ -77,6 +78,7 @@

/area/holodeck/rec_center/medical
name = "Holodeck - Emergency Medical"
minimum_sec_level = SEC_LEVEL_RED

/area/holodeck/rec_center/pet_lounge
name = "Holodeck - Pet Park"
Expand Down
6 changes: 4 additions & 2 deletions code/modules/holodeck/computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,13 @@
var/obj/effect/holodeck_effect/HE = e
HE.safety(active)

/obj/machinery/computer/holodeck/proc/load_program(area/A, force = FALSE, add_delay = TRUE)
/obj/machinery/computer/holodeck/proc/load_program(area/holodeck/A, force = FALSE, add_delay = TRUE)
if(!is_operational())
A = offline_program
force = TRUE

if(A.minimum_sec_level > GLOB.security_level && !force && !(obj_flags & EMAGGED))
say("ERROR. Program currently unavailiable, the security level is not high enough.")
return
if(program == A)
return
if(current_cd > world.time && !force)
Expand Down