Browse Source

Variable rename

combat-2
MagicBot 8 months ago
parent
commit
f01fb6f848
  1. 4
      src/engine/gameManager/LootManager.java
  2. 4
      src/engine/loot/ItemTableEntry.java

4
src/engine/gameManager/LootManager.java

@ -170,7 +170,7 @@ public enum LootManager {
if (tableRow == null) if (tableRow == null)
return null; return null;
int itemUUID = tableRow.cacheID; int itemUUID = tableRow.templateID;
if (itemUUID == 0) if (itemUUID == 0)
return null; return null;
@ -417,7 +417,7 @@ public enum LootManager {
//create the item from the table, quantity is always 1 //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) if (winnings == null)
return; return;

4
src/engine/loot/ItemTableEntry.java

@ -17,14 +17,14 @@ import java.util.List;
public class ItemTableEntry { public class ItemTableEntry {
public int minRoll; public int minRoll;
public int maxRoll; public int maxRoll;
public int cacheID; public int templateID;
public int minSpawn; public int minSpawn;
public int maxSpawn; public int maxSpawn;
public ItemTableEntry(ResultSet rs) throws SQLException { public ItemTableEntry(ResultSet rs) throws SQLException {
this.minRoll = rs.getInt("minRoll"); this.minRoll = rs.getInt("minRoll");
this.maxRoll = rs.getInt("maxRoll"); this.maxRoll = rs.getInt("maxRoll");
this.cacheID = rs.getInt("itemBaseUUID"); this.templateID = rs.getInt("itemBaseUUID");
this.minSpawn = rs.getInt("minSpawn"); this.minSpawn = rs.getInt("minSpawn");
this.maxSpawn = rs.getInt("maxSpawn"); this.maxSpawn = rs.getInt("maxSpawn");
} }

Loading…
Cancel
Save