summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-11-27 14:08:43 -0300
committerJesusaves <cpntb1@ymail.com>2020-11-27 14:08:43 -0300
commit81d132b6c1e5e24b37f72f0155d705bd9f33fb94 (patch)
treeae48569dc5d4980f3c53a07678b5c41b90dadbee /npc/functions/politics.txt
parent31a372a4d3ec5e80de78a3c319d869e5bb9b2508 (diff)
downloadserverdata-81d132b6c1e5e24b37f72f0155d705bd9f33fb94.tar.gz
serverdata-81d132b6c1e5e24b37f72f0155d705bd9f33fb94.tar.bz2
serverdata-81d132b6c1e5e24b37f72f0155d705bd9f33fb94.tar.xz
serverdata-81d132b6c1e5e24b37f72f0155d705bd9f33fb94.zip
Town Admins now gain, weekly, 1 strange coin each 10 rep points
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt23
1 files changed, 15 insertions, 8 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 38c859e41..2991436ff 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -158,49 +158,56 @@ OnSun0000:
$CANDOR_MONEY+=$CANDOR_EXPORT*$CANDOR_TAX*7/10000;
// Send salary to Town Administrators (20% from exports and 5GP/reputation)
- // Strange Coins: TODO
+ // Strange Coins: 1 each 10 reputation points
.@tax=$TULIM_EXPORT*limit(0, $TULIM_REPUTATION, 100)/500;
.@tax+=$TULIM_REPUTATION*5;
.@tax=min($TULIM_MONEY, .@tax);
+ .@cp=limit(1, $TULIM_REPUTATION/10, 10);;
$TULIM_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($TULIM_MAYOR$), "Tulimshar Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($TULIM_MAYOR$), "Tulimshar Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
.@tax=$HALIN_EXPORT*limit(0, $HALIN_REPUTATION, 100)/500;
.@tax+=$HALIN_REPUTATION*5;
.@tax=min($HALIN_MONEY, .@tax);
+ .@cp=limit(1, $HALIN_REPUTATION/10, 10);
$HALIN_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($HALIN_MAYOR$), "Halinarzo Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($HALIN_MAYOR$), "Halinarzo Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
.@tax=$HURNS_EXPORT*limit(0, $HURNS_REPUTATION, 100)/500;
.@tax+=$HURNS_REPUTATION*5;
.@tax=min($HURNS_MONEY, .@tax);
+ .@cp=limit(1, $HURNS_REPUTATION/10, 10);
$HURNS_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($HURNS_MAYOR$), "Hurnscald Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($HURNS_MAYOR$), "Hurnscald Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
.@tax=$LOF_EXPORT*limit(0, $LOF_REPUTATION, 100)/500;
.@tax+=$LOF_REPUTATION*5;
.@tax=min($LOF_MONEY, .@tax);
+ .@cp=limit(1, $LOF_REPUTATION/10, 10);
$LOF_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($LOF_MAYOR$), "LoF Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($LOF_MAYOR$), "LoF Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
.@tax=$NIVAL_EXPORT*limit(0, $NIVAL_REPUTATION, 100)/500;
.@tax+=$NIVAL_REPUTATION*5;
.@tax=min($NIVAL_MONEY, .@tax);
+ .@cp=limit(1, $NIVAL_REPUTATION/10, 10);
$NIVAL_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($NIVAL_MAYOR$), "Nivalis Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($NIVAL_MAYOR$), "Nivalis Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
/* Towns with volunteer town admins
.@tax=$FROSTIA_EXPORT*limit(0, $FROSTIA_REPUTATION, 100)/500;
.@tax+=$FROSTIA_REPUTATION*5;
.@tax=min($FROSTIA_MONEY, .@tax);
+ .@cp=limit(1, $FROSTIA_REPUTATION/10, 10);
$FROSTIA_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($FROSTIA_MAYOR$), "Frostia Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($FROSTIA_MAYOR$), "Frostia Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
.@tax=$CANDOR_EXPORT*limit(0, $CANDOR_REPUTATION, 100)/500;
.@tax+=$CANDOR_REPUTATION*5;
.@tax=min($CANDOR_MONEY, .@tax);
+ .@cp=limit(1, $CANDOR_REPUTATION/10, 10);
$CANDOR_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($CANDOR_MAYOR$), "Candor Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ rodex_sendmail(gf_charnameid($CANDOR_MAYOR$), "Candor Townhall", "Term Income", "You've received the money for the term.", .@tax, StrangeCoin, .@cp);
*/
// Conduct elections