Locked claw smithing behind Death Plateau quest

This commit is contained in:
bushtail
2023-09-01 12:19:53 +00:00
committed by Ryan
parent abe55aa7f3
commit 3b0360eb01
@@ -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<Item> {
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;
}