diff --git a/Projectiles/Melee/WindBladeHoldout.cs b/Projectiles/Melee/WindBladeHoldout.cs index 3b3127734f..03c8776d65 100644 --- a/Projectiles/Melee/WindBladeHoldout.cs +++ b/Projectiles/Melee/WindBladeHoldout.cs @@ -21,22 +21,9 @@ namespace CalamityMod.Projectiles.Melee public override float HitboxOutset => 60; public override Vector2 HitboxSize => new Vector2(70, 70); - -<<<<<<< Updated upstream - public override float HitboxRotationOffset() - { - return MathHelper.ToRadians(-45); - } - - public override Vector2 SpriteOrigin() - { - return new(0, 80); - } -======= public override float HitboxRotationOffset => MathHelper.ToRadians(-45); public override Vector2 SpriteOrigin => new(0, 80); ->>>>>>> Stashed changes public override void OnSpawn(IEntitySource source) { @@ -47,13 +34,7 @@ namespace CalamityMod.Projectiles.Melee public override void UseStyle() { -<<<<<<< Updated upstream - Vector2 mousePos = Main.MouseWorld; - // i don't know how cal handles Main.MouseWorld in netcode. todo: someone fix this up in multiplayer pls - // - ennway -======= Vector2 mousePos = Owner.Calamity().mouseWorld; ->>>>>>> Stashed changes if (mousePos.X < Owner.Center.X) Owner.direction = -1; else Owner.direction = 1; @@ -85,11 +66,7 @@ namespace CalamityMod.Projectiles.Melee } if ((int)AnimationProgress > (int)(Owner.itemAnimationMax / 1.5f)) { -<<<<<<< Updated upstream - GeneralParticleHandler.SpawnParticle(new HeavySmokeParticle(Owner.Center + (new Vector2(Main.rand.Next(30, 100), 0).RotatedBy(FinalRotation() + MathHelper.ToRadians(-45))), new Vector2(0, 10 * -Projectile.ai[1] * Owner.direction).RotatedBy(FinalRotation() + MathHelper.ToRadians(-45)), Color.LightSkyBlue, 40, 1f, 0.4f, MathHelper.ToRadians(Main.rand.NextFloat(-10f, 10f)), true)); -======= GeneralParticleHandler.SpawnParticle(new HeavySmokeParticle(Owner.Center + (new Vector2(Main.rand.Next(30, 100), 0).RotatedBy(FinalRotation + MathHelper.ToRadians(-45))), new Vector2(0, 10 * -Projectile.ai[1] * Owner.direction).RotatedBy(FinalRotation + MathHelper.ToRadians(-45)), Color.LightSkyBlue, 40, 1f, 0.4f, MathHelper.ToRadians(Main.rand.NextFloat(-10f, 10f)), true)); ->>>>>>> Stashed changes } float time = (AnimationProgress) - (Owner.itemAnimationMax / 3); @@ -103,34 +80,23 @@ namespace CalamityMod.Projectiles.Melee } else if (NumberOfAnimations % 4 == 3) { -<<<<<<< Updated upstream -======= float ProjectileSpeed = 10; int ProjectileDamage = 10; float ProjectileKnockback = Projectile.knockBack; - ->>>>>>> Stashed changes CanHit = true; if ((int)AnimationProgress == 1) { SoundEngine.PlaySound(SoundID.DD2_SkyDragonsFurySwing, Owner.Center); SoundEngine.PlaySound(SoundID.DD2_MonkStaffSwing.WithPitchOffset(-0.4f), Owner.Center); -<<<<<<< Updated upstream -======= Projectile.NewProjectile(new EntitySource_ItemUse(Owner, Owner.HeldItem), Projectile.Hitbox.Center.ToVector2(), new Vector2(ProjectileSpeed, 0).RotatedBy(FinalRotation + MathHelper.ToRadians(-45)), ModContent.ProjectileType(), ProjectileDamage, ProjectileKnockback, Owner.whoAmI); ->>>>>>> Stashed changes } RotationOffset = 0f; if (AnimationProgress < Owner.itemAnimationMax / 3) { Projectile.scale = MathHelper.Lerp(Projectile.scale, 1.5f, 0.4f); -<<<<<<< Updated upstream - float rot = FinalRotation() + MathHelper.ToRadians(-45); -======= float rot = FinalRotation + MathHelper.ToRadians(-45); ->>>>>>> Stashed changes GeneralParticleHandler.SpawnParticle(new HeavySmokeParticle(Owner.Center + new Vector2(105 * Projectile.scale, 0).RotatedBy(rot), new Vector2(5, 0).RotatedBy(rot + MathHelper.ToRadians(Main.rand.NextFloat(-20, 20))), Color.LightSkyBlue, 30, 2f, 0.3f, MathHelper.ToRadians(Main.rand.NextFloat(-10f, 10f)), true)); GeneralParticleHandler.SpawnParticle(new LineParticle(Owner.Center + new Vector2(0, 20).RotatedBy(rot) + new Vector2(45 * Projectile.scale, 0).RotatedBy(rot), new Vector2(5, 0).RotatedBy(rot), false, 30, 1f, Color.LightSkyBlue)); diff --git a/Projectiles/Melee/WindBolt.cs b/Projectiles/Melee/WindBolt.cs index e0b442246b..7c4eb7a110 100644 --- a/Projectiles/Melee/WindBolt.cs +++ b/Projectiles/Melee/WindBolt.cs @@ -1,12 +1,10 @@ using System; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; -<<<<<<< Updated upstream using Terraria; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -======= using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; using Terraria; @@ -16,7 +14,6 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Utilities.Terraria.Utilities; using XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIII; ->>>>>>> Stashed changes namespace CalamityMod.Projectiles.Melee { @@ -24,10 +21,7 @@ namespace CalamityMod.Projectiles.Melee { public new string LocalizationCategory => "Projectiles.Melee"; public int dustvortex = 0; -<<<<<<< Updated upstream -======= public float scFactor = 0f; ->>>>>>> Stashed changes public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6; @@ -43,27 +37,17 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.timeLeft = 300; Projectile.extraUpdates = 2; -<<<<<<< Updated upstream - Projectile.penetrate = 2; - Projectile.ignoreWater = true; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; -======= Projectile.penetrate = -1; Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 50; ->>>>>>> Stashed changes Projectile.tileCollide = false; } public override void AI() { -<<<<<<< Updated upstream -======= Projectile.velocity *= 0.95f; ->>>>>>> Stashed changes Projectile.ai[0]++; Projectile.ai[1]++; @@ -71,32 +55,19 @@ namespace CalamityMod.Projectiles.Melee if (Projectile.ai[0] >= 12) Projectile.tileCollide = true; -<<<<<<< Updated upstream - Projectile.rotation += MathHelper.ToRadians(15f); - Projectile.alpha -= 5; - if (Projectile.alpha < 50) -======= Projectile.rotation += MathHelper.ToRadians(1f); Projectile.alpha -= 5; ->>>>>>> Stashed changes { Projectile.alpha = 50; if (Projectile.ai[1] >= 15) { -<<<<<<< Updated upstream - - for (int i = 1; i <= 6; i++) - { - Vector2 dustspeed = new Vector2(3f, 3f).RotatedBy(MathHelper.ToRadians(dustvortex)); - int d = Dust.NewDust(Projectile.Center, Projectile.width / 2, Projectile.height / 2, DustID.Smoke, dustspeed.X, dustspeed.Y, 200, new Color(232, 251, 250, 200), 1.3f); -======= scFactor = MathHelper.Lerp(scFactor, 1f, 0.1f); for (int i = 1; i <= 6; i++) { Vector2 dustpos = new Vector2(48f, 48f).RotatedBy(MathHelper.ToRadians(dustvortex + Main.rand.Next(30))); Vector2 dustspeed = new Vector2(-5f, -5f).RotatedBy(MathHelper.ToRadians(dustvortex + Main.rand.Next(30))); int d = Dust.NewDust(Projectile.Center + dustpos, Projectile.width / 2, Projectile.height / 2, DustID.Smoke, dustspeed.X, dustspeed.Y, 200, new Color(232, 251, 250, 50), 1.3f); ->>>>>>> Stashed changes + Main.dust[d].noGravity = true; Main.dust[d].velocity = dustspeed; dustvortex += 60; @@ -114,27 +85,6 @@ namespace CalamityMod.Projectiles.Melee float npcCenterX = npc.position.X + (float)(npc.width / 2); float npcCenterY = npc.position.Y + (float)(npc.height / 2); float npcDistance = Math.Abs(Projectile.position.X + (float)(Projectile.width / 2) - npcCenterX) + Math.Abs(Projectile.position.Y + (float)(Projectile.height / 2) - npcCenterY); -<<<<<<< Updated upstream - if (npcDistance < 600f) - { - if (npc.position.X < projX) - { - npc.velocity.X += 0.05f; - } - else - { - npc.velocity.X -= 0.05f; - } - if (npc.position.Y < projY) - { - npc.velocity.Y += 0.05f; - } - else - { - npc.velocity.Y -= 0.05f; - } - } -======= if (npcDistance < 300f) { float factor = MathHelper.Lerp(1f,0f,CalamityUtils.SineBumpEasing(npcDistance / 300, 1)); @@ -142,16 +92,12 @@ namespace CalamityMod.Projectiles.Melee npc.velocity += npc.DirectionTo(Projectile.Center) * factor * 0.25f; } if (npcDistance < 40) npc.velocity *= 0.75f; ->>>>>>> Stashed changes } } } public override bool PreDraw(ref Color lightColor) { -<<<<<<< Updated upstream - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor); -======= Asset tex = ModContent.Request(Texture); for (int i = 5; i >= 0; i--) @@ -161,7 +107,6 @@ namespace CalamityMod.Projectiles.Melee Main.EntitySpriteDraw(tex.Value, Projectile.Center - Main.screenPosition, tex.Frame(), new Color(1f / c, 1f / c, 1f / c, 1f / c), -Projectile.rotation * c, tex.Size() / 2, (float)MathHelper.Lerp(1f, i, scFactor), SpriteEffects.None); } ->>>>>>> Stashed changes return false; } @@ -171,13 +116,8 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i <= 360; i += 3) { -<<<<<<< Updated upstream - Vector2 dustspeed = new Vector2(3f, 3f).RotatedBy(MathHelper.ToRadians(i)); - int d = Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, DustID.Smoke, dustspeed.X, dustspeed.Y, 200, new Color(232, 251, 250, 200), 1.4f); -======= Vector2 dustspeed = new Vector2(12f, 12f).RotatedBy(MathHelper.ToRadians(i)); int d = Dust.NewDust(Projectile.Center + (dustspeed * 2), Projectile.width, Projectile.height, DustID.Smoke, dustspeed.X, dustspeed.Y, 200, new Color(232, 251, 250, 200), 1.4f); ->>>>>>> Stashed changes Main.dust[d].noGravity = true; Main.dust[d].position = Projectile.Center; Main.dust[d].velocity = dustspeed;