forked from MagicBane/Server
Variable rename
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user