From 08268b51173bdc1ae12d359b24b0e0562156a8d2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jul 2020 21:50:18 -0300 Subject: Move POL_LocToTP from Politics to Utils --- npc/functions/politics.txt | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'npc/functions/politics.txt') diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index 3e6cdc31a..44d26b6ab 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -61,32 +61,6 @@ function script SaleTaxes { return; } -// Convert LOC (uppercase) to a TP variable -// POL_LocToTP( {TOWNCODE} ) -function script POL_LocToTP { - .@tw$=strtoupper(getarg(0, LOCATION$)); - - 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$ == "FROSTIA") - return TP_FROSTIA; - - return Exception("Invalid town requested / POL_LocToTP", RB_DEFAULT|RB_SPEECH, -1); -} - // Adjusts prices for crafts // POL_AdjustPrice( price, {TOWNCODE} ) function script POL_AdjustPrice { -- cgit v1.2.3-60-g2f50