-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathholodeck.dm
58 lines (49 loc) · 1.4 KB
/
holodeck.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/area/holodeck
name = "Holodeck"
icon_state = "Holodeck"
static_lighting = FALSE
base_lighting_alpha = 255
flags_1 = NONE
///The holodeck computer that the area is being hosted by, which we use for power and such.
var/obj/machinery/computer/holodeck/linked
/*
Power tracking: Use the holodeck computer's power grid
Asserts are to avoid the inevitable infinite loops
*/
/area/holodeck/powered(chan)
if(!requires_power)
return TRUE
if(always_unpowered)
return FALSE
if(!linked)
return FALSE
var/area/A = get_area(linked)
ASSERT(!istype(A, /area/holodeck))
return A.powered(chan)
/area/holodeck/usage(chan)
if(!linked)
return FALSE
var/area/A = get_area(linked)
ASSERT(!istype(A, /area/holodeck))
return A.usage(chan)
/area/holodeck/addStaticPower(value, powerchannel)
if(!linked)
return
var/area/A = get_area(linked)
ASSERT(!istype(A, /area/holodeck))
return A.addStaticPower(value,powerchannel)
/area/holodeck/use_power(amount, chan)
if(!linked)
return FALSE
var/area/A = get_area(linked)
ASSERT(!istype(A, /area/holodeck))
return A.use_power(amount,chan)
/*
This is the standard holodeck. It is intended to allow you to
blow off steam by doing stupid things like laying down, throwing
spheres at holes, or bludgeoning people.
*/
/area/holodeck/rec_center
name = "\improper Recreational Holodeck"
/area/holodeck/rec_center/offstation_one
name = "\improper Recreational Holodeck"