Fixe dice
This commit is contained in:
@@ -121,6 +121,7 @@ private void handleGame(Notification notification) {
|
|||||||
delay = STANDARD_DELAY;
|
delay = STANDARD_DELAY;
|
||||||
} else if (notification instanceof ActivePlayerNotification n) {
|
} else if (notification instanceof ActivePlayerNotification n) {
|
||||||
gameView.getGuiHandler().setActivePlayer(n.getColor());
|
gameView.getGuiHandler().setActivePlayer(n.getColor());
|
||||||
|
boardHandler.hideDice();
|
||||||
if(n.getColor() != ownColor) boardHandler.showDice(n.getColor());
|
if(n.getColor() != ownColor) boardHandler.showDice(n.getColor());
|
||||||
app.getAcousticHandler().playSound(MdgaSound.UI90);
|
app.getAcousticHandler().playSound(MdgaSound.UI90);
|
||||||
delay = STANDARD_DELAY;
|
delay = STANDARD_DELAY;
|
||||||
@@ -207,7 +208,6 @@ public void run() {
|
|||||||
waitForAnimation = true;
|
waitForAnimation = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
boardHandler.hideDice();
|
|
||||||
if (n.isTurbo()) guiHandler.showRolledDiceMult(n.getEyes(), n.getMultiplier(), n.getColor());
|
if (n.isTurbo()) guiHandler.showRolledDiceMult(n.getEyes(), n.getMultiplier(), n.getColor());
|
||||||
else guiHandler.showRolledDice(n.getEyes(), n.getColor());
|
else guiHandler.showRolledDice(n.getEyes(), n.getColor());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user