summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-04 13:03:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-04 13:03:58 -0300
commitf9150c7f6aa499bf63de71ce4334d9bdf1b71633 (patch)
tree85c80385d768c9f3e681a64a3821e41755a87964
parent312ca5d12764cea9d91ebc7f31c68ca3dba4990d (diff)
downloadserverdata-f9150c7f6aa499bf63de71ce4334d9bdf1b71633.tar.gz
serverdata-f9150c7f6aa499bf63de71ce4334d9bdf1b71633.tar.bz2
serverdata-f9150c7f6aa499bf63de71ce4334d9bdf1b71633.tar.xz
serverdata-f9150c7f6aa499bf63de71ce4334d9bdf1b71633.zip
Reduce a bit the waste of CPU on Political System:
Comment a few expensive functions being used by Candor and Frostia.
-rw-r--r--npc/functions/politics.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index cf11fca9f..84b487e73 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -177,6 +177,7 @@ OnSun0000:
$NIVAL_MONEY-=.@tax;
rodex_sendmail(gf_charnameid($NIVAL_MAYOR$), "Nivalis Townhall", "Term Income", "You've received the money for the term.", .@tax);
+ /* Towns with volunteer town admins
.@tax=$FROSTIA_EXPORT*limit(0, $FROSTIA_REPUTATION, 100)/500;
.@tax+=$FROSTIA_REPUTATION*5;
.@tax=min($FROSTIA_MONEY, .@tax);
@@ -187,7 +188,8 @@ OnSun0000:
.@tax+=$CANDOR_REPUTATION*5;
.@tax=min($CANDOR_MONEY, .@tax);
$CANDOR_MONEY-=.@tax;
- rodex_sendmail(gf_charnameid($CANDOR_MAYOR$), "Frostia 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);
+ */
// Conduct elections
.@w=array_highest($TULIM_VOTES);
@@ -252,8 +254,9 @@ OnSun0000:
rodex_sendmail(gf_charnameid($HURNS_MAYOR$), "Hurnscald Townhall", "Election Victory", "You've been elected to the office!");
rodex_sendmail(gf_charnameid($LOF_MAYOR$), "LoF Townhall", "Election Victory", "You've been elected to the office!");
rodex_sendmail(gf_charnameid($NIVAL_MAYOR$), "Nivalis Townhall", "Election Victory", "You've been elected to the office!");
- rodex_sendmail(gf_charnameid($FROSTIA_MAYOR$), "Frostia Townhall", "Election Victory", "You've been elected to the office!");
- rodex_sendmail(gf_charnameid($CANDOR_MAYOR$), "Candor Townhall", "Election Victory", "You've been elected to the office!");
+ // Towns where admins are named, instead of elected
+ //rodex_sendmail(gf_charnameid($FROSTIA_MAYOR$), "Frostia Townhall", "Election Victory", "You've been elected to the office!");
+ //rodex_sendmail(gf_charnameid($CANDOR_MAYOR$), "Candor Townhall", "Election Victory", "You've been elected to the office!");
end;
}