|
|
|
@ -129,7 +129,7 @@ public enum LootManager {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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) { |
|
|
|
|