33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria;
|
|
using CalamityMod.UI.DialogueDisplay.DisplayEffects;
|
|
|
|
namespace CalamityMod.UI.DialogueDisplay
|
|
{
|
|
public class DialogueDisplayDebugItem : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Debug";
|
|
public override string Texture => "CalamityMod/Items/Weapons/Summon/StaffOfNecrosteocytes";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 25;
|
|
Item.height = 29;
|
|
Item.rare = ItemRarityID.Red;
|
|
Item.useAnimation = Item.useTime = 20;
|
|
Item.useStyle = ItemUseStyleID.HoldUp;
|
|
}
|
|
public override bool? UseItem(Player player)
|
|
{
|
|
int slot = DialogueDisplaySystem.GetSlot("OceanBlue");
|
|
|
|
if (slot != -1)
|
|
DialogueDisplaySystem.ProgressDialogue(slot);
|
|
else
|
|
DialogueDisplaySystem.StartDialogue("OceanBlue", player.Center, 0, -1, effects: new WhisperingPearlEffects());
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|