Public Repository for the Magicbane Shadowbane Emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.7 KiB

// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
package engine.objects;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
public class MobLootBase {
private int mobBaseID;
private int lootTableID;
private float chance;
public static HashMap<Integer, ArrayList<MobLootBase>> MobLootSet = new HashMap<>();
/**
* ResultSet Constructor
*/
public MobLootBase(ResultSet rs) throws SQLException {
this.mobBaseID = rs.getInt("mobBaseID");
this.lootTableID = rs.getInt("lootTable");
this.chance = rs.getFloat("chance");
}
public MobLootBase(int mobBaseID, int lootTableID, int chance) {
super();
this.mobBaseID = mobBaseID;
this.lootTableID = lootTableID;
this.chance = chance;
}
public int getMobBaseID() {
return mobBaseID;
}
public float getChance() {
return chance;
}
public int getLootTableID() {
return lootTableID;
}
public void setLootTableID(int lootTableID) {
this.lootTableID = lootTableID;
}
}