-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathtile_types.dm
575 lines (490 loc) · 18.1 KB
/
tile_types.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
/obj/item/stack/tile
name = "broken tile"
singular_name = "broken tile"
desc = "A broken tile. This should not exist."
lefthand_file = 'icons/mob/inhands/misc/tiles_lefthand.dmi'
righthand_file = 'icons/mob/inhands/misc/tiles_righthand.dmi'
icon = 'icons/obj/tiles.dmi'
w_class = WEIGHT_CLASS_NORMAL
force = 1
throwforce = 1
throw_speed = 3
throw_range = 7
max_amount = 60
mats_per_stack = 500
/// What type of turf does this tile produce.
var/turf_type = null
/// What dir will the turf have?
var/turf_dir = SOUTH
/// Cached associative lazy list to hold the radial options for tile reskinning. See tile_reskinning.dm for more information. Pattern: list[type] -> image
var/list/tile_reskin_types
/// Cached associative lazy list to hold the radial options for tile dirs. See tile_reskinning.dm for more information.
var/list/tile_rotate_dirs
/// Allows us to replace the plating we are attacking if our baseturfs are the same.
var/replace_plating = FALSE
var/mineralType = null
novariants = TRUE
/obj/item/stack/tile/Initialize(mapload, amount)
. = ..()
pixel_x = rand(-3, 3)
pixel_y = rand(-3, 3) //randomize a little
/obj/item/stack/tile/attackby(obj/item/W, mob/user, params)
if (W.tool_behaviour == TOOL_WELDER)
if(get_amount() < 4)
to_chat(user, span_warning("You need at least four tiles to do this!"))
return
if(!mineralType)
to_chat(user, span_warning("You can not reform this!"))
return
if(W.use_tool(src, user, 0, volume=40))
if(mineralType == "plasma")
atmos_spawn_air("plasma=5;TEMP=1000")
user.visible_message(span_warning("[user.name] sets the plasma tiles on fire!"), \
span_warning("You set the plasma tiles on fire!"))
qdel(src)
return
if (mineralType == "metal")
var/obj/item/stack/sheet/metal/new_item = new(user.loc)
user.visible_message(span_notice("[user.name] shaped [src] into metal with the welding tool."), \
span_notice("You shaped [src] into metal with the welding tool."), \
span_hear("You hear welding."))
var/obj/item/stack/rods/R = src
src = null
var/replace = (user.get_inactive_held_item()==R)
R.use(4)
if (!R && replace)
user.put_in_hands(new_item)
else
var/sheet_type = text2path("/obj/item/stack/sheet/mineral/[mineralType]")
var/obj/item/stack/sheet/mineral/new_item = new sheet_type(user.loc)
user.visible_message(span_notice("[user.name] shaped [src] into a sheet with the welding tool."), \
span_notice("You shaped [src] into a sheet with the welding tool."), \
span_hear("You hear welding."))
var/obj/item/stack/rods/R = src
src = null
var/replace = (user.get_inactive_held_item()==R)
R.use(4)
if (!R && replace)
user.put_in_hands(new_item)
else
return ..()
//Grass
/obj/item/stack/tile/grass
name = "grass tile"
singular_name = "grass floor tile"
desc = "A patch of grass like they use on space golf courses."
icon_state = "tile_grass"
item_state = "tile-grass"
turf_type = /turf/open/floor/grass
resistance_flags = FLAMMABLE
//Fairygrass
/obj/item/stack/tile/fairygrass
name = "fairygrass tile"
singular_name = "fairygrass floor tile"
desc = "A patch of odd, glowing blue grass."
icon_state = "tile_fairygrass"
item_state = "tile-fairygrass"
turf_type = /turf/open/floor/grass/fairy
resistance_flags = FLAMMABLE
color = "#33CCFF"
/obj/item/stack/tile/fairygrass/white
name = "white fairygrass tile"
singular_name = "white fairygrass floor tile"
desc = "A patch of odd, glowing white grass."
turf_type = /turf/open/floor/grass/fairy/white
color = "#FFFFFF"
/obj/item/stack/tile/fairygrass/red
name = "red fairygrass tile"
singular_name = "red fairygrass floor tile"
desc = "A patch of odd, glowing red grass."
turf_type = /turf/open/floor/grass/fairy/red
color = "#FF3333"
/obj/item/stack/tile/fairygrass/yellow
name = "yellow fairygrass tile"
singular_name = "yellow fairygrass floor tile"
desc = "A patch of odd, glowing yellow grass."
turf_type = /turf/open/floor/grass/fairy/yellow
color = "#FFFF66"
/obj/item/stack/tile/fairygrass/green
name = "green fairygrass tile"
singular_name = "green fairygrass floor tile"
desc = "A patch of odd, glowing green grass."
turf_type = /turf/open/floor/grass/fairy/green
color = "#99FF99"
/obj/item/stack/tile/fairygrass/blue
name = "blue fairygrass tile"
singular_name = "blue fairygrass floor tile"
desc = "A patch of odd, glowing blue grass."
turf_type = /turf/open/floor/grass/fairy/blue
/obj/item/stack/tile/fairygrass/purple
name = "purple fairygrass tile"
singular_name = "purple fairygrass floor tile"
desc = "A patch of odd, glowing purple grass."
turf_type = /turf/open/floor/grass/fairy/purple
color = "#D966FF"
/obj/item/stack/tile/fairygrass/pink
name = "pink fairygrass tile"
singular_name = "pink fairygrass floor tile"
desc = "A patch of odd, glowing pink grass."
turf_type = /turf/open/floor/grass/fairy/pink
color = "#FFB3DA"
/obj/item/stack/tile/fairygrass/dark
name = "dark fairygrass tile"
singular_name = "dark fairygrass floor tile"
desc = "A patch of odd, light consuming grass."
turf_type = /turf/open/floor/grass/fairy/dark
color = "#410096"
//Wood
/obj/item/stack/tile/wood
name = "wood floor tile"
singular_name = "wood floor tile"
desc = "An easy to fit wood floor tile."
icon_state = "tile-wood"
item_state = "tile-wood"
turf_type = /turf/open/floor/wood
resistance_flags = FLAMMABLE
/obj/item/stack/tile/wood/parquet
name = "parquet wood floor tile"
singular_name = "parquet wood floor tile"
icon_state = "tile-wood_parquet"
turf_type = /turf/open/floor/wood/parquet
/obj/item/stack/tile/wood/large
name = "large wood floor tile"
singular_name = "large wood floor tile"
icon_state = "tile-wood_large"
turf_type = /turf/open/floor/wood/large
/obj/item/stack/tile/wood/tile
name = "tiled wood floor tile"
singular_name = "tiled wood floor tile"
icon_state = "tile-wood_tile"
turf_type = /turf/open/floor/wood/tile
//Bamboo
/obj/item/stack/tile/bamboo
name = "bamboo mat pieces"
singular_name = "bamboo mat piece"
desc = "A piece of a bamboo mat with a decorative trim."
icon_state = "tile-bamboo"
item_state = "tile-bamboo"
turf_type = /turf/open/floor/bamboo
resistance_flags = FLAMMABLE
//Basalt
/obj/item/stack/tile/basalt
name = "basalt tile"
singular_name = "basalt floor tile"
desc = "Artificially made ashy soil themed on a hostile environment."
icon_state = "tile_basalt"
item_state = "tile-basalt"
turf_type = /turf/open/floor/grass/fakebasalt
//Carpets
/obj/item/stack/tile/carpet
name = "carpet"
singular_name = "carpet"
desc = "A piece of carpet. It is the same size as a floor tile."
icon_state = "tile-carpet"
item_state = "tile-carpet"
turf_type = /turf/open/floor/carpet
resistance_flags = FLAMMABLE
tableVariant = /obj/structure/table/wood/fancy
/obj/item/stack/tile/carpet/black
name = "black carpet"
icon_state = "tile-carpet-black"
item_state = "tile-carpet-black"
turf_type = /turf/open/floor/carpet/black
tableVariant = /obj/structure/table/wood/fancy/black
/obj/item/stack/tile/carpet/blue
name = "exotic blue carpet"
icon_state = "tile-carpet-exoticblue"
item_state = "tile-carpet-exoticblue"
turf_type = /turf/open/floor/carpet/blue
tableVariant = /obj/structure/table/wood/fancy/blue
/obj/item/stack/tile/carpet/cyan
name = "cyan carpet"
icon_state = "tile-carpet-cyan"
item_state = "tile-carpet-cyan"
turf_type = /turf/open/floor/carpet/cyan
tableVariant = /obj/structure/table/wood/fancy/cyan
/obj/item/stack/tile/carpet/green
name = "exotic green carpet"
icon_state = "tile-carpet-exoticgreen"
item_state = "tile-carpet-exoticgreen"
turf_type = /turf/open/floor/carpet/green
tableVariant = /obj/structure/table/wood/fancy/green
/obj/item/stack/tile/carpet/orange
name = "orange carpet"
icon_state = "tile-carpet-orange"
item_state = "tile-carpet-orange"
turf_type = /turf/open/floor/carpet/orange
tableVariant = /obj/structure/table/wood/fancy/orange
/obj/item/stack/tile/carpet/purple
name = "exotic purple carpet"
icon_state = "tile-carpet-exoticpurple"
item_state = "tile-carpet-exoticpurple"
turf_type = /turf/open/floor/carpet/purple
tableVariant = /obj/structure/table/wood/fancy/purple
/obj/item/stack/tile/carpet/red
name = "red carpet"
icon_state = "tile-carpet-red"
item_state = "tile-carpet-red"
turf_type = /turf/open/floor/carpet/red
tableVariant = /obj/structure/table/wood/fancy/red
/obj/item/stack/tile/carpet/royalblack
name = "royal black carpet"
icon_state = "tile-carpet-royalblack"
item_state = "tile-carpet-royalblack"
turf_type = /turf/open/floor/carpet/royalblack
tableVariant = /obj/structure/table/wood/fancy/royalblack
/obj/item/stack/tile/carpet/royalblue
name = "royal blue carpet"
icon_state = "tile-carpet-royalblue"
item_state = "tile-carpet-royalblue"
turf_type = /turf/open/floor/carpet/royalblue
tableVariant = /obj/structure/table/wood/fancy/royalblue
/obj/item/stack/tile/carpet/executive
name = "executive carpet"
icon_state = "tile_carpet_executive"
item_state = "tile-carpet-royalblue"
turf_type = /turf/open/floor/carpet/executive
merge_type = /obj/item/stack/tile/carpet/executive
/obj/item/stack/tile/carpet/stellar
name = "stellar carpet"
icon_state = "tile_carpet_stellar"
item_state = "tile-carpet-royalblue"
turf_type = /turf/open/floor/carpet/stellar
merge_type = /obj/item/stack/tile/carpet/stellar
/obj/item/stack/tile/carpet/donk
name = "\improper Donk Co. promotional carpet"
icon_state = "tile_carpet_donk"
item_state = "tile-carpet-orange"
turf_type = /turf/open/floor/carpet/donk
merge_type = /obj/item/stack/tile/carpet/donk
/obj/item/stack/tile/carpet/plainblue
name = "blue carpet"
icon_state = "tile-carpet-blue"
item_state = "tile-carpet-blue"
turf_type = /turf/open/floor/carpet/plainblue
/obj/item/stack/tile/carpet/plaingreen
name = "green carpet"
icon_state = "tile-carpet-green"
item_state = "tile-carpet-green"
turf_type = /turf/open/floor/carpet/plaingreen
/obj/item/stack/tile/carpet/plainpurple
name = "purple carpet"
icon_state = "tile-carpet-purple"
item_state = "tile-carpet-purple"
turf_type = /turf/open/floor/carpet/plainpurple
/obj/item/stack/tile/carpet/fifty
amount = 50
/obj/item/stack/tile/carpet/black/fifty
amount = 50
/obj/item/stack/tile/carpet/blue/fifty
amount = 50
/obj/item/stack/tile/carpet/cyan/fifty
amount = 50
/obj/item/stack/tile/carpet/green/fifty
amount = 50
/obj/item/stack/tile/carpet/orange/fifty
amount = 50
/obj/item/stack/tile/carpet/purple/fifty
amount = 50
/obj/item/stack/tile/carpet/red/fifty
amount = 50
/obj/item/stack/tile/carpet/royalblack/fifty
amount = 50
/obj/item/stack/tile/carpet/royalblue/fifty
amount = 50
/obj/item/stack/tile/carpet/plainblue/fifty
amount = 50
/obj/item/stack/tile/carpet/plaingreen/fifty
amount = 50
/obj/item/stack/tile/carpet/plainpurple/fifty
amount = 50
/obj/item/stack/tile/fakespace
name = "astral carpet"
singular_name = "astral carpet"
desc = "A piece of carpet with a convincing star pattern."
icon_state = "tile_space"
item_state = "tile-space"
turf_type = /turf/open/floor/fakespace
resistance_flags = FLAMMABLE
merge_type = /obj/item/stack/tile/fakespace
/obj/item/stack/tile/fakespace/loaded
amount = 30
/obj/item/stack/tile/fakepit
name = "fake pits"
singular_name = "fake pit"
desc = "A piece of carpet with a forced perspective illusion of a pit. No way this could fool anyone!"
icon_state = "tile_pit"
item_state = "tile-basalt"
turf_type = /turf/open/floor/fakepit
resistance_flags = FLAMMABLE
merge_type = /obj/item/stack/tile/fakepit
/obj/item/stack/tile/fakepit/loaded
amount = 30
//High-traction
/obj/item/stack/tile/noslip
name = "high-traction floor tile"
singular_name = "high-traction floor tile"
desc = "A high-traction floor tile. It feels rubbery in your hand."
icon_state = "tile_noslip"
item_state = "tile-noslip"
turf_type = /turf/open/floor/noslip
merge_type = /obj/item/stack/tile/noslip
/obj/item/stack/tile/noslip/thirty
amount = 30
//Circuit
/obj/item/stack/tile/circuit
name = "blue circuit tile"
singular_name = "blue circuit tile"
desc = "A blue circuit tile."
icon_state = "tile_bcircuit"
item_state = "tile-bcircuit"
turf_type = /turf/open/floor/circuit
/obj/item/stack/tile/circuit/green
name = "green circuit tile"
singular_name = "green circuit tile"
desc = "A green circuit tile."
icon_state = "tile_gcircuit"
item_state = "tile-gcircuit"
turf_type = /turf/open/floor/circuit/green
/obj/item/stack/tile/circuit/green/anim
turf_type = /turf/open/floor/circuit/green/anim
/obj/item/stack/tile/circuit/red
name = "red circuit tile"
singular_name = "red circuit tile"
desc = "A red circuit tile."
icon_state = "tile_rcircuit"
item_state = "tile-rcircuit"
turf_type = /turf/open/floor/circuit/red
/obj/item/stack/tile/circuit/red/anim
turf_type = /turf/open/floor/circuit/red/anim
//Pod floor
/obj/item/stack/tile/pod
name = "pod floor tile"
singular_name = "pod floor tile"
desc = "A grooved floor tile."
icon_state = "tile_pod"
item_state = "tile-pod"
turf_type = /turf/open/floor/pod
/obj/item/stack/tile/pod/light
name = "light pod floor tile"
singular_name = "light pod floor tile"
desc = "A lightly colored grooved floor tile."
icon_state = "tile_podlight"
turf_type = /turf/open/floor/pod/light
/obj/item/stack/tile/pod/dark
name = "dark pod floor tile"
singular_name = "dark pod floor tile"
desc = "A darkly colored grooved floor tile."
icon_state = "tile_poddark"
turf_type = /turf/open/floor/pod/dark
//Plasteel (normal)
/obj/item/stack/tile/plasteel
name = "floor tile"
singular_name = "floor tile"
desc = "Those could work as a pretty decent throwing weapon."
icon_state = "tile"
item_state = "tile"
force = 6
materials = list(/datum/material/iron=500)
throwforce = 10
flags_1 = CONDUCT_1
turf_type = /turf/open/floor/plasteel
mineralType = "metal"
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 100, ACID = 70)
resistance_flags = FIRE_PROOF
matter_amount = 1
/obj/item/stack/tile/plasteel/cyborg
desc = "The ground you walk on." //Not the usual floor tile desc as that refers to throwing, Cyborgs can't do that - RR
materials = list() // All other Borg versions of items have no Metal or Glass - RR
is_cyborg = 1
cost = 125
/obj/item/stack/tile/eighties
name = "retro tile"
singular_name = "retro floor tile"
desc = "A stack of floor tiles that remind you of an age of funk."
icon_state = "tile_eighties"
turf_type = /turf/open/floor/eighties
/obj/item/stack/tile/eighties/loaded
amount = 15
//Catwalk Tiles
/obj/item/stack/tile/catwalk_tile //This is our base type, sprited to look maintenance-styled
name = "catwalk plating"
singular_name = "catwalk plating tile"
desc = "Flooring that shows its contents underneath. Engineers love it!"
icon_state = "maint_catwalk"
materials = list(/datum/material/iron=100)
turf_type = /turf/open/floor/catwalk_floor
merge_type = /obj/item/stack/tile/catwalk_tile //Just to be cleaner, these all stack with eachother
/obj/item/stack/tile/catwalk_tile/sixty
amount = 60
/obj/item/stack/tile/catwalk_tile/iron
name = "iron catwalk floor"
singular_name = "iron catwalk floor tile"
icon_state = "iron_catwalk"
turf_type = /turf/open/floor/catwalk_floor/iron
/obj/item/stack/tile/catwalk_tile/iron_white
name = "white catwalk floor"
singular_name = "white catwalk floor tile"
icon_state = "whiteiron_catwalk"
turf_type = /turf/open/floor/catwalk_floor/iron_white
/obj/item/stack/tile/catwalk_tile/iron_dark
name = "dark catwalk floor"
singular_name = "dark catwalk floor tile"
icon_state = "darkiron_catwalk"
turf_type = /turf/open/floor/catwalk_floor/iron_dark
/obj/item/stack/tile/catwalk_tile/flat_white
name = "flat white catwalk floor"
singular_name = "flat white catwalk floor tile"
icon_state = "flatwhite_catwalk"
turf_type = /turf/open/floor/catwalk_floor/flat_white
/obj/item/stack/tile/catwalk_tile/titanium
name = "titanium catwalk floor"
singular_name = "titanium catwalk floor tile"
icon_state = "titanium_catwalk"
turf_type = /turf/open/floor/catwalk_floor/titanium
/obj/item/stack/tile/catwalk_tile/iron_smooth //this is the greenish one
name = "smooth iron catwalk floor"
singular_name = "smooth iron catwalk floor tile"
icon_state = "smoothiron_catwalk"
turf_type = /turf/open/floor/catwalk_floor/iron_smooth
// Glass floors
/obj/item/stack/tile/glass
name = "glass floor"
singular_name = "glass floor tile"
desc = "Glass window floors, to let you see... Whatever that is down there."
icon_state = "tile_glass"
turf_type = /turf/open/floor/glass
item_state = "tile-glass"
merge_type = /obj/item/stack/tile/glass
mats_per_unit = list(/datum/material/glass=SHEET_MATERIAL_AMOUNT * 0.25) // 4 tiles per sheet
replace_plating = TRUE
/obj/item/stack/tile/glass/sixty
amount = 60
/obj/item/stack/tile/rglass
name = "reinforced glass floor"
singular_name = "reinforced glass floor tile"
desc = "Reinforced glass window floors. These bad boys are 50% stronger than their predecessors!"
icon_state = "tile_rglass"
item_state = "tile-rglass"
turf_type = /turf/open/floor/glass/reinforced
merge_type = /obj/item/stack/tile/rglass
mats_per_unit = list(/datum/material/iron=SHEET_MATERIAL_AMOUNT * 0.125, /datum/material/glass=SHEET_MATERIAL_AMOUNT * 0.25) // 4 tiles per sheet
replace_plating = TRUE
/obj/item/stack/tile/rglass/sixty
amount = 60
/obj/item/stack/tile/glass/plasma
name = "plasma glass floor"
singular_name = "plasma glass floor tile"
desc = "Plasma glass window floors, for when... Whatever is down there is too scary for normal glass."
icon_state = "tile_pglass"
turf_type = /turf/open/floor/glass/plasma
merge_type = /obj/item/stack/tile/glass/plasma
mats_per_unit = list(/datum/material/plasma=SHEET_MATERIAL_AMOUNT * 0.125, /datum/material/glass=SHEET_MATERIAL_AMOUNT * 0.25)
/obj/item/stack/tile/rglass/plasma
name = "reinforced plasma glass floor"
singular_name = "reinforced plasma glass floor tile"
desc = "Reinforced plasma glass window floors, because whatever's downstairs should really stay down there."
icon_state = "tile_rpglass"
turf_type = /turf/open/floor/glass/reinforced/plasma
merge_type = /obj/item/stack/tile/rglass/plasma
mats_per_unit = list(/datum/material/iron=SHEET_MATERIAL_AMOUNT * 0.125, /datum/material/plasma=SHEET_MATERIAL_AMOUNT * 0.125, /datum/material/glass=SHEET_MATERIAL_AMOUNT * 0.25)