From d0279599f64a0d6d6acd2c7c9f61be8377896ee3 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 6 Apr 2023 18:08:01 -0400 Subject: [PATCH 1/2] BootySets expanded to handle rune booty. --- src/engine/objects/BootySetEntry.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/BootySetEntry.java b/src/engine/objects/BootySetEntry.java index c34edeba..a159b2ac 100644 --- a/src/engine/objects/BootySetEntry.java +++ b/src/engine/objects/BootySetEntry.java @@ -14,15 +14,23 @@ import java.sql.SQLException; public class BootySetEntry { - + public String bootyType; + public int lowGold; + public int highGold; public int itemBase; + public int lootTable; public float dropChance; + /** * ResultSet Constructor */ public BootySetEntry(ResultSet rs) throws SQLException { + this.bootyType = (rs.getString("bootyType")); + this.lowGold = (rs.getInt("lowGold")); + this.highGold = (rs.getInt("highGold")); this.itemBase = (rs.getInt("itemBase")); + this.lootTable = (rs.getInt("lootTable")); this.dropChance = (rs.getFloat("dropChance")); } From 88bf38b858c7e558d894063ecdd50305320ce4bc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 6 Apr 2023 20:58:13 -0400 Subject: [PATCH 2/2] Mobbase updated with new booty and fsm fields. --- src/engine/objects/MobBase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index 32ecdef4..df74ca02 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -60,7 +60,8 @@ public class MobBase extends AbstractGameObject { private float run = 0; private float walkCombat = 0; private float runCombat = 0; - + public int bootySet; + public String fsm = ""; /** * ResultSet Constructor */ @@ -84,6 +85,8 @@ public class MobBase extends AbstractGameObject { this.attackRating = rs.getInt("atr"); this.defenseRating = rs.getInt("defense"); this.attackRange = rs.getFloat("attackRange"); + this.bootySet = rs.getInt("bootySet"); + this.fsm = rs.getString("fsm"); if (MobbaseGoldEntry.MobbaseGoldMap.containsKey(this.loadID)){ MobbaseGoldEntry goldEntry = MobbaseGoldEntry.MobbaseGoldMap.get(this.loadID);