Loading src/NegoreRouse/mods/slashblade/SA/SA_8.java +4 −2 Changes for src/NegoreRouse/mods/slashblade/SA/SA_8.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ extends SpecialAttackBase { target = this.getEntityToWatch(player); } if (target != null) { entityId = target.func_145782_y(); world.func_72956_a((Entity)player, "negorerouse:blade", 1.0f, 1.0f); for (int i = 0; i < 50; ++i) { double d0 = player.func_70681_au().nextGaussian() * 0.02; Loading Loading @@ -94,7 +95,8 @@ extends SpecialAttackBase { if (7 <= rank) { magicDamage *= 2.0f; } int maxCol = 12; boolean targetIsPlayer = target instanceof EntityPlayer; int maxCol = targetIsPlayer ? 3 : 12; int maxCount = 3; double radBaseRot = Math.toRadians(player.field_70177_z); double radRot = Math.PI * 2 / (double)(maxCount += rank / 4 * 3); Loading @@ -103,7 +105,7 @@ extends SpecialAttackBase { if (world.field_72995_K || (entityDrive = new EntityPhantomSwordTwelve(world, (EntityLivingBase)player, magicDamage, 0.0f)) == null) continue; entityDrive.setColor(7377883); entityDrive.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive.setLifeTime(30); entityDrive.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive.setRoll(0.0f); entityDrive.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive); Loading src/NegoreRouse/mods/slashblade/SA/SA_9.java +8 −3 Changes for src/NegoreRouse/mods/slashblade/SA/SA_9.java: 8 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ extends SpecialAttackBase { target = this.getEntityToWatch(player); } if (target != null && stack.func_77973_b() instanceof ItemEUBlade) { entityId = target.func_145782_y(); player.func_85030_a("random.anvil_break", 1.0f, 1.5f); for (int i = 0; i < 50; ++i) { double d0 = player.func_70681_au().nextGaussian() * 0.02; Loading Loading @@ -95,10 +96,14 @@ extends SpecialAttackBase { if (7 <= rank) { magicDamage *= 2.0f; } int maxCol = 2; boolean targetIsPlayer = target instanceof EntityPlayer; int maxCol = targetIsPlayer ? 1 : 2; int maxCount = 3; double radBaseRot = Math.toRadians(player.field_70177_z); double radRot = Math.PI * 2 / (double)(maxCount += rank / 4 * 3); if (targetIsPlayer) { maxCount = 1; } for (int j = 0; j < maxCol; ++j) { for (int i = 0; i < maxCount; ++i) { EntityMagneticStorm entityDrive2; Loading @@ -107,7 +112,7 @@ extends SpecialAttackBase { if (entityDrive != null) { entityDrive.setColor(Short.MAX_VALUE); entityDrive.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive.setLifeTime(30); entityDrive.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive.setRoll(0.0f); entityDrive.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive); Loading @@ -115,7 +120,7 @@ extends SpecialAttackBase { if ((entityDrive2 = new EntityMagneticStorm(world, (EntityLivingBase)player, magicDamage, 0.0f)) == null) continue; entityDrive2.setColor(0xC0C0C0); entityDrive2.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive2.setLifeTime(30); entityDrive2.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive2.setRoll(0.0f); entityDrive2.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive2); Loading src/NegoreRouse/mods/slashblade/SA/entity/EntityMagneticStorm.java +4 Changes for src/NegoreRouse/mods/slashblade/SA/entity/EntityMagneticStorm.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -262,6 +262,10 @@ implements IThrowableEntity { if (this.field_70170_p.field_72995_K) { return; } if (this.thrower == null || this.thrower.field_70128_L) { this.func_70106_y(); return; } if (this.ridingEntity2 != null) { this.func_70098_U(); } else { Loading src/NegoreRouse/mods/slashblade/SA/entity/Twelve/EntityPhantomSwordTwelve.java +4 Changes for src/NegoreRouse/mods/slashblade/SA/entity/Twelve/EntityPhantomSwordTwelve.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -264,6 +264,10 @@ implements IThrowableEntity { if (this.field_70170_p.field_72995_K) { return; } if (this.thrower == null || this.thrower.field_70128_L) { this.func_70106_y(); return; } if (this.ridingEntity2 != null) { this.func_70098_U(); } else { Loading src/NegoreRouse/mods/slashblade/specialmagneticStorm/MagneticStormTier.java +6 −1 Changes for src/NegoreRouse/mods/slashblade/specialmagneticStorm/MagneticStormTier.java: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ package NegoreRouse.mods.slashblade.specialmagneticStorm; import NegoreRouse.mods.slashblade.Network.SMSRangeAttackHandler; import NegoreRouse.mods.slashblade.Blade.EUBlade.ItemEUBlade; import NegoreRouse.mods.slashblade.specialmagneticStorm.IMagneticStorm; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.InputEvent; Loading @@ -19,6 +20,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityClientPlayerMP; import net.minecraft.item.ItemStack; public class MagneticStormTier { @SideOnly(value=Side.CLIENT) Loading @@ -28,10 +30,13 @@ public class MagneticStormTier { Minecraft mc = Minecraft.func_71410_x(); EntityClientPlayerMP playerMP = mc.field_71439_g; if (playerMP != null && !mc.func_147113_T() && mc.field_71415_G && mc.field_71462_r == null) { ItemStack item = playerMP.func_70694_bm(); if (item == null || !(item.func_77973_b() instanceof ItemEUBlade)) { return; } mc.field_71442_b.func_78765_e(); SMSRangeAttackHandler.useSMSTier(); } } } } Loading
src/NegoreRouse/mods/slashblade/SA/SA_8.java +4 −2 Changes for src/NegoreRouse/mods/slashblade/SA/SA_8.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ extends SpecialAttackBase { target = this.getEntityToWatch(player); } if (target != null) { entityId = target.func_145782_y(); world.func_72956_a((Entity)player, "negorerouse:blade", 1.0f, 1.0f); for (int i = 0; i < 50; ++i) { double d0 = player.func_70681_au().nextGaussian() * 0.02; Loading Loading @@ -94,7 +95,8 @@ extends SpecialAttackBase { if (7 <= rank) { magicDamage *= 2.0f; } int maxCol = 12; boolean targetIsPlayer = target instanceof EntityPlayer; int maxCol = targetIsPlayer ? 3 : 12; int maxCount = 3; double radBaseRot = Math.toRadians(player.field_70177_z); double radRot = Math.PI * 2 / (double)(maxCount += rank / 4 * 3); Loading @@ -103,7 +105,7 @@ extends SpecialAttackBase { if (world.field_72995_K || (entityDrive = new EntityPhantomSwordTwelve(world, (EntityLivingBase)player, magicDamage, 0.0f)) == null) continue; entityDrive.setColor(7377883); entityDrive.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive.setLifeTime(30); entityDrive.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive.setRoll(0.0f); entityDrive.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive); Loading
src/NegoreRouse/mods/slashblade/SA/SA_9.java +8 −3 Changes for src/NegoreRouse/mods/slashblade/SA/SA_9.java: 8 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ extends SpecialAttackBase { target = this.getEntityToWatch(player); } if (target != null && stack.func_77973_b() instanceof ItemEUBlade) { entityId = target.func_145782_y(); player.func_85030_a("random.anvil_break", 1.0f, 1.5f); for (int i = 0; i < 50; ++i) { double d0 = player.func_70681_au().nextGaussian() * 0.02; Loading Loading @@ -95,10 +96,14 @@ extends SpecialAttackBase { if (7 <= rank) { magicDamage *= 2.0f; } int maxCol = 2; boolean targetIsPlayer = target instanceof EntityPlayer; int maxCol = targetIsPlayer ? 1 : 2; int maxCount = 3; double radBaseRot = Math.toRadians(player.field_70177_z); double radRot = Math.PI * 2 / (double)(maxCount += rank / 4 * 3); if (targetIsPlayer) { maxCount = 1; } for (int j = 0; j < maxCol; ++j) { for (int i = 0; i < maxCount; ++i) { EntityMagneticStorm entityDrive2; Loading @@ -107,7 +112,7 @@ extends SpecialAttackBase { if (entityDrive != null) { entityDrive.setColor(Short.MAX_VALUE); entityDrive.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive.setLifeTime(30); entityDrive.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive.setRoll(0.0f); entityDrive.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive); Loading @@ -115,7 +120,7 @@ extends SpecialAttackBase { if ((entityDrive2 = new EntityMagneticStorm(world, (EntityLivingBase)player, magicDamage, 0.0f)) == null) continue; entityDrive2.setColor(0xC0C0C0); entityDrive2.setDriveVector(1.2f + (float)(j * 2 / 5)); entityDrive2.setLifeTime(30); entityDrive2.setLifeTime(targetIsPlayer ? 12 : 30); entityDrive2.setRoll(0.0f); entityDrive2.setTargetEntityId(entityId); world.func_72838_d((Entity)entityDrive2); Loading
src/NegoreRouse/mods/slashblade/SA/entity/EntityMagneticStorm.java +4 Changes for src/NegoreRouse/mods/slashblade/SA/entity/EntityMagneticStorm.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -262,6 +262,10 @@ implements IThrowableEntity { if (this.field_70170_p.field_72995_K) { return; } if (this.thrower == null || this.thrower.field_70128_L) { this.func_70106_y(); return; } if (this.ridingEntity2 != null) { this.func_70098_U(); } else { Loading
src/NegoreRouse/mods/slashblade/SA/entity/Twelve/EntityPhantomSwordTwelve.java +4 Changes for src/NegoreRouse/mods/slashblade/SA/entity/Twelve/EntityPhantomSwordTwelve.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -264,6 +264,10 @@ implements IThrowableEntity { if (this.field_70170_p.field_72995_K) { return; } if (this.thrower == null || this.thrower.field_70128_L) { this.func_70106_y(); return; } if (this.ridingEntity2 != null) { this.func_70098_U(); } else { Loading
src/NegoreRouse/mods/slashblade/specialmagneticStorm/MagneticStormTier.java +6 −1 Changes for src/NegoreRouse/mods/slashblade/specialmagneticStorm/MagneticStormTier.java: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ package NegoreRouse.mods.slashblade.specialmagneticStorm; import NegoreRouse.mods.slashblade.Network.SMSRangeAttackHandler; import NegoreRouse.mods.slashblade.Blade.EUBlade.ItemEUBlade; import NegoreRouse.mods.slashblade.specialmagneticStorm.IMagneticStorm; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.InputEvent; Loading @@ -19,6 +20,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityClientPlayerMP; import net.minecraft.item.ItemStack; public class MagneticStormTier { @SideOnly(value=Side.CLIENT) Loading @@ -28,10 +30,13 @@ public class MagneticStormTier { Minecraft mc = Minecraft.func_71410_x(); EntityClientPlayerMP playerMP = mc.field_71439_g; if (playerMP != null && !mc.func_147113_T() && mc.field_71415_G && mc.field_71462_r == null) { ItemStack item = playerMP.func_70694_bm(); if (item == null || !(item.func_77973_b() instanceof ItemEUBlade)) { return; } mc.field_71442_b.func_78765_e(); SMSRangeAttackHandler.useSMSTier(); } } } }