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