fix bugs
Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
parent
be70ec3d2b
commit
18c202e469
@ -101,18 +101,18 @@ endGameTitle(p, m, s) -> (
|
|||||||
);
|
);
|
||||||
|
|
||||||
endTimeout(iv) -> (
|
endTimeout(iv) -> (
|
||||||
endCleanup();
|
|
||||||
endGameTitle(getPigPlayers(), 'Timeout!'
|
endGameTitle(getPigPlayers(), 'Timeout!'
|
||||||
, str('You didn\'t complete %d goals in time.', iv));
|
, str('You didn\'t complete %d goals in time.', iv));
|
||||||
endGameTitle(getWolfPlayers(), 'You won!'
|
endGameTitle(getWolfPlayers(), 'You won!'
|
||||||
, str('Those fools have failed, good job.', iv));
|
, str('Those fools have failed, good job.', iv));
|
||||||
|
endCleanup();
|
||||||
);
|
);
|
||||||
|
|
||||||
endFinish() -> (
|
endFinish() -> (
|
||||||
endCleanup();
|
|
||||||
endGameTitle(getPigPlayers(), 'Congratulations!', 'You have completed all the goals.');
|
endGameTitle(getPigPlayers(), 'Congratulations!', 'You have completed all the goals.');
|
||||||
endGameTitle(getWolfPlayers(), 'Oh no!'
|
endGameTitle(getWolfPlayers(), 'Oh no!'
|
||||||
, str('They have completed all the goals.', iv));
|
, str('They have completed all the goals.', iv));
|
||||||
|
endCleanup();
|
||||||
);
|
);
|
||||||
|
|
||||||
getFirstUnsetGoal() -> (
|
getFirstUnsetGoal() -> (
|
||||||
@ -142,7 +142,11 @@ warnDeadline(dt) -> (
|
|||||||
);
|
);
|
||||||
|
|
||||||
electionKill(pname) -> (
|
electionKill(pname) -> (
|
||||||
modify(player(pname), 'kill');
|
p = player(pname);
|
||||||
|
if(p != null, (
|
||||||
|
modify(p, 'tag', 'ica.deceased');
|
||||||
|
modify(p, 'gamemode', 'spectator');
|
||||||
|
));
|
||||||
print(player('all'), str('Election victim %s killed.', pname))
|
print(player('all'), str('Election victim %s killed.', pname))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -30,11 +30,11 @@ cmdInfo() -> (
|
|||||||
for(cand_names, (
|
for(cand_names, (
|
||||||
p = player(_);
|
p = player(_);
|
||||||
v_cnt = countVotes(_);
|
v_cnt = countVotes(_);
|
||||||
print(str(' - %02d vote%s %s%s', v_cnt, if(v_cnt > 1, 's', ' ')
|
print(str(' - [%02d vote%s] %s%s', v_cnt, if(v_cnt > 1, 's', ' ')
|
||||||
, _, if(query(p, 'has_scoreboard_tag', 'ica.deceased'), ' [deceased]', '')));
|
, _, if(query(p, 'has_scoreboard_tag', 'ica.deceased'), ' [deceased]', '')));
|
||||||
));
|
));
|
||||||
abv_cnt = countAbstainVotes();
|
abv_cnt = countAbstainVotes();
|
||||||
print(' - %02d vote%s (abstain)', abv_cnt, if(abv_cnt > 1, 's', ' '));
|
print(str(' - [%2d vote%s] (abstain)', abv_cnt, if(abv_cnt > 1, 's', ' ')));
|
||||||
|
|
||||||
max_p = findVoteMax();
|
max_p = findVoteMax();
|
||||||
print(str('Current elected: %s', if(max_p == null, '(nobody)', max_p)));
|
print(str('Current elected: %s', if(max_p == null, '(nobody)', max_p)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user