diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-12-25 05:28:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-12-25 05:28:31 -0300 |
commit | 0c07a145cc74db119f6e7bb54c356021e99d72c8 (patch) | |
tree | 5193d1d652e72e92f5b12395cc417e17206c8b22 /npc/functions | |
parent | 60b07b7581d14755455644ec7e66d196c0b8d24c (diff) | |
download | serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.gz serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.bz2 serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.tar.xz serverdata-0c07a145cc74db119f6e7bb54c356021e99d72c8.zip |
Fix some CRITICAL bugs at political system
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/politics.txt | 8 |
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; |