EquipmentSets merged into bootySet system.

This commit is contained in:
2023-04-14 16:46:10 -04:00
parent 23a07175e5
commit 5d0166a29a
4 changed files with 12 additions and 42 deletions
-29
View File
@@ -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"));
}
}
+3 -3
View File
@@ -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) {