Shredder and Infinity balance
Another global iframe culled
This commit is contained in:
1 parent
4fc6533f04
commit
0769aa8920
4 files changed
+15
-19
No files matched your search
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.damage = 120;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 2;
|
||||
Item.useAnimation = 18;
|
||||
Item.reuseDelay = 6;
|
||||
Item.useAnimation = 12;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useLimitPerAnimation = 9;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
@@ -73,11 +73,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
rotation -= 2;
|
||||
}
|
||||
if (rotation >= 15)
|
||||
if (rotation >= 11)
|
||||
{
|
||||
limit = false;
|
||||
}
|
||||
else if (rotation <= -15)
|
||||
else if (rotation <= -11)
|
||||
{
|
||||
limit = true;
|
||||
}
|
||||
@@ -100,11 +100,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
rotation -= 2;
|
||||
}
|
||||
if (rotation >= 15)
|
||||
if (rotation >= 11)
|
||||
{
|
||||
limit = false;
|
||||
}
|
||||
else if (rotation <= -15)
|
||||
else if (rotation <= -11)
|
||||
{
|
||||
limit = true;
|
||||
}
|
||||
|
||||
@@ -20,11 +20,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 56;
|
||||
Item.height = 24;
|
||||
Item.damage = 24;
|
||||
Item.damage = 30;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 32;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useAnimation = 24;
|
||||
Item.reuseDelay = 20;
|
||||
Item.useLimitPerAnimation = 8;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
@@ -63,8 +63,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = velocity.X + Main.rand.Next(-30, 31) * 0.05f;
|
||||
float SpeedY = velocity.Y + Main.rand.Next(-30, 31) * 0.05f;
|
||||
int shredderBoltDamage = (int)(0.85f * damage);
|
||||
int shot = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), shredderBoltDamage, knockback, player.whoAmI, 0f, 0f);
|
||||
int shot = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[shot].timeLeft = 180;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -62,13 +62,13 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item62, Projectile.position);
|
||||
int projectiles = Main.rand.Next(2, 5);
|
||||
int projectiles = Main.rand.Next(2, 3 + 1);
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
for (int k = 0; k < projectiles; k++)
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.position.X, Projectile.position.Y, (float)Main.rand.Next(-10, 11) * 2f, (float)Main.rand.Next(-10, 11) * 2f, ModContent.ProjectileType<ChargedBlast2>(),
|
||||
(int)((double)Projectile.damage * 0.85), (float)(int)((double)Projectile.knockBack * 0.5), Main.myPlayer, 0f, 0f);
|
||||
(int)((double)Projectile.damage * 0.45), (float)(int)((double)Projectile.knockBack * 0.5), Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,6 +20,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Projectile.extraUpdates = 2;
|
||||
Projectile.alpha = 255;
|
||||
Projectile.timeLeft = 200;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -84,10 +86,5 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 160, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.immune[Projectile.owner] = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user