summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/politics.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index aa8ab81d5..773607b31 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -39,7 +39,8 @@ function script PurchaseTaxes {
.@tax=.@tax*.@vat/10000;
if (.@tax) {
debugmes "%s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$;
- setd("$"+.@loc$+"_TAX", .@vat+.@tax);
+ .@gp=getd("$"+.@loc$+"MONEY");
+ setd("$"+.@loc$+"_MONEY", .@gp+.@tax);
}
return;
}
@@ -59,9 +60,10 @@ function script SaleTaxes {
.@tax=.@tax*.@vat/10000;
if (.@tax) {
debugmes "Sale: %s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$;
- setd("$"+.@loc$+"_TAX", .@vat+.@tax);
- Zeny-=.@vat;
- dispbottom col(l("%s is happy because you've paid %d GP in taxes!", getd("$"+.@loc$+"_MAYOR$"), .@vat), 1);
+ .@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);
}
return;
}