This commit is contained in:
Altixal committed 2023-07-25 13:23:51 +07:00
1 parent ba908588c1
commit 5b4939d7f8
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.damage = 180;
Item.damage = 200;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.useAnimation = Item.useTime = 40; // This is only for the "Very slow" tooltip. The real use time should be faster
Item.shoot = ModContent.ProjectileType<StygianShieldAttack>();
+4 -2
View File
@@ -46,6 +46,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.width = Projectile.height = 2;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.DamageType = DamageClass.MeleeNoSpeed;
Projectile.penetrate = -1;
Projectile.usesLocalNPCImmunity = true;
@@ -147,6 +148,7 @@ namespace CalamityMod.Projectiles.Melee
DashDestination = intendedDestination;
Projectile.damage = (int)(Projectile.damage * MaxChargeDamageMult * Charge / MaxChargeTime);
Projectile.ExpandHitboxBy(100);
Projectile.tileCollide = true;
return;
}
}
@@ -293,10 +295,10 @@ namespace CalamityMod.Projectiles.Melee
Vector2 pointEnd = Projectile.Center + dashLength * 0.1f;
Vector2 lineStart = pointStart + dashLength * 0.1f;
Vector2 lineEnd = pointStart + dashLength;
Color lineColor = telegraphColor * 0.2f;
Color lineColor = telegraphColor * 0.3f;
float lineScale = 2f;
Main.spriteBatch.DrawLineBetter(lineStart, pointEnd, lineColor, lineScale);
Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale);
Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale * 2f);
Main.spriteBatch.DrawLineBetter(lineEnd, intendedDestination, lineColor, lineScale);
}
}