summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-12-25 05:28:31 -0300
committerJesusaves <cpntb1@ymail.com>2019-12-25 05:28:31 -0300
commit0c07a145cc74db119f6e7bb54c356021e99d72c8 (patch)
tree5193d1d652e72e92f5b12395cc417e17206c8b22
parent60b07b7581d14755455644ec7e66d196c0b8d24c (diff)
downloadserverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.gz
serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.bz2
serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.xz
serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.zip
Fix some CRITICAL bugs at political system
-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;