Variable rename

This commit is contained in:
2024-03-22 12:37:40 -04:00
parent 0f18258d1b
commit f01fb6f848
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ public enum LootManager {
if (tableRow == null)
return null;
int itemUUID = tableRow.cacheID;
int itemUUID = tableRow.templateID;
if (itemUUID == 0)
return null;
@@ -417,7 +417,7 @@ public enum LootManager {
//create the item from the table, quantity is always 1
MobLoot winnings = new MobLoot(playerCharacter, ItemTemplate.templates.get(selectedItem.cacheID), 1, false);
MobLoot winnings = new MobLoot(playerCharacter, ItemTemplate.templates.get(selectedItem.templateID), 1, false);
if (winnings == null)
return;
+2 -2
View File
@@ -17,14 +17,14 @@ import java.util.List;
public class ItemTableEntry {
public int minRoll;
public int maxRoll;
public int cacheID;
public int templateID;
public int minSpawn;
public int maxSpawn;
public ItemTableEntry(ResultSet rs) throws SQLException {
this.minRoll = rs.getInt("minRoll");
this.maxRoll = rs.getInt("maxRoll");
this.cacheID = rs.getInt("itemBaseUUID");
this.templateID = rs.getInt("itemBaseUUID");
this.minSpawn = rs.getInt("minSpawn");
this.maxSpawn = rs.getInt("maxSpawn");
}