using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { public class Oracle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; public const int YoyoBaseDamage = 170; public const int AuraBaseDamage = 100; public const int AuraMaxDamage = 220; public override void SetStaticDefaults() { ItemID.Sets.Yoyo[Item.type] = true; ItemID.Sets.GamepadExtraRange[Item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[Item.type] = true; } public override void SetDefaults() { Item.width = 58; Item.height = 50; Item.DamageType = DamageClass.MeleeNoSpeed; Item.damage = YoyoBaseDamage; Item.knockBack = 4f; Item.useTime = 20; Item.useAnimation = 20; Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item1; Item.channel = true; Item.noUseGraphic = true; Item.noMelee = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; Item.value = CalamityGlobalItem.Rarity15BuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } public override void AddRecipes() { CreateRecipe(). AddIngredient(). AddIngredient(). AddIngredient(5). AddTile(). Register(); } } }