From bb646d0be8ac08ef41fe431572c4e9db1a461dcc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 31 Aug 2019 23:09:25 -0300 Subject: Playtest political system. Elections de-facto tests still TBD --- npc/012-7/politics.txt | 1 + npc/functions/politics.txt | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/npc/012-7/politics.txt b/npc/012-7/politics.txt index 2cbdf9844..c33b29050 100644 --- a/npc/012-7/politics.txt +++ b/npc/012-7/politics.txt @@ -34,6 +34,7 @@ do array_push($HURNS_CANDIDATE$, strcharinfo(0)); array_push($HURNS_VOTES, 0); mesc l("Application successful!"), 3; + next; break; case 3: POL_Candidate("HURNS"); diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index 64884ca46..322cdb654 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -165,18 +165,18 @@ function script POL_Candidate { copyarray( .@cd$, getd("$"+getarg(0)+"_CANDIDATE$"), getarraysize(getd("$"+getarg(0)+"_CANDIDATE$")) ); copyarray( .@vt, getd("$"+getarg(0)+"_VOTES"), getarraysize(getd("$"+getarg(0)+"_VOTES")) ); - .@list="Don't vote"; + .@list$="Don't vote"; for (.@i=0;.@i