diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-02-17 22:30:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-02-17 22:30:51 -0300 |
commit | 62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9 (patch) | |
tree | 26f174f7d7f8b39ec2358b7bbe9a7b668c38133b /npc/024-11 | |
parent | 0a6cba4c68521edc6e33cacd6999ab461f8ad6aa (diff) | |
download | serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.gz serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.bz2 serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.tar.xz serverdata-62dbd60b1a747324c0ff7e4340b63b8b7d55b8d9.zip |
It was stated that Frostia was founded "by elves and ukars", so allow Ukars.
Update some code accordingly. But remember - Ukars are virtually extinct.
Frostia remains exercising an elf supremacy.
Diffstat (limited to 'npc/024-11')
-rw-r--r-- | npc/024-11/politics.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/npc/024-11/politics.txt b/npc/024-11/politics.txt index d33c90c64..e4ca2c1e9 100644 --- a/npc/024-11/politics.txt +++ b/npc/024-11/politics.txt @@ -12,21 +12,27 @@ do { mesc ".:: "+l("Frostia Townhall")+" ::.", 2; mesc l("Current Town Administrator: ")+$FROSTIA_MAYOR$, 3; + + // FIXME: Some hack code to disable the town + // Frostia Townhall is only available if player activity reaches a threshold if (Class != Elven) mesc l("Only elves may run to Town Admin Office in Frostia!"), 1; else mesc l("Hey, you're an elf, cool! But you still cannot run for office here!"), 1; - if (!is_staff()) + if (!is_staff() || GETUSERSAVG() < 10) close; + POL_TownInfo("FROSTIA"); - mesc l("Application fee: @@ GP", .applytax); - if (is_staff()) - mesc l("Average user count = %d", GETUSERSAVG()); + // Frostia is special: Only citizens can apply for office + if (!frally()) + mesc l("Only elves may run to Town Admin Office in Frostia!"), 1; + else + mesc l("Application fee: @@ GP", .applytax); next; select l("Information"), rif(strcharinfo(0) == $FROSTIA_MAYOR$, l("Manage Town")), - rif(#POL_APPLYWEEK != gettimeparam(GETTIME_WEEKDAY) && GETUSERSAVG() >= 10, l("Apply for the office!")), + rif(#POL_APPLYWEEK != gettimeparam(GETTIME_WEEKDAY) && frally(), l("Apply for the office!")), l("View Candidate List and cast a vote"), l("[Quit]"); |