diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-10-07 19:18:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-10-07 19:18:12 -0300 |
commit | 93a2aa0e4c23078b2846be11440659e6bd3d8058 (patch) | |
tree | e0f9174122e8adc8a2884207d7b03c3fd570161e /npc | |
parent | b00d6f98280b1b12453ef406803f17cb8df8d391 (diff) | |
download | serverdata-93a2aa0e4c23078b2846be11440659e6bd3d8058.tar.gz serverdata-93a2aa0e4c23078b2846be11440659e6bd3d8058.tar.bz2 serverdata-93a2aa0e4c23078b2846be11440659e6bd3d8058.tar.xz serverdata-93a2aa0e4c23078b2846be11440659e6bd3d8058.zip |
Auto reelection will now only happen if town reputation is of at least 15
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/politics.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index 84b487e73..c65add73b 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -197,7 +197,7 @@ OnSun0000: $TULIM_MAYOR$=$TULIM_CANDIDATE$[.@w]; deletearray($TULIM_CANDIDATE$); deletearray($TULIM_VOTES); - array_push($TULIM_CANDIDATE$, $TULIM_MAYOR$); + array_push($TULIM_CANDIDATE$, ($TULIM_REPUTATION < 15 ? "Jesus Saves" : $TULIM_MAYOR$)); array_push($TULIM_VOTES, 0); .@w=array_highest($HALIN_VOTES); @@ -205,7 +205,7 @@ OnSun0000: $HALIN_MAYOR$=$HALIN_CANDIDATE$[.@w]; deletearray($HALIN_CANDIDATE$); deletearray($HALIN_VOTES); - array_push($HALIN_CANDIDATE$, $HALIN_MAYOR$); + array_push($HALIN_CANDIDATE$, ($HALIN_REPUTATION < 15 ? "Jesus Saves" : $HALIN_MAYOR$)); array_push($HALIN_VOTES, 0); .@w=array_highest($HURNS_VOTES); @@ -213,7 +213,7 @@ OnSun0000: $HURNS_MAYOR$=$HURNS_CANDIDATE$[.@w]; deletearray($HURNS_CANDIDATE$); deletearray($HURNS_VOTES); - array_push($HURNS_CANDIDATE$, $HURNS_MAYOR$); + array_push($HURNS_CANDIDATE$, ($HURNS_REPUTATION < 15 ? "Jesus Saves" : $HURNS_MAYOR$)); array_push($HURNS_VOTES, 0); .@w=array_highest($LOF_VOTES); @@ -221,7 +221,7 @@ OnSun0000: $LOF_MAYOR$=$LOF_CANDIDATE$[.@w]; deletearray($LOF_CANDIDATE$); deletearray($LOF_VOTES); - array_push($LOF_CANDIDATE$, $LOF_MAYOR$); + array_push($LOF_CANDIDATE$, ($LOF_REPUTATION < 15 ? "Jesus Saves" : $LOF_MAYOR$)); array_push($LOF_VOTES, 0); .@w=array_highest($NIVAL_VOTES); @@ -229,7 +229,7 @@ OnSun0000: $NIVAL_MAYOR$=$NIVAL_CANDIDATE$[.@w]; deletearray($NIVAL_CANDIDATE$); deletearray($NIVAL_VOTES); - array_push($NIVAL_CANDIDATE$, $NIVAL_MAYOR$); + array_push($NIVAL_CANDIDATE$, ($NIVAL_REPUTATION < 15 ? "Jesus Saves" : $NIVAL_MAYOR$)); array_push($NIVAL_VOTES, 0); .@w=array_highest($FROSTIA_VOTES); @@ -237,7 +237,7 @@ OnSun0000: $FROSTIA_MAYOR$=$FROSTIA_CANDIDATE$[.@w]; deletearray($FROSTIA_CANDIDATE$); deletearray($FROSTIA_VOTES); - array_push($FROSTIA_CANDIDATE$, $FROSTIA_MAYOR$); + array_push($FROSTIA_CANDIDATE$, ($FROSTIA_REPUTATION < 15 ? "Jesus Saves" : $FROSTIA_MAYOR$)); array_push($FROSTIA_VOTES, 0); .@w=array_highest($CANODR_VOTES); @@ -245,7 +245,7 @@ OnSun0000: $CANDOR_MAYOR$=$CANDOR_CANDIDATE$[.@w]; deletearray($CANDOR_CANDIDATE$); deletearray($CANDOR_VOTES); - array_push($CANDOR_CANDIDATE$, $CANDOR_MAYOR$); + array_push($CANDOR_CANDIDATE$, ($CANDOR_REPUTATION < 15 ? "Jesus Saves" : $CANDOR_MAYOR$)); array_push($CANDOR_VOTES, 0); // Notify new mayors of their victory |