From 288ad0295271dc8fef86c36ba9e61b985df58c42 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 24 Feb 2024 22:06:33 -0600 Subject: [PATCH] zone override --- src/engine/gameManager/LootManager.java | 13 +++++++++++-- src/engine/objects/Blueprint.java | 2 +- src/engine/objects/Building.java | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index a569324d..5e64e093 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -129,7 +129,7 @@ public enum LootManager { break; case "ITEM": - GenerateInventoryDrop(mob, bse); + GenerateInventoryDrop(mob, bse, inHotzone); break; } } @@ -196,6 +196,9 @@ public enum LootManager { Logger.error("Failed to GenerateSuffix for item: " + outItem.getName()); } } + if(outItem.getName().toLowerCase().contains("of the gods") && inHotzone == false) + return null; + return outItem; } @@ -356,7 +359,7 @@ public enum LootManager { } } - public static void GenerateInventoryDrop(Mob mob, BootySetEntry bse) { + public static void GenerateInventoryDrop(Mob mob, BootySetEntry bse, boolean inHotzone) { int chanceRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1); @@ -369,6 +372,12 @@ public enum LootManager { if (lootItem != null) mob.getCharItemManager().addItemToInventory(lootItem); + if(inHotzone){ + MobLoot lootItem2 = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true); + + if (lootItem != null) + mob.getCharItemManager().addItemToInventory(lootItem2); + } } public static void peddleFate(PlayerCharacter playerCharacter, Item gift) { diff --git a/src/engine/objects/Blueprint.java b/src/engine/objects/Blueprint.java index c7baa3f3..c8a39142 100644 --- a/src/engine/objects/Blueprint.java +++ b/src/engine/objects/Blueprint.java @@ -171,7 +171,7 @@ public class Blueprint { maintCost = (9730 * rank) + 1890; - return maintCost; + return maintCost * 2; } public int getMaxRank() { diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index d625234c..980e56f7 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -784,7 +784,7 @@ public class Building extends AbstractWorldObject { // Add cost for building structure - maintCost += this.getBlueprint().getMaintCost(rank); + maintCost += this.getBlueprint().getMaintCost(rank) * 2; // Add costs associated with hirelings