diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/location.txt | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/npc/functions/location.txt b/npc/functions/location.txt index 093764af..e40148c4 100644 --- a/npc/functions/location.txt +++ b/npc/functions/location.txt @@ -85,34 +85,19 @@ function script TPToLoc { function script POL_LocToTP { .@tw$=strtoupper(getarg(0, LOCATION$)); + // TODO: Change this to use the arrays instead if (.@tw$ == "TULIM") return TP_TULIM; - if (.@tw$ == "HALIN") - return TP_HALIN; - if (.@tw$ == "HURNS") return TP_HURNS; - if (.@tw$ == "LOF") - return TP_LOF; - if (.@tw$ == "NIVAL") return TP_NIVAL; - if (.@tw$ == "ARTIS") - return TP_ARTIS; - if (.@tw$ == "CANDOR") return TP_CANDOR; - if (.@tw$ == "LILIT") - return TP_LILIT; - - // TODO: Change this to use npc/config/location.txt instead - if (.@tw$ == "FROSTIA") - return TP_FROST; - return Exception("Invalid town requested / POL_LocToTP", RB_DEFAULT|RB_SPEECH, -1); } |