summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/politics.txt4
1 files changed, 2 insertions, 2 deletions
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);