summaryrefslogtreecommitdiff
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
parentc73c31527b1adf0a38141c369843928c6481a9ff (diff)
downloadserverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.gz
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.bz2
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.tar.xz
serverdata-288e6ec3b65e403c4a29b7d839478c77385d62d8.zip
New sale tax policy. Comments on Enrique
-rw-r--r--npc/027-0/enrique.txt1
-rw-r--r--npc/functions/politics.txt6
2 files changed, 5 insertions, 2 deletions
diff --git a/npc/027-0/enrique.txt b/npc/027-0/enrique.txt
index 425e868e0..2f638fd65 100644
--- a/npc/027-0/enrique.txt
+++ b/npc/027-0/enrique.txt
@@ -21,6 +21,7 @@
l("What are Research Points"),
l("What is the Scholar Rank?"),
l("Who are the most famous scholars?");
+ // TODO: Give TMW2_STUDY for MSP. Need X skills learnt or 1M GP.
mes "";
switch (@menu) {
case 1:
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;
}