40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class AlluringBait : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Alluring Bait");
|
|
Tooltip.SetDefault("30 increased fishing power during the day\n" +
|
|
"45 increased fishing power during the night\n" +
|
|
"60 increased fishing power during a solar eclipse\n" +
|
|
"Greatly increases chance of catching potion ingredient fish");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
|
item.rare = ItemRarityID.Orange;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.Calamity().alluringBait = true;
|
|
|
|
if (Main.eclipse)
|
|
player.fishingSkill += 60;
|
|
else if (!Main.dayTime)
|
|
player.fishingSkill += 45;
|
|
else
|
|
player.fishingSkill += 30;
|
|
}
|
|
}
|
|
}
|