FPH Changes
Brought some changes from Stellar Contempt back over to FPH to make it a bit better including the Echo hammer color, GFB joke sound, and screenshake. Added Heart/Audrey's hammer blast instead of the dust explosion for the echo hammer.
This commit is contained in:
1 parent
0bb775f6bb
commit
6c8fa6f758
6 files changed
+59
-20
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
FallenPaladinsHammerEcho.DisplayName: Fallen Paladins Hammer Echo
|
||||
FallenBlast.DisplayName: Fallen Blast
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
@@ -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<FallenBlast>(), 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++)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user