diff options
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r-- | npc/functions/politics.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index b97cdfb12..269f8cd5c 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -470,6 +470,10 @@ function script POL_Manage { next; if (askyesno() == ASK_YES) { setd(.@town$+"_MAYOR$", "Jesus Saves"); + // If you have already received a vote, this will be skipped + if (!getd(.@town$+"_VOTES[0]") && + getd(.@town$+"_CANDIDATE$[0]") == strcharinfo(0)) + setd(.@town$+"_CANDIDATE$[0]", "Jesus Saves")); mesc l("YOU HAVE RESIGNED THE OFFICE."), 1; close; } |