Browse Source

zone override

birdbane
FatBoy-DOTC 10 months ago
parent
commit
288ad02952
  1. 13
      src/engine/gameManager/LootManager.java
  2. 2
      src/engine/objects/Blueprint.java
  3. 2
      src/engine/objects/Building.java

13
src/engine/gameManager/LootManager.java

@ -129,7 +129,7 @@ public enum LootManager {
break; break;
case "ITEM": case "ITEM":
GenerateInventoryDrop(mob, bse); GenerateInventoryDrop(mob, bse, inHotzone);
break; break;
} }
} }
@ -196,6 +196,9 @@ public enum LootManager {
Logger.error("Failed to GenerateSuffix for item: " + outItem.getName()); Logger.error("Failed to GenerateSuffix for item: " + outItem.getName());
} }
} }
if(outItem.getName().toLowerCase().contains("of the gods") && inHotzone == false)
return null;
return outItem; 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); int chanceRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1);
@ -369,6 +372,12 @@ public enum LootManager {
if (lootItem != null) if (lootItem != null)
mob.getCharItemManager().addItemToInventory(lootItem); 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) { public static void peddleFate(PlayerCharacter playerCharacter, Item gift) {

2
src/engine/objects/Blueprint.java

@ -171,7 +171,7 @@ public class Blueprint {
maintCost = (9730 * rank) + 1890; maintCost = (9730 * rank) + 1890;
return maintCost; return maintCost * 2;
} }
public int getMaxRank() { public int getMaxRank() {

2
src/engine/objects/Building.java

@ -784,7 +784,7 @@ public class Building extends AbstractWorldObject {
// Add cost for building structure // Add cost for building structure
maintCost += this.getBlueprint().getMaintCost(rank); maintCost += this.getBlueprint().getMaintCost(rank) * 2;
// Add costs associated with hirelings // Add costs associated with hirelings

Loading…
Cancel
Save