Some miscellaneous yoyo balancing, mainly to make yoyo iframes through progression make more sense
63 lines
1.9 KiB
C#
63 lines
1.9 KiB
C#
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
|
|
{
|
|
[LegacyName("Oracle")]
|
|
public class TheOracle : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Melee";
|
|
public const int AuraBaseDamage = 68;
|
|
public const int AuraMaxDamage = 150;
|
|
|
|
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 = 192;
|
|
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<OracleYoyo>();
|
|
Item.shootSpeed = 16f;
|
|
|
|
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
|
Item.rare = ModContent.RarityType<Violet>();
|
|
Item.Calamity().donorItem = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<BurningRevelation>().
|
|
AddIngredient<TheObliterator>().
|
|
AddIngredient<AuricBar>(5).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|