sounds :pog:

This commit is contained in:
Mishiro Usui committed 2023-08-13 23:31:06 +01:00
1 parent 2908c1af5b
commit f1d8c7e583
5 files changed
+8 -5

No files matched your search

+4 -4
View File
@@ -2892,11 +2892,11 @@ namespace CalamityMod.CalPlayer
//because of ordering, if they do not have the cooldown, it will not check the projectile array. Likewise if there are no bosses alive.
//Furthermore, Enumerable#Any is lightweight and returns immediately if a single object matches it's predicate
if (!Player.HasCooldown(Cooldowns.ElysianGuard.ID) ||
(!Main.projectile.Any(proj => proj.active && proj.owner == Main.myPlayer && proj.type == ModContent.ProjectileType<BlazingStarHeal>())))
Player.ownedProjectileCounts[ModContent.ProjectileType<BlazingStarHeal>()] == 0)
{
GeneralScreenShakePower = 3.5f;
blazingCoreParry = 30;
SoundEngine.PlaySound(SoundID.DD2_CrystalCartImpact);
SoundEngine.PlaySound(BlazingCore.ParryActivateSound, Player.Center);
var mySourceIsIMadeItUp = Player.GetSource_FromThis();
int blazingSun = Projectile.NewProjectile(mySourceIsIMadeItUp, Player.Center, Vector2.Zero, ModContent.ProjectileType<BlazingSun>(), 0, 0f, Player.whoAmI, 0f, 0f);
Main.projectile[blazingSun].Center = Player.Center;
@@ -5881,13 +5881,13 @@ namespace CalamityMod.CalPlayer
{
if (!Player.HasCooldown(ElysianGuard.ID))
{
Player.GiveIFrames(45);
Player.GiveIFrames(60, true);
blazingCoreEmpoweredParry = true;
modifiers.SetMaxDamage(1); //ONLY REDUCE DAMAGE IF NOT ON COOLDOWN
modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing
}
SoundEngine.PlaySound(SoundID.Shatter);
SoundEngine.PlaySound(BlazingCore.ParrySuccessSound, Player.Center);
blazingCoreSuccessfulParry = 60;
Player.AddCooldown(ElysianGuard.ID, 60 * 30, false); //cooldown is frames in seconds multiplied by the desired amount of seconds
}
+3
View File
@@ -17,6 +17,9 @@ namespace CalamityMod.Items.Accessories
private static float offset = 0f;
public static readonly SoundStyle ParryActivateSound = new("CalamityMod/Sounds/Item/BlazingCoreParryActivate") { Volume = 0.7f};
public static readonly SoundStyle ParrySuccessSound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.6f};
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 6));
@@ -12,4 +12,4 @@ AdrenalineMode.DisplayName: Adrenaline Mode
RageMode.DisplayName: Rage Mode
NormalityRelocator.DisplayName: Normality Relocator
BlazingCoreParry.DisplayName: Blazing Core Parry
GravistarSabatonHotkey.DisplayName: Gravistar Sabaton Hotkey
GravistarSabatonHotkey.DisplayName: Gravistar Sabaton Hotkey
Binary file not shown.
Binary file not shown.