From 3336f3422e780400dd63674cd4f13d778145b51b Mon Sep 17 00:00:00 2001 From: RedSparr0w Date: Tue, 24 Sep 2019 20:24:18 +1200 Subject: [PATCH] [tutorial] fix checks --- .../crandor/game/content/dialogue/DialogueInterpreter.java | 4 ++-- .../game/content/skill/free/smithing/SmithingPulse.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/09HDscape-server/src/org/crandor/game/content/dialogue/DialogueInterpreter.java b/09HDscape-server/src/org/crandor/game/content/dialogue/DialogueInterpreter.java index 13c89025f..fc15f49a5 100644 --- a/09HDscape-server/src/org/crandor/game/content/dialogue/DialogueInterpreter.java +++ b/09HDscape-server/src/org/crandor/game/content/dialogue/DialogueInterpreter.java @@ -304,7 +304,7 @@ public final class DialogueInterpreter { player.getPacketDispatch().sendString(messages[i], 372, i + 1); } player.getInterfaceManager().openChatbox(372); - if (player.getAttributes().containsKey("tut-island") || TutorialSession.getExtension(player).getStage() <= TutorialSession.MAX_STAGE) { + if (player.getAttributes().containsKey("tut-island") || TutorialSession.getExtension(player).getStage() < TutorialSession.MAX_STAGE) { } return player.getInterfaceManager().getChatbox(); } @@ -497,7 +497,7 @@ public final class DialogueInterpreter { player.getPacketDispatch().sendString(messages[i].toString().replace("@name", player.getUsername()), interfaceId, (i + 4)); } player.getInterfaceManager().openChatbox(interfaceId); - if (player.getAttributes().containsKey("tut-island") || TutorialSession.getExtension(player).getStage() <= TutorialSession.MAX_STAGE) { + if (player.getAttributes().containsKey("tut-island") || TutorialSession.getExtension(player).getStage() < TutorialSession.MAX_STAGE) { } player.getPacketDispatch().sendInterfaceConfig(player.getInterfaceManager().getChatbox().getId(), 3, false); return player.getInterfaceManager().getChatbox(); diff --git a/09HDscape-server/src/org/crandor/game/content/skill/free/smithing/SmithingPulse.java b/09HDscape-server/src/org/crandor/game/content/skill/free/smithing/SmithingPulse.java index 2eb3beda5..181eb508b 100644 --- a/09HDscape-server/src/org/crandor/game/content/skill/free/smithing/SmithingPulse.java +++ b/09HDscape-server/src/org/crandor/game/content/skill/free/smithing/SmithingPulse.java @@ -62,7 +62,7 @@ public class SmithingPulse extends SkillPulse { player.getDialogueInterpreter().sendDialogue("You need a hammer to work the metal with."); return false; } - if (TutorialSession.getExtension(player).getStage() <= TutorialSession.MAX_STAGE && node.getId() != Bars.BRONZE_DAGGER.getProduct()) { + if (TutorialSession.getExtension(player).getStage() < TutorialSession.MAX_STAGE && node.getId() != Bars.BRONZE_DAGGER.getProduct()) { return false; } return true;