New Frigidflash and Tears of Heaven sounds

This commit is contained in:
CongratsIsTrash committed 2024-01-02 13:21:08 -05:00
1 parent 603109ce00
commit 72aeb65560
6 files changed
+12 -4

No files matched your search

+5 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
@@ -7,6 +8,9 @@ namespace CalamityMod.Items.Weapons.Magic
{
public class FrigidflashBolt : ModItem, ILocalizedModType
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FrigidflashUse");
public static readonly SoundStyle ProjDeathSound = new("CalamityMod/Sounds/Item/FrigidflashDeath");
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
@@ -22,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.knockBack = 5.5f;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item21;
Item.UseSound = UseSound;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<FrigidflashBoltProjectile>();
Item.shootSpeed = 9f;
+4 -1
View File
@@ -3,6 +3,7 @@ using CalamityMod.Items.Placeables;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -11,6 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic
{
public class TearsofHeaven : ModItem, ILocalizedModType
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/TearsOfHeavenUse");
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
@@ -26,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.knockBack = 5.5f;
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.UseSound = SoundID.Item8;
Item.UseSound = UseSound;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<TearsofHeavenProjectile>();
Item.shootSpeed = 5.5f;
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
using CalamityMod.Items.Weapons.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -110,7 +111,7 @@ namespace CalamityMod.Projectiles.Magic
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item27, Projectile.position);
SoundEngine.PlaySound(FrigidflashBolt.ProjDeathSound, Projectile.position);
for (int k = 0; k < 3; k++)
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 174, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
Binary file not shown.
Binary file not shown.
Binary file not shown.