refund gold for cancelled rolled items
This commit is contained in:
@@ -73,7 +73,7 @@ public class ItemFactory {
|
|||||||
itemManager.updateInventory();
|
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 prefixString = "";
|
||||||
String suffixString = "";
|
String suffixString = "";
|
||||||
|
|||||||
@@ -1196,7 +1196,7 @@ public class NPC extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cannot roll items without a warehouse.
|
// 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???
|
// warehouse and early exits. *** Refactor???
|
||||||
|
|
||||||
serverZone = this.building.getParentZone();
|
serverZone = this.building.getParentZone();
|
||||||
@@ -1230,7 +1230,7 @@ public class NPC extends AbstractCharacter {
|
|||||||
if (isRandom)
|
if (isRandom)
|
||||||
item = ItemFactory.randomRoll(this, player, amount, itemID);
|
item = ItemFactory.randomRoll(this, player, amount, itemID);
|
||||||
else
|
else
|
||||||
item = ItemFactory.fillForge(this, player, amount, itemID, pToken, sToken, customName);
|
item = ItemFactory.ResourceRoll(this, player, amount, itemID, pToken, sToken, customName);
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user