From 210faaec6d7e6650ff84a5490a4d177db051484c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 11 Sep 2024 19:33:18 -0500 Subject: [PATCH] refund gold for cancelled rolled items --- src/engine/objects/ItemFactory.java | 2 +- src/engine/objects/NPC.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/ItemFactory.java b/src/engine/objects/ItemFactory.java index 8da68711..03ff9098 100644 --- a/src/engine/objects/ItemFactory.java +++ b/src/engine/objects/ItemFactory.java @@ -73,7 +73,7 @@ public class ItemFactory { itemManager.updateInventory(); } - public static Item fillForge(NPC npc, PlayerCharacter pc, int itemsToRoll, int itemID, int pToken, int sToken, String customName) { + public static Item ResourceRoll(NPC npc, PlayerCharacter pc, int itemsToRoll, int itemID, int pToken, int sToken, String customName) { String prefixString = ""; String suffixString = ""; diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 558a7fed..c9390bbe 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1196,7 +1196,7 @@ public class NPC extends AbstractCharacter { } // Cannot roll items without a warehouse. - // Due to the fact fillForge references the + // Due to the fact ResourceRoll references the // warehouse and early exits. *** Refactor??? serverZone = this.building.getParentZone(); @@ -1230,7 +1230,7 @@ public class NPC extends AbstractCharacter { if (isRandom) item = ItemFactory.randomRoll(this, player, amount, itemID); else - item = ItemFactory.fillForge(this, player, amount, itemID, pToken, sToken, customName); + item = ItemFactory.ResourceRoll(this, player, amount, itemID, pToken, sToken, customName); if (item == null) return null;