mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 20:11:00 +00:00
-
This commit is contained in:
parent
6322c7ccad
commit
091b4e7a9b
@ -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…
Reference in New Issue
Block a user