From 0fddd2134b25e7ffd1e67c2637ef119c3a432b19 Mon Sep 17 00:00:00 2001 From: randy Date: Thu, 31 Oct 2024 15:20:14 -0600 Subject: [PATCH] Firemaking now repeats until all the matching logs in your inventory are used --- .../global/skill/firemaking/FireMakingPulse.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Server/src/main/content/global/skill/firemaking/FireMakingPulse.java b/Server/src/main/content/global/skill/firemaking/FireMakingPulse.java index 50b969efd..a2612543d 100644 --- a/Server/src/main/content/global/skill/firemaking/FireMakingPulse.java +++ b/Server/src/main/content/global/skill/firemaking/FireMakingPulse.java @@ -19,6 +19,8 @@ import org.rs09.consts.Items; import static core.api.ContentAPIKt.inInventory; import static core.api.ContentAPIKt.replaceSlot; +import static core.api.ContentAPIKt.removeItem; + /** * Represents the pulse used to light a log. * @author 'Vexia @@ -102,10 +104,12 @@ public final class FireMakingPulse extends SkillPulse { @Override public boolean reward() { + /* Snowscape: this section allows making a new fire without an animation if you're fast enough, but since we auto-repeat we don't need that if (getLastFire() >= GameWorld.getTicks()) { createFire(); return true; } + */ if (ticks == 0) { player.animate(ANIMATION); } @@ -119,7 +123,13 @@ public final class FireMakingPulse extends SkillPulse { return false; } createFire(); - return true; + // Snowscape: attempt to remove another log. If successful, the pulse continues and the player makes another fire + if (removeItem(player, new Item(node.getId(), 1), Container.INVENTORY)) { + return false; + } else { + return true; + } + } /**