Implements roofs
This commit is contained in:
skull132
2017-06-17 22:18:39 +03:00
committed by GitHub
parent 3b13be1f2c
commit 36cb778548
14 changed files with 139 additions and 64 deletions
+3 -2
View File
@@ -516,6 +516,8 @@
has_resources = 1
footstep_sound = "gravelstep"
roof_type = null
// Copypaste parent for performance.
/turf/simulated/floor/asteroid/Initialize()
if(initialized)
@@ -764,8 +766,7 @@
var/area/below_area = below.loc // Let's just assume that the turf is not in nullspace.
if(below_area.station_area)
user << "<span class='alert'>You strike metal!</span>"
var/turf/T = ChangeTurf(/turf/simulated/floor/airless)
T.icon_state = "asteroidplating"
below.spawn_roof(ROOF_FORCE_SPAWN)
else
ChangeTurf(/turf/space)