forked from ss220club/BandaStation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrocks.dm
135 lines (114 loc) · 4.21 KB
/
rocks.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
#define CONTRASTLESS_ROCKS 'modular_bandastation/aesthetics/walls/icons/rocks/contrastless_rocks.dmi'
#define CONTRAST_ROCKS 'modular_bandastation/aesthetics/walls/icons/rocks/contrast_rocks.dmi'
#define DEFAULT_ROCKS 'modular_bandastation/aesthetics/walls/icons/rocks/default_rocks.dmi'
#define MAPPING_ROCKS 'modular_bandastation/aesthetics/walls/icons/rocks/mapping_rocks.dmi'
#define rock_color(color) MAP_SWITCH(color, null)
#define rock_icon_state(state) MAP_SWITCH("smoothrocks-0", state)
#define ROCK_COLOR "#464646"
#define ROCK_COLOR_RED "#861313"
#define ROCK_COLOR_ICE "#cde2e4"
#define ROCK_COLOR_ASH "#ccddff"
// MARK: Minerals
/turf/closed/mineral
icon = MAP_SWITCH(DEFAULT_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("rock")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR)
transform = null
/turf/closed/mineral/minimap
name = "DO NOT USE!!!"
icon = DEFAULT_ROCKS
icon_state = "smoothrocks-0"
base_icon_state = "smoothrocks"
color = ROCK_COLOR
/turf/closed/mineral/strong
icon = MAP_SWITCH(CONTRAST_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("rock2")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ASH)
/turf/closed/mineral/strong/wasteland
icon = MAP_SWITCH(CONTRAST_ROCKS, MAPPING_ROCKS)
base_icon_state = "smoothrocks"
/turf/closed/mineral/ash_rock
icon = MAP_SWITCH(CONTRAST_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("rock2")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ASH)
/turf/closed/mineral/random/stationside/asteroid
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("rock_nochance")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_RED)
/turf/closed/mineral/asteroid
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("redrock")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_RED)
// Cold rocks
/turf/closed/mineral/snowmountain
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("mountainrock")
base_icon_state = "smoothrocks"
color = rock_color(COLOR_WHITE)
/turf/closed/mineral/snowmountain/cavern
icon = MAP_SWITCH(DEFAULT_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("icerock2")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ICE)
/turf/closed/mineral/random/snow
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("mountainrock")
base_icon_state = "smoothrocks"
color = rock_color(COLOR_WHITE)
/turf/closed/mineral/random/snow/Change_Ore(ore_type, random = 0)
. = ..()
if(mineralType)
color = ROCK_COLOR_ICE
/turf/closed/mineral/random/labormineral/ice
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("mountainrock")
base_icon_state = "smoothrocks"
color = rock_color(COLOR_WHITE)
/turf/closed/mineral/gibtonite/ice
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ICE)
// MARK: Walls
/turf/closed/indestructible/rock
icon = MAP_SWITCH(DEFAULT_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("rock")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR)
smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER
smoothing_groups = SMOOTH_GROUP_CLOSED_TURFS + SMOOTH_GROUP_MINERAL_WALLS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS
/turf/closed/indestructible/rock/Initialize(mapload)
. = ..()
pixel_x = 0
pixel_y = 0
/turf/closed/indestructible/rock/snow
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("mountainrock")
base_icon_state = "smoothrocks"
color = rock_color(COLOR_WHITE)
/turf/closed/indestructible/rock/snow/ice
icon = MAP_SWITCH(CONTRASTLESS_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("icerock")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ICE)
/turf/closed/indestructible/rock/snow/ice/ore
icon = MAP_SWITCH(DEFAULT_ROCKS, MAPPING_ROCKS)
icon_state = rock_icon_state("icerock2")
base_icon_state = "smoothrocks"
color = rock_color(ROCK_COLOR_ICE)
pixel_x = 0
pixel_y = 0
#undef CONTRASTLESS_ROCKS
#undef CONTRAST_ROCKS
#undef DEFAULT_ROCKS
#undef MAPPING_ROCKS
#undef rock_color
#undef ROCK_COLOR
#undef ROCK_COLOR_RED
#undef ROCK_COLOR_ICE
#undef ROCK_COLOR_ASH