forked from MagicBane/Server
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.
429 lines
18 KiB
429 lines
18 KiB
3 years ago
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||
|
// Magicbane Emulator Project © 2013 - 2022
|
||
|
// www.magicbane.com
|
||
|
|
||
1 year ago
|
package engine.gameManager;
|
||
3 years ago
|
|
||
2 years ago
|
import engine.Enum;
|
||
|
import engine.net.DispatchMessage;
|
||
|
import engine.net.client.msg.chat.ChatSystemMsg;
|
||
|
import engine.objects.*;
|
||
1 year ago
|
import org.pmw.tinylog.Logger;
|
||
|
|
||
2 years ago
|
import java.sql.ResultSet;
|
||
|
import java.sql.SQLException;
|
||
|
import java.util.ArrayList;
|
||
3 years ago
|
import java.util.HashMap;
|
||
2 years ago
|
import java.util.Random;
|
||
3 years ago
|
import java.util.concurrent.ThreadLocalRandom;
|
||
|
|
||
|
/**
|
||
|
* Class contains static methods for data from Magicbane's loot tables
|
||
|
*/
|
||
|
public class LootManager {
|
||
|
|
||
2 years ago
|
//new tables
|
||
1 year ago
|
private static final HashMap<Integer, GenTable> generalItemTables = new HashMap<>();
|
||
|
private static final HashMap<Integer, ItemTable> itemTables = new HashMap<>();
|
||
|
private static final HashMap<Integer, ModTypeTable> modTypeTables = new HashMap<>();
|
||
|
private static final HashMap<Integer, ModTable> modTables = new HashMap<>();
|
||
|
|
||
|
private LootManager() {
|
||
|
}
|
||
3 years ago
|
|
||
2 years ago
|
// Bootstrap routine to load loot data from database
|
||
|
public static void loadLootData() {
|
||
|
DbManager.LootQueries.LOAD_ALL_LOOTGROUPS();
|
||
|
DbManager.LootQueries.LOAD_ALL_LOOTTABLES();
|
||
|
DbManager.LootQueries.LOAD_ALL_MODGROUPS();
|
||
|
DbManager.LootQueries.LOAD_ALL_MODTABLES();
|
||
3 years ago
|
}
|
||
1 year ago
|
|
||
|
public static void GenerateMobLoot(Mob mob, boolean fromDeath) {
|
||
2 years ago
|
//determine if mob is in hotzone
|
||
|
boolean inHotzone = ZoneManager.inHotZone(mob.getLoc());
|
||
|
//get multiplier form config manager
|
||
|
float multiplier = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue());
|
||
|
if (inHotzone) {
|
||
1 year ago
|
//if mob is inside hotzone, use the hotzone multiplier from the config instead
|
||
2 years ago
|
multiplier = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue());
|
||
|
}
|
||
|
//iterate the booty sets
|
||
1 year ago
|
if (mob.getMobBase().bootySet != 0 && NPCManager._bootySetMap.containsKey(mob.getMobBase().bootySet) == true) {
|
||
1 year ago
|
RunBootySet(NPCManager._bootySetMap.get(mob.getMobBase().bootySet), mob, multiplier, inHotzone, fromDeath);
|
||
2 years ago
|
}
|
||
1 year ago
|
if (mob.bootySet != 0 && NPCManager._bootySetMap.containsKey(mob.bootySet) == true) {
|
||
2 years ago
|
RunBootySet(NPCManager._bootySetMap.get(mob.bootySet), mob, multiplier, inHotzone, fromDeath);
|
||
2 years ago
|
}
|
||
2 years ago
|
//lastly, check mobs inventory for godly or disc runes to send a server announcement
|
||
1 year ago
|
if (!fromDeath) {
|
||
2 years ago
|
for (Item it : mob.getInventory()) {
|
||
|
ItemBase ib = it.getItemBase();
|
||
|
if (ib.isDiscRune() || ib.getName().toLowerCase().contains("of the gods")) {
|
||
|
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " has found the " + ib.getName() + ". Are you tough enough to take it?");
|
||
|
chatMsg.setMessageType(10);
|
||
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||
|
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||
|
}
|
||
1 year ago
|
|
||
2 years ago
|
}
|
||
2 years ago
|
}
|
||
|
}
|
||
2 years ago
|
private static void RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone, boolean fromDeath) {
|
||
1 year ago
|
if (fromDeath) {
|
||
|
DropEquipment(mob, multiplier);
|
||
1 year ago
|
} else {
|
||
|
for (BootySetEntry bse : entries) {
|
||
|
switch (bse.bootyType) {
|
||
|
case "GOLD":
|
||
|
GenerateGoldDrop(mob, bse, inHotzone);
|
||
|
break;
|
||
|
case "LOOT":
|
||
|
GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop
|
||
|
if (inHotzone) {
|
||
|
if (generalItemTables.containsKey(bse.lootTable + 1))
|
||
|
GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance, multiplier);//generate loot drop from hotzone table
|
||
|
}
|
||
|
break;
|
||
|
case "ITEM":
|
||
|
GenerateItemLootDrop(mob, bse, multiplier);
|
||
|
break;
|
||
|
}
|
||
1 year ago
|
}
|
||
1 year ago
|
}
|
||
1 year ago
|
}
|
||
1 year ago
|
public static MobLoot getGenTableItem(int genTableID, Mob mob) {
|
||
1 year ago
|
if (genTableID == 0 || mob == null || generalItemTables.containsKey(genTableID) == false) {
|
||
|
return null;
|
||
|
}
|
||
|
MobLoot outItem;
|
||
1 year ago
|
int genRoll;
|
||
1 year ago
|
genRoll = new Random().nextInt(99) + 1;
|
||
1 year ago
|
GenTableRow selectedRow = generalItemTables.get(genTableID).getRowForRange(genRoll);
|
||
|
if (selectedRow == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int itemTableId = selectedRow.itemTableID;
|
||
|
//gets the 1-320 roll for this mob
|
||
1 year ago
|
int roll2 = TableRoll(mob.level);
|
||
1 year ago
|
ItemTableRow tableRow = itemTables.get(itemTableId).getRowForRange(roll2);
|
||
|
if (tableRow == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int itemUUID = tableRow.cacheID;
|
||
|
if (itemUUID == 0) {
|
||
|
return null;
|
||
|
}
|
||
|
if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) {
|
||
|
int amount = ThreadLocalRandom.current().nextInt(tableRow.maxSpawn - tableRow.minSpawn) + tableRow.minSpawn;
|
||
|
return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false);
|
||
|
}
|
||
|
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
|
||
|
Enum.ItemType outType = outItem.getItemBase().getType();
|
||
|
if (outType.ordinal() == Enum.ItemType.WEAPON.ordinal() || outType.ordinal() == Enum.ItemType.ARMOR.ordinal() || outType.ordinal() == Enum.ItemType.JEWELRY.ordinal()) {
|
||
|
if (outItem.getItemBase().isGlass() == false) {
|
||
1 year ago
|
try {
|
||
|
outItem = GeneratePrefix(mob, outItem, genTableID, genRoll);
|
||
|
} catch(Exception e){
|
||
|
Logger.error("Failed to GeneratePrefix for item: " + outItem.getName());
|
||
|
}
|
||
|
try{
|
||
1 year ago
|
outItem = GenerateSuffix(mob,outItem,genTableID,genRoll);
|
||
1 year ago
|
} catch(Exception e){
|
||
|
Logger.error("Failed to GenerateSuffix for item: " + outItem.getName());
|
||
|
}
|
||
1 year ago
|
}
|
||
|
}
|
||
1 year ago
|
return outItem;
|
||
3 years ago
|
}
|
||
1 year ago
|
private static MobLoot GeneratePrefix(Mob mob, MobLoot inItem, int genTableID, int genRoll){
|
||
|
int prefixChanceRoll = ThreadLocalRandom.current().nextInt(99)+1;
|
||
|
double prefixChance = 2.057 * mob.level - 28.67;
|
||
|
if (prefixChanceRoll < prefixChance) {
|
||
|
GenTableRow selectedRow = generalItemTables.get(genTableID).getRowForRange(genRoll);
|
||
|
ModTypeTable prefixTable = modTypeTables.get(selectedRow.pModTable);
|
||
|
int prefixroll = ThreadLocalRandom.current().nextInt(99)+1;
|
||
|
if (modTables.get(prefixTable.getRowForRange(prefixroll).modTableID) != null) {
|
||
|
ModTable prefixModTable = modTables.get(prefixTable.getRowForRange(prefixroll).modTableID);
|
||
|
ModTableRow prefixMod = prefixModTable.getRowForRange(TableRoll(mob.level));
|
||
|
if (prefixMod != null && prefixMod.action.length() > 0) {
|
||
|
inItem.setPrefix(prefixMod.action);
|
||
|
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return inItem;
|
||
|
}
|
||
|
private static MobLoot GenerateSuffix(Mob mob, MobLoot inItem, int genTableID, int genRoll){
|
||
|
int suffixChanceRoll = ThreadLocalRandom.current().nextInt(99)+1;
|
||
|
double suffixChance = 2.057 * mob.level - 28.67;
|
||
|
if (suffixChanceRoll < suffixChance) {
|
||
|
GenTableRow selectedRow = generalItemTables.get(genTableID).getRowForRange(genRoll);
|
||
|
int suffixroll = ThreadLocalRandom.current().nextInt(99)+1;
|
||
|
ModTypeTable suffixTable = modTypeTables.get(selectedRow.sModTable);
|
||
|
if (modTables.get(suffixTable.getRowForRange(suffixroll).modTableID) != null) {
|
||
|
ModTable suffixModTable = modTables.get(suffixTable.getRowForRange(suffixroll).modTableID);
|
||
|
ModTableRow suffixMod = suffixModTable.getRowForRange(TableRoll(mob.level));
|
||
|
if (suffixMod != null && suffixMod.action.length() > 0) {
|
||
|
inItem.setSuffix(suffixMod.action);
|
||
|
inItem.addPermanentEnchantment(suffixMod.action, 0, suffixMod.level, false);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return inItem;
|
||
|
}
|
||
|
private static int TableRoll(int mobLevel){
|
||
1 year ago
|
if(mobLevel > 65){
|
||
|
mobLevel = 65;
|
||
|
}
|
||
1 year ago
|
int max = (int)(4.882 * mobLevel + 127.0);
|
||
|
if(max > 321){
|
||
|
max = 321;
|
||
1 year ago
|
}
|
||
1 year ago
|
int min = (int)(4.469 * mobLevel - 3.469);
|
||
1 year ago
|
//if(isHotzone == true){
|
||
|
// min += mobLevel;
|
||
|
// if(min > 220){
|
||
|
// min = 220;
|
||
|
// }
|
||
|
//}
|
||
1 year ago
|
int roll = ThreadLocalRandom.current().nextInt(max-min) + min;
|
||
|
return roll;
|
||
|
}
|
||
1 year ago
|
public static void GenerateGoldDrop(Mob mob, BootySetEntry bse, Boolean inHotzone){
|
||
|
int chanceRoll = ThreadLocalRandom.current().nextInt(99) + 1;
|
||
|
if (chanceRoll > bse.dropChance) {
|
||
1 year ago
|
//early exit, failed to hit minimum chance roll OR booty was generated from mob's death
|
||
|
return;
|
||
|
}
|
||
|
//determine and add gold to mob inventory
|
||
1 year ago
|
int high = bse.highGold;
|
||
|
int low = bse.lowGold;
|
||
1 year ago
|
int gold = ThreadLocalRandom.current().nextInt(high - low) + low;
|
||
1 year ago
|
if(inHotzone == true){
|
||
|
gold = (int)(gold * Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_RATE.getValue()));
|
||
|
} else{
|
||
|
gold = (int)(gold * Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_RATE.getValue()));
|
||
|
}
|
||
1 year ago
|
if (gold > 0) {
|
||
1 year ago
|
MobLoot goldAmount = new MobLoot(mob, gold);
|
||
1 year ago
|
mob.getCharItemManager().addItemToInventory(goldAmount);
|
||
|
}
|
||
|
}
|
||
1 year ago
|
public static void GenerateLootDrop(Mob mob, int tableID, float dropChance,float multiplier){
|
||
1 year ago
|
try{
|
||
1 year ago
|
int chanceRoll = ThreadLocalRandom.current().nextInt(99) + 1;
|
||
|
if (chanceRoll > dropChance * multiplier) {
|
||
1 year ago
|
//early exit, failed to hit minimum chance roll
|
||
|
return;
|
||
|
}
|
||
1 year ago
|
MobLoot toAdd = getGenTableItem(tableID, mob);
|
||
1 year ago
|
if (toAdd != null) {
|
||
1 year ago
|
if(toAdd.getPrefix() == null && toAdd.getSuffix() == null){
|
||
1 year ago
|
toAdd.setIsID(true);
|
||
|
}
|
||
|
mob.getCharItemManager().addItemToInventory(toAdd);
|
||
|
}
|
||
1 year ago
|
}
|
||
|
catch(Exception e){
|
||
|
//TODO chase down loot generation error, affects roughly 2% of drops
|
||
|
int i = 0;
|
||
|
}
|
||
1 year ago
|
}
|
||
|
public static void DropEquipment(Mob mob, float multiplier){
|
||
|
//do equipment here
|
||
|
if (mob.getEquip() != null) {
|
||
|
for (MobEquipment me : mob.getEquip().values()) {
|
||
|
if (me.getDropChance() == 0)
|
||
|
continue;
|
||
|
float equipmentRoll = ThreadLocalRandom.current().nextInt(101);
|
||
|
float dropChance = me.getDropChance() * 100;
|
||
|
if (equipmentRoll <= (dropChance * multiplier)) {
|
||
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
||
|
if (ml.getPrefix().isEmpty() == true && ml.getSuffix().isEmpty() == true) {
|
||
|
ml.setIsID(true);
|
||
|
}
|
||
|
mob.getCharItemManager().addItemToInventory(ml);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
1 year ago
|
public static void GenerateItemLootDrop(Mob mob, BootySetEntry bse, float multiplier){
|
||
1 year ago
|
int chanceRoll = ThreadLocalRandom.current().nextInt(99) + 1;
|
||
1 year ago
|
if (chanceRoll > bse.dropChance * multiplier) {
|
||
|
//early exit, failed to hit minimum chance roll
|
||
|
return;
|
||
|
}
|
||
1 year ago
|
MobLoot disc = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);
|
||
|
if (disc != null)
|
||
|
mob.getCharItemManager().addItemToInventory(disc);
|
||
|
}
|
||
1 year ago
|
public static void AddGenTableRow(int tableID, GenTableRow row) {
|
||
|
if (!generalItemTables.containsKey(tableID)) {
|
||
2 years ago
|
//create the new table
|
||
2 years ago
|
GenTable gt = new GenTable();
|
||
|
gt.rows.add(row);
|
||
1 year ago
|
generalItemTables.put(tableID, gt);
|
||
|
} else {
|
||
2 years ago
|
//add row to existing table
|
||
|
GenTable toAdd = generalItemTables.get(tableID);
|
||
|
toAdd.rows.add(row);
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static void AddItemTableRow(int tableID, ItemTableRow row) {
|
||
|
if (!itemTables.containsKey(tableID)) {
|
||
2 years ago
|
//create the new table
|
||
2 years ago
|
ItemTable it = new ItemTable();
|
||
|
it.rows.add(row);
|
||
1 year ago
|
itemTables.put(tableID, it);
|
||
|
} else {
|
||
2 years ago
|
//add row to existing table
|
||
|
ItemTable toAdd = itemTables.get(tableID);
|
||
|
toAdd.rows.add(row);
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static void AddModTypeTableRow(int tableID, ModTypeTableRow row) {
|
||
|
if (!modTypeTables.containsKey(tableID)) {
|
||
2 years ago
|
//create the new table
|
||
2 years ago
|
ModTypeTable mtt = new ModTypeTable();
|
||
|
mtt.rows.add(row);
|
||
1 year ago
|
modTypeTables.put(tableID, mtt);
|
||
|
} else {
|
||
2 years ago
|
//add row to existing table
|
||
|
ModTypeTable toAdd = modTypeTables.get(tableID);
|
||
|
toAdd.rows.add(row);
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static void AddModTableRow(int tableID, ModTableRow row) {
|
||
|
if (!modTables.containsKey(tableID)) {
|
||
2 years ago
|
//create the new table
|
||
2 years ago
|
ModTable mt = new ModTable();
|
||
|
mt.rows.add(row);
|
||
1 year ago
|
modTables.put(tableID, mt);
|
||
|
} else {
|
||
2 years ago
|
//add row to existing table
|
||
|
ModTable toAdd = modTables.get(tableID);
|
||
|
toAdd.rows.add(row);
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class GenTable {
|
||
2 years ago
|
public ArrayList<GenTableRow> rows = new ArrayList<GenTableRow>();
|
||
1 year ago
|
|
||
|
public GenTableRow getRowForRange(int roll) {
|
||
2 years ago
|
GenTableRow outRow = null;
|
||
1 year ago
|
for (GenTableRow iteration : this.rows) {
|
||
|
if (roll >= iteration.minRoll && roll <= iteration.maxRoll) {
|
||
2 years ago
|
outRow = iteration;
|
||
|
}
|
||
|
}
|
||
|
return outRow;
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class ItemTable {
|
||
2 years ago
|
public ArrayList<ItemTableRow> rows = new ArrayList<ItemTableRow>();
|
||
1 year ago
|
|
||
|
public ItemTableRow getRowForRange(int roll) {
|
||
|
if (roll > 320) {
|
||
2 years ago
|
roll = 320;
|
||
|
}
|
||
|
ItemTableRow outRow = null;
|
||
1 year ago
|
for (ItemTableRow iteration : this.rows) {
|
||
|
if (roll >= iteration.minRoll && roll <= iteration.maxRoll) {
|
||
2 years ago
|
outRow = iteration;
|
||
|
}
|
||
|
}
|
||
|
return outRow;
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class ModTypeTable {
|
||
2 years ago
|
public ArrayList<ModTypeTableRow> rows = new ArrayList<ModTypeTableRow>();
|
||
1 year ago
|
|
||
|
public ModTypeTableRow getRowForRange(int roll) {
|
||
2 years ago
|
ModTypeTableRow outRow = null;
|
||
1 year ago
|
for (ModTypeTableRow iteration : this.rows) {
|
||
|
if (roll >= iteration.minRoll && roll <= iteration.maxRoll) {
|
||
2 years ago
|
return iteration;
|
||
2 years ago
|
}
|
||
|
}
|
||
|
return outRow;
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class ModTable {
|
||
2 years ago
|
public ArrayList<ModTableRow> rows = new ArrayList<ModTableRow>();
|
||
1 year ago
|
|
||
|
public ModTableRow getRowForRange(int roll) {
|
||
|
if (roll > 320) {
|
||
2 years ago
|
roll = 320;
|
||
|
}
|
||
|
ModTableRow outRow = null;
|
||
1 year ago
|
for (ModTableRow iteration : this.rows) {
|
||
|
if (roll >= iteration.minRoll && roll <= iteration.maxRoll) {
|
||
2 years ago
|
outRow = iteration;
|
||
|
}
|
||
|
}
|
||
|
return outRow;
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class GenTableRow {
|
||
2 years ago
|
public int minRoll;
|
||
|
public int maxRoll;
|
||
|
public int itemTableID;
|
||
|
public int pModTable;
|
||
|
public int sModTable;
|
||
1 year ago
|
|
||
2 years ago
|
public GenTableRow(ResultSet rs) throws SQLException {
|
||
|
this.minRoll = rs.getInt("minRoll");
|
||
|
this.maxRoll = rs.getInt("maxRoll");
|
||
|
this.itemTableID = rs.getInt("lootTableID");
|
||
|
this.pModTable = rs.getInt("pModTableID");
|
||
|
this.sModTable = rs.getInt("sModTableID");
|
||
|
}
|
||
3 years ago
|
}
|
||
1 year ago
|
public static class ItemTableRow {
|
||
2 years ago
|
public int minRoll;
|
||
|
public int maxRoll;
|
||
|
public int cacheID;
|
||
2 years ago
|
public int minSpawn;
|
||
|
public int maxSpawn;
|
||
1 year ago
|
|
||
2 years ago
|
public ItemTableRow(ResultSet rs) throws SQLException {
|
||
|
this.minRoll = rs.getInt("minRoll");
|
||
|
this.maxRoll = rs.getInt("maxRoll");
|
||
|
this.cacheID = rs.getInt("itemBaseUUID");
|
||
2 years ago
|
this.minSpawn = rs.getInt("minSpawn");
|
||
|
this.maxSpawn = rs.getInt("maxSpawn");
|
||
2 years ago
|
|
||
|
}
|
||
|
}
|
||
1 year ago
|
public static class ModTypeTableRow {
|
||
2 years ago
|
public int minRoll;
|
||
|
public int maxRoll;
|
||
|
public int modTableID;
|
||
1 year ago
|
|
||
2 years ago
|
public ModTypeTableRow(ResultSet rs) throws SQLException {
|
||
|
this.minRoll = rs.getInt("minRoll");
|
||
|
this.maxRoll = rs.getInt("maxRoll");
|
||
|
this.modTableID = rs.getInt("subTableID");
|
||
|
|
||
|
}
|
||
|
}
|
||
1 year ago
|
public static class ModTableRow {
|
||
2 years ago
|
public int minRoll;
|
||
|
public int maxRoll;
|
||
|
public String action;
|
||
|
public int level;
|
||
1 year ago
|
|
||
2 years ago
|
public ModTableRow(ResultSet rs) throws SQLException {
|
||
|
this.minRoll = rs.getInt("minRoll");
|
||
|
this.maxRoll = rs.getInt("maxRoll");
|
||
|
this.action = rs.getString("action");
|
||
|
this.level = rs.getInt("level");
|
||
|
|
||
|
}
|
||
3 years ago
|
}
|
||
2 years ago
|
}
|