From 288e6ec3b65e403c4a29b7d839478c77385d62d8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Oct 2020 00:36:55 -0300 Subject: New sale tax policy. Comments on Enrique --- npc/functions/politics.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'npc/functions/politics.txt') 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; } -- cgit v1.2.3-60-g2f50