summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-11-27 14:04:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-11-27 14:04:59 -0300
commit31a372a4d3ec5e80de78a3c319d869e5bb9b2508 (patch)
treebe08455880d41fa2d66a25fe4f41ab407085235a /npc/functions
parent9fe85256d59206b777ebdcf3c6308c1460e82add (diff)
downloadserverdata-31a372a4d3ec5e80de78a3c319d869e5bb9b2508.tar.gz
serverdata-31a372a4d3ec5e80de78a3c319d869e5bb9b2508.tar.bz2
serverdata-31a372a4d3ec5e80de78a3c319d869e5bb9b2508.tar.xz
serverdata-31a372a4d3ec5e80de78a3c319d869e5bb9b2508.zip
Town will now have an additional weekly income related to tax collection over exports
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/politics.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 7b310c1f9..38c859e41 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -139,7 +139,7 @@ OnClock2359:
end;
OnSun0000:
- // Weekly income (TODO: Use tax as reference, not reputation)
+ // Weekly reputation-based income
$TULIM_MONEY+=$TULIM_EXPORT*limit(10, $TULIM_REPUTATION, 100)/100;
$HALIN_MONEY+=$HALIN_EXPORT*limit(10, $HALIN_REPUTATION, 100)/100;
$HURNS_MONEY+=$HURNS_EXPORT*limit(10, $HURNS_REPUTATION, 100)/100;
@@ -148,6 +148,15 @@ OnSun0000:
$FROSTIA_MONEY+=$FROSTIA_EXPORT*limit(10, $FROSTIA_REPUTATION, 100)/100;
$CANDOR_MONEY+=$CANDOR_EXPORT*limit(10, $CANDOR_REPUTATION, 100)/100;
+ // Weekly tax-based income
+ $TULIM_MONEY+=$TULIM_EXPORT*$TULIM_TAX*7/10000;
+ $HALIN_MONEY+=$HALIN_EXPORT*$HALIN_TAX*7/10000;
+ $HURNS_MONEY+=$HURNS_EXPORT*$HURNS_TAX*7/10000;
+ $LOF_MONEY+=$LOF_EXPORT*$LOF_TAX*7/10000;
+ $NIVAL_MONEY+=$NIVAL_EXPORT*$NIVAL_TAX*7/10000;
+ $FROSTIA_MONEY+=$FROSTIA_EXPORT*$FROSTIA_TAX*7/10000;
+ $CANDOR_MONEY+=$CANDOR_EXPORT*$CANDOR_TAX*7/10000;
+
// Send salary to Town Administrators (20% from exports and 5GP/reputation)
// Strange Coins: TODO
.@tax=$TULIM_EXPORT*limit(0, $TULIM_REPUTATION, 100)/500;