mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
-
This commit is contained in:
parent
6322c7ccad
commit
091b4e7a9b
1 changed files with 5 additions and 3 deletions
|
|
@ -84,6 +84,8 @@ end_game() {
|
||||||
if (winner == -1 || draw) {
|
if (winner == -1 || draw) {
|
||||||
castmsg(ME, "_notice_place_game_end_draw", "Game over. It's a draw.", ([ ]));
|
castmsg(ME, "_notice_place_game_end_draw", "Game over. It's a draw.", ([ ]));
|
||||||
} else {
|
} else {
|
||||||
|
// This is an example of how you should NOT do it.. please put _nick_player
|
||||||
|
// into the variables or how is anyone supposed to add translations to this?
|
||||||
castmsg(ME, "_notice_place_game_end",
|
castmsg(ME, "_notice_place_game_end",
|
||||||
"Game over. " + PLAYER(players[winner]) + " gewinnt mit " + winner_sum + " Punkten.",
|
"Game over. " + PLAYER(players[winner]) + " gewinnt mit " + winner_sum + " Punkten.",
|
||||||
([ ]));
|
([ ]));
|
||||||
|
|
@ -129,7 +131,7 @@ start_game() {
|
||||||
}
|
}
|
||||||
// no one can lose currently
|
// no one can lose currently
|
||||||
currentplayer = 0;
|
currentplayer = 0;
|
||||||
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug", ([ ]));
|
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug.", ([ ]));
|
||||||
}
|
}
|
||||||
|
|
||||||
take_card(object theplayer) {
|
take_card(object theplayer) {
|
||||||
|
|
@ -144,7 +146,7 @@ take_card(object theplayer) {
|
||||||
if (players) {
|
if (players) {
|
||||||
currentplayer = next_player();
|
currentplayer = next_player();
|
||||||
if (currentplayer != -1)
|
if (currentplayer != -1)
|
||||||
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug", ([ ]));
|
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug.", ([ ]));
|
||||||
else
|
else
|
||||||
end_game();
|
end_game();
|
||||||
}
|
}
|
||||||
|
|
@ -161,7 +163,7 @@ deny_card(object theplayer) {
|
||||||
castmsg(ME, "_notice_place_game_deny", PLAYER(players[currentplayer]) + " zieht keine Karte.", ([ ]));
|
castmsg(ME, "_notice_place_game_deny", PLAYER(players[currentplayer]) + " zieht keine Karte.", ([ ]));
|
||||||
currentplayer = next_player();
|
currentplayer = next_player();
|
||||||
if (currentplayer != -1)
|
if (currentplayer != -1)
|
||||||
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug", ([ ]));
|
castmsg(ME, "_notice_place_game_player_next", PLAYER(players[currentplayer]) + " ist am Zug.", ([ ]));
|
||||||
else
|
else
|
||||||
end_game();
|
end_game();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue