From 3a0448c2e4abee19c1ac0ce10ee6b3ebc8ebca08 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Thu, 26 Dec 2013 01:56:30 +1030 Subject: [PATCH] Added num2dir() proc required by /vg/ blood setup. --- code/__HELPERS/type2type.dm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/__HELPERS/type2type.dm b/code/__HELPERS/type2type.dm index 20eb15d6af0..261e8c6d750 100644 --- a/code/__HELPERS/type2type.dm +++ b/code/__HELPERS/type2type.dm @@ -164,6 +164,19 @@ proc/tg_list2text(list/list, glue=",") return text2list(return_file_text(filename),seperator) +//Turns a direction into text + +/proc/num2dir(direction) + switch(direction) + if(1.0) return NORTH + if(2.0) return SOUTH + if(4.0) return EAST + if(8.0) return WEST + else + world.log << "UNKNOWN DIRECTION: [direction]" + + + //Turns a direction into text /proc/dir2text(direction) switch(direction)