summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-12 00:36:55 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-12 00:36:55 -0300
commit288e6ec3b65e403c4a29b7d839478c77385d62d8 (patch)
tree97b8f6884bbd619c61f75f755f114c125c587245 /npc/functions/politics.txt
parentc73c31527b1adf0a38141c369843928c6481a9ff (diff)
downloadserverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.gz
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.bz2
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.xz
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.zip
New sale tax policy. Comments on Enrique
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index d48d04224..def0dc676 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -52,17 +52,19 @@ function script SaleTaxes {
}
.@loc$=strtoupper(getarg(0, LOCATION$));
.@vat=getd("$"+.@loc$+"_TAX");
- .@vat=.@vat*2/10; // Only 20% of purchase tax, this is often 0.2%
+ .@vat=.@vat*3/4; // Only 75% of purchase tax (defaults to 0.75% I guess)
.@tax=.@tax*.@vat/10000;
if (.@tax) {
debugmes "Sale: %s paid %d in taxes to %s prefecture!", strcharinfo(0), .@tax, .@loc$;
.@gp=getd("$"+.@loc$+"_MONEY");
setd("$"+.@loc$+"_MONEY", .@gp+.@tax);
dispbottom col(l("%s is happy because you've paid %d GP in taxes!", getd("$"+.@loc$+"_MAYOR$"), .@tax), 1);
- //Zeny-=.@tax;
+ Zeny-=.@tax; // Player must pay the taxes
.@tp=POL_LocToTP(.@loc$);
+ /*
if (#EXILED & .@tp)
Zeny=max(0, Zeny-.@tax);
+ */
}
return;
}