From 11310a5b64cb59b46578bb5fdeca7b877820e5dc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 5 Mar 2024 20:33:58 -0600 Subject: [PATCH] vorg HA fix --- 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 ab4397c7..e7bd9d1e 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(1,vorg_cloth_uuids.size()) - 1)); + genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_cloth_uuids.size() - 1))); } else if(genericIB.isHeavyArmor()){ //get random heavy armor piece - genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ha_uuids.size()) - 1)); + genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ha_uuids.size() - 1))); } else if(genericIB.isMediumArmor()){ //get random medium armor piece - genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ma_uuids.size()) - 1)); + genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ma_uuids.size() - 1))); } else if(genericIB.isLightArmor()){ //get random light armor piece - genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_la_uuids.size()) - 1)); + genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_la_uuids.size() - 1))); } mob.spawnTime = ThreadLocalRandom.current().nextInt(300,2700); }