From ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 18:39:07 -0300 Subject: Fix typos and record location changes when using the Koga --- npc/functions/location.txt | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'npc/functions') 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); } -- cgit v1.2.3-60-g2f50