This commit is contained in:
Xyk committed 2025-03-17 15:42:13 -07:00
1 parent c064588c24
commit 114bf3ece7
4 files changed
+12 -11

No files matched your search

@@ -6,6 +6,7 @@ using CalamityMod.Projectiles.DraedonsArsenal;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -16,6 +17,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public class HolofiberImmolator : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle PlasmaSound = new("CalamityMod/Sounds/Item/PlasmaSmall");
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
@@ -14,6 +14,9 @@ GaussFlux.DisplayName: Gauss Flux
GaussPistolShot.DisplayName: Gauss Shot
GaussRifleBlast.DisplayName: Gauss Blast
GaussRifleExplosion.DisplayName: Gauss Explosion
ImmolationArrow.DisplayName: Immolation Arrow
ImmolationBurst.DisplayName: Immolation Burst
ImmolationSpray.DisplayName: Immolation Spray
LaserRifleShot.DisplayName: Laser Rifle
MassivePlasmaExplosion.DisplayName: Plasma Explosion
MountedScannerLaser.DisplayName: Deathray
@@ -70,6 +73,3 @@ PlagueShot.DisplayName: Plague Shot
PlagueShotBuffer.DisplayName: Plague Shot
WaterShot.DisplayName: Water Shot
WaterShotBuffer.DisplayName: Water Shot
ImmolationArrow.DisplayName: Immolation Arrow
ImmolationBurst.DisplayName: Immolation Burst
ImmolationSpray.DisplayName: Immolation Spray
@@ -1,4 +1,5 @@
using CalamityMod.Particles;
using CalamityMod.Items.Weapons.DraedonsArsenal;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
@@ -165,8 +166,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
collideWithTiles = false;
SoundStyle sound2 = new("CalamityMod/Sounds/Item/ImmolatorPreExplode");
SoundEngine.PlaySound(sound2 with { Volume = 0.3f, Pitch = 0.5f }, Projectile.Center);
SoundStyle sound3 = new("CalamityMod/Sounds/Item/PlasmaSmall");
SoundEngine.PlaySound(sound3 with { Volume = 0.8f, Pitch = Main.rand.NextFloat(-0.3f, -0.4f) }, Projectile.Center);
SoundEngine.PlaySound(HolofiberImmolator.PlasmaSound with { Volume = 0.8f, Pitch = Main.rand.NextFloat(-0.3f, -0.4f) }, Projectile.Center);
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
@@ -200,8 +200,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
}
SoundStyle sound = new("CalamityMod/Sounds/Item/ImmolatorPreExplode");
SoundEngine.PlaySound(sound with { Volume = 0.3f, Pitch = 0.5f }, Projectile.Center);
SoundStyle sound2 = new("CalamityMod/Sounds/Item/PlasmaSmall");
SoundEngine.PlaySound(sound2 with { Volume = 0.8f, Pitch = Main.rand.NextFloat(-0.3f, -0.4f) }, Projectile.Center);
SoundEngine.PlaySound(HolofiberImmolator.PlasmaSound with { Volume = 0.8f, Pitch = Main.rand.NextFloat(-0.3f, -0.4f) }, Projectile.Center);
}
}
public override void OnKill(int timeLeft)
@@ -1,4 +1,5 @@
using CalamityMod.Particles;
using CalamityMod.Items.Weapons.DraedonsArsenal;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
@@ -60,8 +61,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
SoundStyle sound = new("CalamityMod/Sounds/Item/PlasmaSmall");
SoundEngine.PlaySound(sound with { Volume = 0.5f, Pitch = Main.rand.NextFloat(-0.1f, 0.1f) }, Projectile.Center);
SoundEngine.PlaySound(HolofiberImmolator.PlasmaSound with { Volume = 0.5f, Pitch = Main.rand.NextFloat(-0.1f, 0.1f) }, Projectile.Center);
if (Projectile.numHits > 0)
Projectile.damage = (int)(Projectile.damage * 0.8f);