Adds Asteroid Cracks

Adds a new type of turf, which is a cracked asteroid floor.  It is functionally a space tile, which means air can escape through the cracks and into the void.  These cracks can be plugged by building a floor over them using rods and tiles.  The cracks are generated randomly along with the asteroid whenever a floor is placed, with a 1 in 10 chance of it being a cracked floor.
This commit is contained in:
Neerti
2016-10-02 06:24:32 -04:00
parent 5963d65ad7
commit 393c9899a9
6 changed files with 23 additions and 3 deletions

View File

@@ -45,7 +45,10 @@
var/turf/simulated/mineral/T = locate((origin_x-1)+x,(origin_y-1)+y,origin_z)
if(istype(T) && !T.ignore_mapgen)
if(map[current_cell] == FLOOR_CHAR)
T.make_floor()
if(prob(90))
T.make_floor()
else
T.ChangeTurf(/turf/space/cracked_asteroid)
else
T.make_wall()
if(map[current_cell] == DOOR_CHAR)