From 349b88f142d3dda39876a4ed19fe8503978ed077 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 1 Mar 2024 21:25:27 -0600 Subject: [PATCH] investigate vorg LA hood drop never occurring --- src/engine/gameManager/LootManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index e7bd9d1e..ab4397c7 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -360,16 +360,16 @@ public enum LootManager { if(genericIB.isVorg()){ if(genericIB.isClothArmor()){ //get random cloth piece - genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_cloth_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_cloth_uuids.size()) - 1)); } else if(genericIB.isHeavyArmor()){ //get random heavy armor piece - genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ha_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ha_uuids.size()) - 1)); } else if(genericIB.isMediumArmor()){ //get random medium armor piece - genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ma_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ma_uuids.size()) - 1)); } else if(genericIB.isLightArmor()){ //get random light armor piece - genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_la_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_la_uuids.size()) - 1)); } mob.spawnTime = ThreadLocalRandom.current().nextInt(300,2700); }