astral, exo select, and rune of kos sounds
This commit is contained in:
1 parent
2314bf7035
commit
dbaeeb0ea8
6 files changed
+14
-2
No files matched your search
@@ -16,6 +16,9 @@ namespace CalamityMod.Items.SummonItems
|
||||
[LegacyName("RuneofCos")]
|
||||
public class RuneofKos : ModItem
|
||||
{
|
||||
public static readonly SoundStyle CVSound = new("CalamityMod/Sounds/Item/CeaselessVoidSpawn");
|
||||
public static readonly SoundStyle SignutSound = new("CalamityMod/Sounds/Item/SignusSpawn");
|
||||
public static readonly SoundStyle StormSound = new("CalamityMod/Sounds/Item/StormWeaverSpawn");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
@@ -34,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
Item.useAnimation = 10;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||
Item.UseSound = SoundID.Item44;
|
||||
Item.UseSound = null;
|
||||
Item.consumable = false;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
@@ -52,9 +55,9 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Roar, player.position);
|
||||
if (player.ZoneDungeon)
|
||||
{
|
||||
SoundEngine.PlaySound(CVSound, player.position);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CeaselessVoid>());
|
||||
else
|
||||
@@ -62,6 +65,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
}
|
||||
else if (player.ZoneUnderworldHeight)
|
||||
{
|
||||
SoundEngine.PlaySound(SignutSound, player.position);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Signus>());
|
||||
else
|
||||
@@ -69,6 +73,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
}
|
||||
else if (player.ZoneSkyHeight)
|
||||
{
|
||||
SoundEngine.PlaySound(StormSound, player.position);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<StormWeaverHead>());
|
||||
else
|
||||
|
||||
@@ -71,6 +71,7 @@ namespace CalamityMod.NPCs.ExoMechs
|
||||
|
||||
public static readonly SoundStyle LaughSound = new("CalamityMod/Sounds/Custom/DraedonLaugh");
|
||||
public static readonly SoundStyle TeleportSound = new("CalamityMod/Sounds/Custom/DraedonTeleport");
|
||||
public static readonly SoundStyle SelectionSound = new("CalamityMod/Sounds/Custom/Codebreaker/ExoMechsIconSelect");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -276,6 +277,7 @@ namespace CalamityMod.NPCs.ExoMechs
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.FlareSound with { Volume = CommonCalamitySounds.FlareSound.Volume * 1.55f}, PlayerToFollow.Center);
|
||||
SoundEngine.PlaySound(SelectionSound, PlayerToFollow.Center);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,6 +10,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Utilities;
|
||||
@@ -19,6 +20,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
public class AstralBiome
|
||||
{
|
||||
public static readonly SoundStyle MeteorSound = new("CalamityMod/Sounds/Custom/AstralStarFall");
|
||||
public static bool CanAstralMeteorSpawn()
|
||||
{
|
||||
int astralOreCount = 0;
|
||||
@@ -382,6 +384,9 @@ namespace CalamityMod.World
|
||||
NetMessage.SendTileSquare(-1, i, j, 40, TileChangeType.None);
|
||||
if (CanAstralBiomeSpawn())
|
||||
{
|
||||
if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active)
|
||||
SoundEngine.PlaySound(MeteorSound, Main.player[Main.myPlayer].position);
|
||||
|
||||
DoAstralConversion(new Point(i, j));
|
||||
|
||||
// Upward checks go up 180 tiles. If for whatever reason the placement Y position
|
||||
|
||||
Reference in new issue
Block a user