1 - Misc adjustments.

This commit is contained in:
Andrew Marheine committed 2021-10-29 10:00:49 -05:00
1 parent bcc928cc8e
commit 526e975ce4
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -35,9 +35,9 @@ namespace CalamityMod.Projectiles.Rogue
{
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, ModContent.DustType<AstralOrange>(), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
}
if (projectile.timeLeft % 30 == 0)
if (projectile.timeLeft % 15 == 0)
{
if (projectile.Calamity().stealthStrike == true)
if (projectile.Calamity().stealthStrike)
{
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<GacruxianHome>(), (int)(projectile.damage * 0.3), projectile.knockBack, projectile.owner);
}
+1 -1
View File
@@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue
projectile.velocity.X *= 0.96f;
projectile.velocity.Y *= 0.96f;
projectile.localAI[1]++;
if (projectile.Calamity().stealthStrike == true)
if (projectile.Calamity().stealthStrike)
{
if (projectile.localAI[1] >= 30f)
{
+2 -2
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
if (projectile.Calamity().stealthStrike == true)
if (projectile.Calamity().stealthStrike)
{
target.AddBuff(BuffID.Webbed, 120);
}
@@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void OnHitPvp(Player target, int damage, bool crit)
{
if (projectile.Calamity().stealthStrike == true)
if (projectile.Calamity().stealthStrike)
{
target.AddBuff(BuffID.Webbed, 120);
}
+1 -1
View File
@@ -1301,7 +1301,7 @@ namespace CalamityMod.World
if (chest.item[inventoryIndex].type == ItemID.SuspiciousLookingEye)
{
chest.item[inventoryIndex].SetDefaults(ItemID.Lens);
chest.item[inventoryIndex].stack = Main.rand.Next(3);
chest.item[inventoryIndex].stack = 1 + Main.rand.Next(2);
break;
}
}