Refactor itembase.name to template.
This commit is contained in:
1 parent
507769c6b6
commit
d9775dbf4e
17 files changed
+131
-90
No files matched your search
@@ -612,7 +612,8 @@ public enum ChatManager {
|
||||
name = amount + " gold ";
|
||||
else {
|
||||
String vowels = "aeiou";
|
||||
String iName = item.getItemBase().getName();
|
||||
ItemTemplate template = ItemTemplate.itemTemplates.get(item.getItemBaseID());
|
||||
String iName = template.item_base_name;
|
||||
if (iName.length() > 0)
|
||||
if (vowels.indexOf(iName.substring(0, 1).toLowerCase()) >= 0)
|
||||
name = "an " + iName + ' ';
|
||||
|
||||
Reference in new issue
Block a user