EquipmentSets merged into bootySet system.
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2022
|
||||
// www.magicbane.com
|
||||
|
||||
|
||||
package engine.objects;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class EquipmentSetEntry {
|
||||
|
||||
public int itemID;
|
||||
public float dropChance;
|
||||
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
|
||||
public EquipmentSetEntry(ResultSet rs) throws SQLException {
|
||||
this.itemID = (rs.getInt("itemID"));
|
||||
this.dropChance = (rs.getFloat("dropChance"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -146,7 +146,7 @@ public class MobBase extends AbstractGameObject {
|
||||
|
||||
public static HashMap<Integer, MobEquipment> loadEquipmentSet(int equipmentSetID){
|
||||
|
||||
ArrayList<EquipmentSetEntry> equipList;
|
||||
ArrayList<BootySetEntry> equipList;
|
||||
HashMap<Integer, MobEquipment> equip = new HashMap<>();
|
||||
|
||||
if (equipmentSetID == 0)
|
||||
@@ -157,9 +157,9 @@ public class MobBase extends AbstractGameObject {
|
||||
if (equipList == null)
|
||||
return equip;
|
||||
|
||||
for (EquipmentSetEntry equipmentSetEntry : equipList) {
|
||||
for (BootySetEntry equipmentSetEntry : equipList) {
|
||||
|
||||
MobEquipment mobEquipment = new MobEquipment(equipmentSetEntry.itemID, equipmentSetEntry.dropChance);
|
||||
MobEquipment mobEquipment = new MobEquipment(equipmentSetEntry.itemBase, equipmentSetEntry.dropChance);
|
||||
ItemBase itemBase = mobEquipment.getItemBase();
|
||||
|
||||
if (itemBase != null) {
|
||||
|
||||
Reference in New Issue
Block a user