New _genTables collection defined.

This commit is contained in:
2023-08-06 17:44:30 -04:00
parent f8b09b5f33
commit 14e7b0395c
2 changed files with 32 additions and 0 deletions
+4
View File
@@ -27,6 +27,10 @@ public enum LootManager {
LOOTMANAGER; LOOTMANAGER;
// Newer tables
public static final HashMap<Integer, ArrayList<GenTableEntry>> _genTables = new HashMap<>();
//new tables //new tables
public static final HashMap<Integer, GenTable> generalItemTables = new HashMap<>(); public static final HashMap<Integer, GenTable> generalItemTables = new HashMap<>();
public static final HashMap<Integer, ItemTable> itemTables = new HashMap<>(); public static final HashMap<Integer, ItemTable> itemTables = new HashMap<>();
+28
View File
@@ -0,0 +1,28 @@
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
package engine.loot;
import java.sql.ResultSet;
import java.sql.SQLException;
public class GenTableEntry {
public int minRoll;
public int maxRoll;
public int itemTableID;
public int pModTable;
public int sModTable;
public GenTableEntry(ResultSet rs) throws SQLException {
this.minRoll = rs.getInt("minRoll");
this.maxRoll = rs.getInt("maxRoll");
this.itemTableID = rs.getInt("itemTableID");
this.pModTable = rs.getInt("pModTableID");
this.sModTable = rs.getInt("sModTableID");
}
}