@ -87,7 +87,7 @@ public enum LootManager {
if ( ib = = null )
if ( ib = = null )
break ;
break ;
ItemTemplate template = ItemTemplate . i temT emplates. get ( it . getTemplateID ( ) ) ;
ItemTemplate template = ItemTemplate . templates . get ( it . getTemplateID ( ) ) ;
if ( ib . isDiscRune ( ) | | template . item_base_name . toLowerCase ( ) . contains ( "of the gods" ) ) {
if ( ib . isDiscRune ( ) | | 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?" ) ;
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?" ) ;
@ -175,12 +175,12 @@ public enum LootManager {
if ( itemUUID = = 0 )
if ( itemUUID = = 0 )
return null ;
return null ;
if ( ItemTemplate . i temT emplates. get ( itemUUID ) . item_type . equals ( Enum . ItemType . RESOURCE ) ) {
if ( ItemTemplate . templates . get ( itemUUID ) . item_type . equals ( Enum . ItemType . RESOURCE ) ) {
int amount = ThreadLocalRandom . current ( ) . nextInt ( tableRow . minSpawn , tableRow . maxSpawn + 1 ) ;
int amount = ThreadLocalRandom . current ( ) . nextInt ( tableRow . minSpawn , tableRow . maxSpawn + 1 ) ;
return new MobLoot ( mob , ItemTemplate . i temT emplates. get ( itemUUID ) , amount , false ) ;
return new MobLoot ( mob , ItemTemplate . templates . get ( itemUUID ) , amount , false ) ;
}
}
outItem = new MobLoot ( mob , ItemTemplate . i temT emplates. get ( itemUUID ) , false ) ;
outItem = new MobLoot ( mob , ItemTemplate . templates . get ( itemUUID ) , false ) ;
if ( selectedRow . pModTable ! = 0 ) {
if ( selectedRow . pModTable ! = 0 ) {
try {
try {
@ -369,7 +369,7 @@ public enum LootManager {
if ( chanceRoll > bse . dropChance )
if ( chanceRoll > bse . dropChance )
return ;
return ;
MobLoot lootItem = new MobLoot ( mob , ItemTemplate . i temT emplates. get ( bse . templateID ) , true ) ;
MobLoot lootItem = new MobLoot ( mob , ItemTemplate . templates . get ( bse . templateID ) , true ) ;
if ( lootItem ! = null )
if ( lootItem ! = null )
mob . getCharItemManager ( ) . addItemToInventory ( lootItem ) ;
mob . getCharItemManager ( ) . addItemToInventory ( lootItem ) ;
@ -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 . i temT emplates. get ( selectedItem . cacheID ) , 1 , false ) ;
MobLoot winnings = new MobLoot ( playerCharacter , ItemTemplate . templates . get ( selectedItem . cacheID ) , 1 , false ) ;
if ( winnings = = null )
if ( winnings = = null )
return ;
return ;