Skip to content

Commit 7aea7a6

Browse files
authored
The Plateforming (#2513)
This PR adds platforms made of thick steel rods. They drop some steel scraps when destroyed. Sprites by Conundrum.
1 parent 73c3e55 commit 7aea7a6

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
5.01 KB
Binary file not shown.
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/obj/structure/ms13/platform_railings
2+
name = "steel platform"
3+
desc = "A durable industrial platform made of thick steel rods."
4+
icon = 'mojave/icons/structure/platform_railings.dmi'
5+
icon_state = "platrailings_full"
6+
density = FALSE
7+
anchored = TRUE
8+
armor = list(MELEE = 60, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, FIRE = 80, ACID = 50)
9+
max_integrity = 200
10+
layer = LATTICE_LAYER
11+
plane = FLOOR_PLANE
12+
obj_flags = CAN_BE_HIT | BLOCK_Z_OUT_DOWN | BLOCK_Z_IN_UP
13+
var/number_of_mats = 2
14+
var/build_material = /obj/item/stack/sheet/ms13/scrap_steel
15+
16+
/obj/structure/ms13/platform_railings/inner
17+
icon_state = "platrailings_innercorner"
18+
19+
/obj/structure/ms13/platform_railings/Initialize(mapload)
20+
. = ..()
21+
var/static/list/bad_initialize = list(INITIALIZE_HINT_QDEL, INITIALIZE_HINT_QDEL_FORCE)
22+
if(!(. in bad_initialize))
23+
AddComponent(/datum/component/footstep_changer, FOOTSTEP_CATWALK)
24+
25+
var/turf/my_turf = get_turf(loc)
26+
if(my_turf)
27+
ADD_TRAIT(my_turf, TRAIT_REMOVE_SLOWDOWN, CATWALK_ON_TURF)
28+
29+
/obj/structure/ms13/platform_railings/Destroy()
30+
var/turf/my_turf = get_turf(loc)
31+
if(my_turf)
32+
REMOVE_TRAIT(my_turf, TRAIT_REMOVE_SLOWDOWN, CATWALK_ON_TURF)
33+
return ..()
34+
35+
/obj/structure/ms13/platform_railings/deconstruct(disassembled = TRUE)
36+
if(!(flags_1 & NODECONSTRUCT_1))
37+
new build_material(get_turf(src), number_of_mats)
38+
qdel(src)

tgstation.dme

+1
Original file line numberDiff line numberDiff line change
@@ -4765,6 +4765,7 @@
47654765
#include "mojave\structures\obstacles.dm"
47664766
#include "mojave\structures\ores.dm"
47674767
#include "mojave\structures\pipes.dm"
4768+
#include "mojave\structures\platform_railings.dm"
47684769
#include "mojave\structures\plumbing_decorations.dm"
47694770
#include "mojave\structures\rugs.dm"
47704771
#include "mojave\structures\ruins.dm"

0 commit comments

Comments
 (0)