Normality Relocator teleport sounds
This commit is contained in:
1 parent
0fd84a34a4
commit
bb7ff44799
5 files changed
+3
No files matched your search
@@ -2761,6 +2761,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.Teleport(teleportLocation, 4, 0);
|
||||
NetMessage.SendData(MessageID.TeleportEntity, -1, -1, null, 0, (float)Player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0);
|
||||
SoundEngine.PlaySound(NormalityRelocator.TeleportSound, Player.Center);
|
||||
|
||||
int duration = areThereAnyDamnBosses ? chaosStateDuration_NR : 360;
|
||||
Player.AddBuff(BuffID.ChaosState, duration, true);
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -12,6 +13,7 @@ namespace CalamityMod.Items
|
||||
public class NormalityRelocator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Misc";
|
||||
public static readonly SoundStyle TeleportSound = new("CalamityMod/Sounds/Item/NormalityRelocator", 3);
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 7));
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user