diff --git a/Items/Weapons/Melee/FallenPaladinsHammer.cs b/Items/Weapons/Melee/FallenPaladinsHammer.cs index 4d091ad6b9..83482adefc 100644 --- a/Items/Weapons/Melee/FallenPaladinsHammer.cs +++ b/Items/Weapons/Melee/FallenPaladinsHammer.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 14; - Item.damage = 444; + Item.damage = 368; Item.noMelee = true; Item.noUseGraphic = true; Item.autoReuse = true; diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index e4522e87e7..c394ac5971 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -350,4 +350,5 @@ SolarFlareYoyo.DisplayName: Solar Flare SulphurousGrabberYoyo.DisplayName: Sulphurous Grabber Yoyo VerdantYoyo.DisplayName: Verdant YinYoyo.DisplayName: Yin-Yo -FallenPaladinsHammerEcho.DisplayName: Fallen Paladins Hammer Echo \ No newline at end of file +FallenPaladinsHammerEcho.DisplayName: Fallen Paladins Hammer Echo +FallenBlast.DisplayName: Fallen Blast \ No newline at end of file diff --git a/Projectiles/Melee/FallenBlast.cs b/Projectiles/Melee/FallenBlast.cs new file mode 100644 index 0000000000..27e6972fec --- /dev/null +++ b/Projectiles/Melee/FallenBlast.cs @@ -0,0 +1,45 @@ +using System; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using Terraria.DataStructures; + +namespace CalamityMod.Projectiles.Melee +{ + public class FallenBlast : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Melee"; + public override void SetStaticDefaults() => Main.projFrames[Type] = 8; + + public override void SetDefaults() + { + Projectile.width = 472; + Projectile.height = 472; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.MeleeNoSpeed; + Projectile.penetrate = -1; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 600; + Projectile.timeLeft = 24; + } + + public override void AI() + { + Projectile.frameCounter++; + if (Projectile.frameCounter % 3 == 0) + Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Type]; + if (Projectile.frame >= 8) + Projectile.Kill(); + } + + public override bool? CanDamage() => false; + + } +} + diff --git a/Projectiles/Melee/FallenBlast.png b/Projectiles/Melee/FallenBlast.png new file mode 100644 index 0000000000..e0907f549e Binary files /dev/null and b/Projectiles/Melee/FallenBlast.png differ diff --git a/Projectiles/Melee/FallenPaladinsHammerEcho.cs b/Projectiles/Melee/FallenPaladinsHammerEcho.cs index daa413fe99..41c4e94a5c 100644 --- a/Projectiles/Melee/FallenPaladinsHammerEcho.cs +++ b/Projectiles/Melee/FallenPaladinsHammerEcho.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee public override Color? GetAlpha(Color lightColor) { - return new Color(255, 48, 48, 255); + return new Color(255, 48, 48, 56); } public override void AI() @@ -101,21 +101,10 @@ namespace CalamityMod.Projectiles.Melee Player player = Main.player[Projectile.owner]; //This is what we call fucking IMPACT. SoundEngine.PlaySound(SlamHamSound, Projectile.Center); + Main.player[Projectile.owner].Calamity().GeneralScreenShakePower = 5; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - float numberOfDusts = 65f; - float rotFactor = 360f / numberOfDusts; - for (int i = 0; i < numberOfDusts; i++) - { - float rot = MathHelper.ToRadians(i * rotFactor); - Vector2 offset = new Vector2(25f, 0).RotatedBy(rot); - Vector2 velOffset = new Vector2(18.5f, 0).RotatedBy(rot); - int dust = Dust.NewDust(Projectile.position + offset, Projectile.width, Projectile.height, 182, velOffset.X, velOffset.Y); - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity = velOffset; - Main.dust[dust].scale = 3.5f; - } - - float distance = 168f; + float distance = 248f; for (int k = 0; k < Main.maxNPCs; k++) { diff --git a/Projectiles/Melee/FallenPaladinsHammerProj.cs b/Projectiles/Melee/FallenPaladinsHammerProj.cs index a016445882..b68d49d55f 100644 --- a/Projectiles/Melee/FallenPaladinsHammerProj.cs +++ b/Projectiles/Melee/FallenPaladinsHammerProj.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Melee public new string LocalizationCategory => "Projectiles.Melee"; public override string Texture => "CalamityMod/Items/Weapons/Melee/FallenPaladinsHammer"; public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.35f, PitchVariance = 0.3f }; - public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming") { Volume = 0.3f, PitchVariance = 0.3f }; + public static readonly SoundStyle UseSoundFunny = new("CalamityMod/Sounds/Item/CalamityBell") { Volume = 1.5f}; public static readonly SoundStyle RedHamSound = new("CalamityMod/Sounds/Item/FallenPaladinsHammerClone") { Volume = 1f}; public ref int EmpoweredHammer => ref Main.player[Projectile.owner].Calamity().PHAThammer; public int returnhammer = 0; @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - //returnhammer determines if the hammer is slowing down after hitting an enemy, or homing in o0n the player. + //returnhammer determines if the hammer is slowing down after hitting an enemy, or homing in on the player. Player player = Main.player[Projectile.owner]; Projectile.direction = Projectile.spriteDirection = Projectile.velocity.X > 0f ? 1 : -1; Projectile.rotation += MathHelper.ToRadians(22.5f) * Projectile.direction; @@ -174,7 +174,11 @@ namespace CalamityMod.Projectiles.Melee Player player = Main.player[Projectile.owner]; if (returnhammer == 0) { - SoundEngine.PlaySound(UseSound, Projectile.Center); + if (Main.zenithWorld) + SoundEngine.PlaySound(UseSoundFunny, Projectile.Center); + else + SoundEngine.PlaySound(UseSound, Projectile.Center); + returnhammer = 1; } float numberOfDusts = 35f;