mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 05:31:53 +00:00
Teshari Tweaks
This commit is contained in:
@@ -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
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user