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.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 9ee852e21..593de7c44 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -132,8 +132,12 @@ function script POL_PlayerMoney {
// Calculate tax and add to town vault
.@vat=getd("$"+.@l$+"_TAX");
.@tax=.@p*.@vat/10000;
- .@GP=getd("$"+getarg(0)+"_MONEY");
- setd("$" + .@l$+"_MONEY", .@GP+.@tax);
+ .@GP=getd("$" + .@l$ + "_MONEY");
+ if (playerattached()) {
+ if (is_gm())
+ dispbottom l("GP: %d + %d", .@GP, .@tax);
+ }
+ setd("$" + .@l$ + "_MONEY", .@GP+.@tax);
// Return the taxes paid
return .@tax;