using System.Collections.Generic; using Decimation.Content.Items.Misc.Souls; using Decimation.Lib.Items; using Decimation.Lib.Util; using Decimation.Lib.Util.Builder; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Decimation.Content.Items.Weapons.DuneWyrm { public class Sundial : DecimationWeapon { protected override string ItemName => "Sundial"; protected override string ItemTooltip => "Fire bolts of pure time to eradicate your opposition"; protected override int Damages => 15; protected override DamageType DamagesType => DamageType.Magic; protected override int ProjectileId => ModContent.ProjectileType(); protected override void InitWeapon() { item.width = 36; item.height = 42; item.shootSpeed = 1f; item.mana = 10; item.autoReuse = true; item.useStyle = 5; item.useTime = 24; item.useAnimation = 24; item.crit = 15; item.rare = Rarity.LightRed.GetRarityValue(); item.value = Item.sellPrice(gold: 1, silver: 50); item.UseSound = SoundID.Item28; } protected override List GetRecipes() { return new List { new RecipeBuilder(this) .AnyIronBar(true) .WithIngredient(ItemID.GoldWatch) .WithIngredient(ItemID.AncientBattleArmorMaterial) .WithIngredient(ModContent.ItemType(), 10) .WithStation(TileID.MythrilAnvil) .Build(), new RecipeBuilder(this) .AnyIronBar(true) .WithIngredient(ItemID.PlatinumWatch) .WithIngredient(ItemID.AncientBattleArmorMaterial) .WithIngredient(ModContent.ItemType(), 10) .WithStation(TileID.MythrilAnvil) .Build() }; } } }