mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 16:45:42 +00:00
Moves holodeck code to modules/holodeck. Repaths holodeck structures a little. Cleans holodeck code and prepares for additional features (multiple holodecks, etc). Should fix #4828. Necessary map bugfixen for Asteroid, Disc, Dream, Meta, and TG. Adds Lounge, Emergency Medical, pet center, and holdout room to the rec holodeck. All items spawned by the holodeck will do only stamina damage, except when emagged. This allows emergency medical to be staffed with scalpels and bonesaws and such. Emergency medical has some functioning equipment but the only drugs available are in the sleeper.
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
/obj/structure/window/holo
|
|
name = "reinforced window"
|
|
icon = 'icons/obj/structures.dmi'
|
|
icon_state = "rwindow"
|
|
desc = "A window. It has an electric hum to it."
|
|
density = 1
|
|
layer = 3.2//Just above doors
|
|
pressure_resistance = 4*ONE_ATMOSPHERE
|
|
anchored = 1.0
|
|
flags = ON_BORDER
|
|
maxhealth = 100
|
|
disassembled = 1 // prevents noise on destruction
|
|
|
|
/obj/structure/window/holo/New()
|
|
..()
|
|
for(var/O in contents)
|
|
qdel(O) // standard window code generates stuff no matter what we want
|
|
|
|
/obj/structure/window/holo/spawnfragments()
|
|
qdel(src)
|
|
return
|
|
|
|
/obj/structure/window/holo/attackby(var/obj/item/I, var/mob/user)
|
|
if(istype(I,/obj/item/weapon/screwdriver))
|
|
user << "You see no screws to unfasten!"
|
|
return
|
|
return ..()
|
|
|
|
/obj/structure/window/holo/hit(var/damage, var/sound_effect = 1)
|
|
. = ..()
|
|
spawn(50) // self-healing
|
|
health += damage
|
|
|
|
/obj/structure/window/holo/opaque
|
|
name = "tinted window"
|
|
opacity = 1
|
|
|
|
/obj/structure/window/holo/fulltile
|
|
dir = 5
|
|
maxhealth = 250
|
|
|
|
/obj/structure/window/holo/opaque/fulltile
|
|
dir = 5
|
|
maxhealth = 250 |