Highest reforge tool now includes Light for tools
also exec blade tweak
This commit is contained in:
1 parent
727f67d391
commit
c3ea22f923
3 files changed
+9
-9
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<SulphurousGrabberBubble2>() && 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<SulphurousGrabberBubble2>();
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user