@ -23,18 +23,17 @@ public class EsgarothSoldier extends LOTREntityDaleSoldier {
@Override
public IEntityLivingData onSpawnWithEgg ( IEntityLivingData data ) {
data = super . onSpawnWithEgg ( data ) ;
int i = this . rand . nextInt ( 5 ) ;
if ( i = = 0 | | i = = 1 | | i = = 2 ) {
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( LOTRMod . swordDale ) ) ;
} else if ( i = = 3 ) {
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( LOTRMod . battleaxeDale ) ) ;
} else if ( i = = 4 ) {
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( LOTRMod . pikeDale ) ) ;
}
if ( this . rand . nextInt ( 6 ) = = 0 ) {
int i = this . rand . nextInt ( 2 ) ;
if ( i = = 0 ) {
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( CinderLoE . greatswordDale ) ) ;
if ( this . rand . nextInt ( 5 ) = = 0 ) {
this . npcItemsInv . setSpearBackup ( this . npcItemsInv . getMeleeWeapon ( ) ) ;
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( LOTRMod . spearDale ) ) ;
}
} else if ( i = = 1 ) {
this . npcItemsInv . setMeleeWeapon ( new ItemStack ( LOTRMod . spearDale ) ) ;
this . npcItemsInv . setSpearBackup ( null ) ;
}
this . npcItemsInv . setIdleItem ( this . npcItemsInv . getMeleeWeapon ( ) ) ;
this . setCurrentItemOrArmor ( 1 , new ItemStack ( CinderLoE . bootsEsgaroth ) ) ;
this . setCurrentItemOrArmor ( 2 , new ItemStack ( CinderLoE . legsEsgaroth ) ) ;