From 0c07a145cc74db119f6e7bb54c356021e99d72c8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 25 Dec 2019 05:28:31 -0300 Subject: Fix some CRITICAL bugs at political system --- npc/functions/politics.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'npc/functions/politics.txt') 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; -- cgit v1.2.3-60-g2f50