forked from MagicBane/Server
More refactor out itembase
This commit is contained in:
@@ -34,7 +34,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
|
||||
if (mob.bootySet != 0) {
|
||||
for (BootySetEntry entry : LootManager._bootySetMap.get(mob.bootySet)) {
|
||||
|
||||
ItemTemplate template = ItemTemplate.itemTemplates.get(entry.itemBase);
|
||||
ItemTemplate template = ItemTemplate.itemTemplates.get(entry.templateID);
|
||||
|
||||
if (template != null)
|
||||
output += "[" + entry.bootyType + "] " + template.item_base_name + " [Chance] " + entry.dropChance + newline;
|
||||
@@ -71,7 +71,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
|
||||
Runes.add(lootItem);
|
||||
break;
|
||||
case WEAPON: //WEAPON
|
||||
if (lootItem.getItemBase().isGlass())
|
||||
if (lootItem.getName().toUpperCase().contains("GLASS"))
|
||||
GlassItems.add(lootItem);
|
||||
else
|
||||
OtherDrops.add(lootItem);
|
||||
|
||||
Reference in New Issue
Block a user