diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 65fa979a69..1bf6be4e33 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -3808,8 +3808,11 @@ Grants immunity to fire blocks, and temporary immunity to lava"; prefix = Main.rand.Next(22, 25); break; case 6: - // Legendary = 25 - prefix = 25; + // Legendary = 25, Light = 6 ~We are tool friendly (= + if (item.pick > 0 || item.axe > 0 || item.hammer > 0) + prefix = Main.rand.NextBool() ? 25 : 6; + else + prefix = 25; break; } switch (prefix) diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index bc2b0c06ff..32601c3bca 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -58,17 +58,16 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { + int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); if (player.Calamity().StealthStrikeAvailable() && counter == 0) { - int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); Main.projectile[stealth].Calamity().stealthStrike = true; - return false; } counter++; if (counter >= item.useAnimation / item.useTime) counter = 0; - return true; + return false; } } } diff --git a/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs b/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs index f4fa16f935..d8e736203b 100644 --- a/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs +++ b/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs @@ -60,14 +60,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos if (bubbleStronkCounter >= 240) bubbleStronk = false; - Rectangle rectangle = new Rectangle((int)((double)projectile.position.X + (double)projectile.velocity.X * 0.5 - 4.0), (int)((double)projectile.position.Y + (double)projectile.velocity.Y * 0.5 - 4.0), projectile.width + 8, projectile.height + 8); for (int i = 0; i < Main.maxProjectiles; i++) { Projectile proj = Main.projectile[i]; if (proj.active && proj.type == ModContent.ProjectileType() && proj.ai[0] >= 40f && proj.owner == projectile.owner) { - Rectangle rect = proj.getRect(); - if (rectangle.Intersects(rect)) + if (projectile.Hitbox.Intersects(proj.Hitbox)) { proj.Kill(); bubbleStronk = true; @@ -89,7 +87,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos if (Main.rand.NextBool(10)) projType = ModContent.ProjectileType(); float angle = MathHelper.TwoPi / bubbleAmt * i + (float)Math.Sin(arbitraryTimer / 20f) * MathHelper.PiOver2; - Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 8f, projType, projectile.damage / 4, projectile.knockBack / 4, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 8f, projType, projectile.damage / 4, projectile.knockBack / 4, projectile.owner); } bubbleCounter = 0; }