46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Mounts
|
|
{
|
|
public class ExoThrone : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Exo Box");
|
|
Tooltip.SetDefault("Materializes a quite cozy and extremely nimble flying Exo throne\n" +
|
|
"Replaced\n" +
|
|
"Also replaced\n" +
|
|
"A comfortable gamer is a dangerous gamer");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 32;
|
|
item.height = 34;
|
|
item.useTime = item.useAnimation = 20;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.UseSound = SoundID.Item94;
|
|
item.noMelee = true;
|
|
item.mountType = ModContent.MountType<DraedonGamerChairMount>();
|
|
|
|
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
|
item.Calamity().customRarity = CalamityRarity.Violet;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
string hotkey = CalamityMod.ExoChairSpeedupHotkey.TooltipHotkeyString();
|
|
string hotkey2 = CalamityMod.ExoChairSlowdownHotkey.TooltipHotkeyString();
|
|
foreach (TooltipLine line2 in list)
|
|
{
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
|
line2.text = $"Hold {hotkey} while sitting in the throne to move much faster";
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
|
line2.text = $"And hold {hotkey2} to move much slower";
|
|
}
|
|
}
|
|
}
|
|
}
|