Inline templateID
This commit is contained in:
@@ -540,7 +540,7 @@ public enum ChatManager {
|
||||
name = amount + " gold ";
|
||||
else {
|
||||
String vowels = "aeiou";
|
||||
ItemTemplate template = ItemTemplate.templates.get(item.getTemplateID());
|
||||
ItemTemplate template = ItemTemplate.templates.get(item.templateID);
|
||||
String iName = template.item_base_name;
|
||||
if (iName.length() > 0)
|
||||
if (vowels.indexOf(iName.substring(0, 1).toLowerCase()) >= 0)
|
||||
|
||||
@@ -87,9 +87,9 @@ public enum LootManager {
|
||||
if (ib == null)
|
||||
break;
|
||||
|
||||
ItemTemplate template = ItemTemplate.templates.get(it.getTemplateID());
|
||||
ItemTemplate template = ItemTemplate.templates.get(it.templateID);
|
||||
|
||||
if ((it.getTemplateID() > 2499 && it.templateID <= 3050) || template.item_base_name.toLowerCase().contains("of the gods")) {
|
||||
if ((it.templateID > 2499 && it.templateID <= 3050) || template.item_base_name.toLowerCase().contains("of the gods")) {
|
||||
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().zoneName + " has found the " + template.item_base_name + ". Are you tough enough to take it?");
|
||||
chatMsg.setMessageType(10);
|
||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||
@@ -381,8 +381,8 @@ public enum LootManager {
|
||||
|
||||
int tableID = 0;
|
||||
|
||||
if (_bootySetMap.get(gift.getTemplateID()) != null)
|
||||
tableID = _bootySetMap.get(gift.getTemplateID()).get(ThreadLocalRandom.current().nextInt(_bootySetMap.get(gift.getTemplateID()).size())).genTable;
|
||||
if (_bootySetMap.get(gift.templateID) != null)
|
||||
tableID = _bootySetMap.get(gift.templateID).get(ThreadLocalRandom.current().nextInt(_bootySetMap.get(gift.templateID).size())).genTable;
|
||||
|
||||
if (tableID == 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user