summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 5679efa82..70fc08941 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -219,4 +219,20 @@ function script POL_Candidate {
}
+// Town info
+// POL_TownInfo( TOWNCODE )
+function script POL_TownInfo {
+ .@MAYOR$=getd("$"+getarg(0)+"_MAYOR$");
+ .@GP=getd("$"+getarg(0)+"_MONEY");
+ .@TX=getd("$"+getarg(0)+"_TAX");
+ .@EX=getd("$"+getarg(0)+"_EXPORT");
+ .@RP=getd("$"+getarg(0)+"_REPUTATION");
+ if (strcharinfo(0) == .@MAYOR$) {
+ mesc l("Town Money: @@", .@GP), 2;
+ mesc l("Town Reputation: @@ | @@.@@%% Tax", .@RP, .@TX/100, .@TX%100), 2;
+ mesc l("Town Weekly Exports: @@", .@EX), 2;
+ }
+ return;
+}
+