From 8dd7244357f4d70f9601f67159b34c277b9e83dc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 27 Dec 2019 12:47:38 -0300 Subject: Oh look at that bug --- npc/functions/politics.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index 593de7c44..092d990dd 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -39,7 +39,7 @@ function script PurchaseTaxes { .@tax=.@tax*.@vat/10000; if (.@tax) { debugmes "%s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; - .@gp=getd("$"+.@loc$+"MONEY"); + .@gp=getd("$"+.@loc$+"_MONEY"); setd("$"+.@loc$+"_MONEY", .@gp+.@tax); } return; @@ -60,7 +60,7 @@ function script SaleTaxes { .@tax=.@tax*.@vat/10000; if (.@tax) { debugmes "Sale: %s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$; - .@gp=getd("$"+.@loc$+"MONEY"); + .@gp=getd("$"+.@loc$+"_MONEY"); setd("$"+.@loc$+"_MONEY", .@gp+.@tax); //Zeny-=.@tax; dispbottom col(l("%s is happy because you've paid %d GP in taxes!", getd("$"+.@loc$+"_MAYOR$"), .@tax), 1); -- cgit v1.2.3-60-g2f50