Teshari Tweaks

This commit is contained in:
Anewbe
2017-01-15 01:20:23 -06:00
parent 93a630e2e8
commit 3852ac1e22
6 changed files with 79 additions and 44 deletions

View File

@@ -32,3 +32,10 @@
if(!available_turfs.len)
available_turfs = start_turfs
return pick(available_turfs)
/proc/is_below_sound_pressure(var/turf/T)
var/datum/gas_mixture/environment = T ? T.return_air() : null
var/pressure = environment ? environment.return_pressure() : 0
if(pressure < SOUND_MINIMUM_PRESSURE)
return TRUE
return FALSE

View File

@@ -73,14 +73,14 @@
// Turns a direction into text
/proc/dir2text(direction)
switch (direction)
if (1.0) return "north"
if (2.0) return "south"
if (4.0) return "east"
if (8.0) return "west"
if (5.0) return "northeast"
if (6.0) return "southeast"
if (9.0) return "northwest"
if (10.0) return "southwest"
if (NORTH) return "north"
if (SOUTH) return "south"
if (EAST) return "east"
if (WEST) return "west"
if (NORTHEAST) return "northeast"
if (SOUTHEAST) return "southeast"
if (NORTHWEST) return "northwest"
if (SOUTHWEST) return "southwest"
// Turns text into proper directions
/proc/text2dir(direction)