forked from TauCetiStation/TauCetiClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
light_modes.dm
217 lines (156 loc) · 3.82 KB
/
light_modes.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
var/global/list/datum/light_mode/light_modes_by_type
var/global/list/datum/light_mode/light_modes_by_name // for admins, may differ in content from light_modes_by_type
#define DEFAULT_RANGE 7
#define DEFAULT_POWER 0.8
/datum/light_mode
var/name
var/color
var/power
var/range // minimum is 1.4, see MINIMUM_USEFUL_LIGHT_RANGE
/datum/light_mode/New()
if(!name) // don't check admin created modes
return
// todo: we can adjust color and calculate power from difference
var/adjusted_color = adjust_to_white(color)
if(adjusted_color != color)
WARNING("Light mode \"[name]\" ([type]) color \"[color]\" is too dark! Please use adjusted color: \"[adjusted_color]\", and change darkness with \"power\"/\"range\" parameters!")
/* Defaults for old dumb lamps */
/datum/light_mode/default
name = "Default"
color = "#faf6ff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/default/bulb
name = "Default Bulb"
color = "#ffaa66"
power = DEFAULT_POWER
range = 4
/datum/light_mode/default/bulb/emergency
name = "Default Emergency"
color = "#ff272a"
power = DEFAULT_POWER
range = 6
/datum/light_mode/default/spot // check range, only for cenctomm lamps!
name = "Default Spot"
range = 12
power = DEFAULT_POWER
/datum/light_mode/default/dim // default fallback mode, if something was broken with smartlight code
name = "Default Dim"
power = 0.5
range = 4
/* Department light */
/datum/light_mode/rnd
name = "RnD"
//color = "#e3cddf"
color = "#ffddff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/medbay
name = "MedBay"
color = "#e8e9ff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/brig
name = "Brig"
color = "#ffeedd"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/brig/dark
name = "Dark Brig"
power = 0.7
range = 6
/datum/light_mode/engineering
name = "Engineering"
//color = "#f3e9ca"
color = "#fff5d6"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/cargo
name = "Cargo"
//color = "#eee1d3"
color = "#fff2e4"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/* Customs for new smart lamps */
/datum/light_mode/soft
name = "Soft"
color = "#ffe4c9"
power = DEFAULT_POWER //todo: ex-nightshift, should we adapt another for day ?
range = DEFAULT_RANGE
/datum/light_mode/hard
name = "Hard"
color = "#e8e9ff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/k3000
name = "3000k"
color = "#ffb46b"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/k4000
name = "4000k"
color = "#ffd1a3"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/k5000
name = "5000k"
color = "#ffe4ce"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/k6000
name = "6000k"
color = "#fff3ef"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/shadows_soft
name = "Shadows Soft"
color = "#ffe4c9"
power = 0.5
range = 5
/datum/light_mode/shadows_hard
name = "Shadows Hard"
color = "#e8e9ff"
power = 0.5
range = 5
/datum/light_mode/horror
name = "Horror"
color = "#e8e9ff"
power = 0.5
range = 4
/datum/light_mode/code_red
name = "Code Red"
//color = "#690101"
color = "#ff9797"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/blue_night
name = "Blue Night"
//color = "#22566a"
color = "#b7ebff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/soft_blue
name = "Soft Blue"
//color = "#009eda"
color = "#25c3ff"
power = DEFAULT_POWER
range = DEFAULT_RANGE
/datum/light_mode/neon
name = "Neon"
//color = "#b77ad0"
color = "#e6a9ff"
power = DEFAULT_POWER
range = 6
/datum/light_mode/neon_dark
name = "Neon Dark"
//color = "#a339ce"
color = "#d46aff"
power = DEFAULT_POWER
range = 6
/datum/light_mode/code_delta
name = "Code Delta"
color = "#ff0915"
power = DEFAULT_POWER
range = 6
#undef DEFAULT_RANGE
#undef DEFAULT_POWER