From d2e37df4ca0bd7d1e1e0bfc81c2eefedcc5d6747 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 13 May 2015 13:18:54 +1200 Subject: [PATCH] DrawMyThing: Prevented all multiple guesses, not just when it contains an accurate word --- .../game/arcade/game/games/draw/Draw.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java index 1fd6c1b1e..36372ad48 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java @@ -302,42 +302,42 @@ public class Draw extends SoloGame String message = event.getMessage().toLowerCase(); - if (message.contains(_round.Word.toLowerCase())) + if (_guessers.HasPlayer(player)) { int wordsInMessage = 0; for (String word : _words) { - if (message.contains(word.toLowerCase())) + if (!word.equals(_round.Word) && message.contains(word.toLowerCase())) { - message = message.replace(word.toLowerCase(), ""); - if (++wordsInMessage >= 3) { + UtilPlayer.message(player, F.main("Game", "Multiple guesses are not allowed!")); return; } } } - if (_guessers.HasPlayer(player)) + if (message.contains(_round.Word.toLowerCase())) { - //First Guess + // First Guess int score = 1; if (_round.Guessed.isEmpty()) { score = 3; - - //Points for Drawer + + // Points for Drawer AddScore(_round.Drawer, 2); - + this.AddGems(_round.Drawer, 2, "Drawings Guessed", true, true); } - + if (_round.Guessed(player)) { AddScore(player, score); - Announce(C.cYellow + C.Bold + "+" + score + " " + C.cGreen + C.Bold + player.getName() + " has guessed the word!"); - + Announce(C.cYellow + C.Bold + "+" + score + " " + C.cGreen + C.Bold + player.getName() + + " has guessed the word!"); + if (score == 1) this.AddGems(player, 1, "Words Guessed", true, true); else