36 lines
937 B
C#
36 lines
937 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.LoreItems
|
|
{
|
|
public class KnowledgeEyeofCthulhu : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("The Eye of Cthulhu");
|
|
Tooltip.SetDefault("That eye...how peculiar.\n" +
|
|
"I sensed it watching you more intensely as you grew stronger.\n" +
|
|
"Place in your inventory for night vision at night.");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 20;
|
|
item.height = 20;
|
|
item.rare = 1;
|
|
item.consumable = false;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override void UpdateInventory(Player player)
|
|
{
|
|
if (!Main.dayTime)
|
|
player.nightVision = true;
|
|
}
|
|
}
|
|
}
|