From 3b0360eb01f239980d65a36f7a2268fd7e26ffeb Mon Sep 17 00:00:00 2001 From: bushtail Date: Fri, 1 Sep 2023 12:19:53 +0000 Subject: [PATCH] Locked claw smithing behind Death Plateau quest --- .../main/content/global/skill/smithing/SmithingPulse.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Server/src/main/content/global/skill/smithing/SmithingPulse.java b/Server/src/main/content/global/skill/smithing/SmithingPulse.java index ea65d0818..f9b7eec98 100644 --- a/Server/src/main/content/global/skill/smithing/SmithingPulse.java +++ b/Server/src/main/content/global/skill/smithing/SmithingPulse.java @@ -12,6 +12,9 @@ import core.game.world.map.Location; import core.game.world.update.flag.context.Animation; import core.tools.StringUtils; +import static core.api.ContentAPIKt.hasRequirement; +import static core.api.ContentAPIKt.sendDialogue; + /** * Represents the pulse used to smith a bar. * @@ -68,6 +71,10 @@ public class SmithingPulse extends SkillPulse { player.getDialogueInterpreter().sendDialogue("You need to complete Tourist Trap to smith dart tips."); return false; } + if (!hasRequirement(player, "Death Plateau", false) && bar.getSmithingType() == SmithingType.TYPE_CLAWS) { + sendDialogue(player, "You need to complete Death Plateau to smith claws."); + return false; + } return true; }