|
|
@ -17,6 +17,7 @@ import engine.objects.*; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.concurrent.ThreadLocalRandom; |
|
|
|
import java.util.concurrent.ThreadLocalRandom; |
|
|
|
|
|
|
|
|
|
|
@ -34,6 +35,11 @@ public enum LootManager { |
|
|
|
public static HashMap<Integer, ArrayList<ModTableEntry>> _modTables = new HashMap<>(); |
|
|
|
public static HashMap<Integer, ArrayList<ModTableEntry>> _modTables = new HashMap<>(); |
|
|
|
public static HashMap<Integer, ArrayList<ModTypeTableEntry>> _modTypeTables = new HashMap<>(); |
|
|
|
public static HashMap<Integer, ArrayList<ModTypeTableEntry>> _modTypeTables = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static ArrayList<Integer> vorg_ha_uuids = new ArrayList<>(Arrays.asList(new Integer[]{27580, 27590, 188500, 188510, 188520, 188530, 188540, 188550, 189510})); |
|
|
|
|
|
|
|
public static ArrayList<Integer> vorg_ma_uuids = new ArrayList<>(Arrays.asList(new Integer[]{27570,188900,188910,188920,188930,188940,188950,189500})); |
|
|
|
|
|
|
|
public static ArrayList<Integer> vorg_la_uuids = new ArrayList<>(Arrays.asList(new Integer[]{27550,27560,189100,189110,189120,189130,189140,189150})); |
|
|
|
|
|
|
|
public static ArrayList<Integer> vorg_cloth_uuids = new ArrayList<>(Arrays.asList(new Integer[]{27600,188700,188720,189550,189560})); |
|
|
|
|
|
|
|
|
|
|
|
// Drop Rates
|
|
|
|
// Drop Rates
|
|
|
|
|
|
|
|
|
|
|
|
public static float NORMAL_DROP_RATE; |
|
|
|
public static float NORMAL_DROP_RATE; |
|
|
@ -357,8 +363,24 @@ public enum LootManager { |
|
|
|
|
|
|
|
|
|
|
|
if (equipmentRoll > dropChance) |
|
|
|
if (equipmentRoll > dropChance) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
ItemBase genericIB = me.getItemBase(); |
|
|
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false); |
|
|
|
//if(genericIB.isVorg()){
|
|
|
|
|
|
|
|
if(vorg_cloth_uuids.contains(genericIB.getUUID())){ |
|
|
|
|
|
|
|
//get random cloth piece
|
|
|
|
|
|
|
|
genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_cloth_uuids.size() - 1))); |
|
|
|
|
|
|
|
} else if(vorg_ha_uuids.contains(genericIB.getUUID())){ |
|
|
|
|
|
|
|
//get random heavy armor piece
|
|
|
|
|
|
|
|
genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ha_uuids.size() - 1))); |
|
|
|
|
|
|
|
} else if(vorg_ma_uuids.contains(genericIB.getUUID())){ |
|
|
|
|
|
|
|
//get random medium armor piece
|
|
|
|
|
|
|
|
genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ma_uuids.size() - 1))); |
|
|
|
|
|
|
|
} else if(vorg_la_uuids.contains(genericIB.getUUID())){ |
|
|
|
|
|
|
|
//get random light armor piece
|
|
|
|
|
|
|
|
genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_la_uuids.size() - 1))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
mob.spawnTime = ThreadLocalRandom.current().nextInt(300,2700); |
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
MobLoot ml = new MobLoot(mob, genericIB, false); |
|
|
|
|
|
|
|
|
|
|
|
if (ml != null && dropCount < 1) { |
|
|
|
if (ml != null && dropCount < 1) { |
|
|
|
ml.setIsID(true); |
|
|
|
ml.setIsID(true); |
|
|
|