Files
CalamityModPublic/Items/Weapons/Magic/ShiftingSands.cs
T
Ozzatron 22afdd3933 1 - Calamity sell prices increase much more sharply with rarity.
2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold.
3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum.
4 - Privated numeric rarity item values.
5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice.
2024-04-17 21:20:17 -04:00

46 lines
1.5 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class ShiftingSands : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
Item.width = Item.height = 58;
Item.damage = 76;
Item.knockBack = 5f;
Item.useTime = Item.useAnimation = 30;
Item.mana = 20;
Item.DamageType = DamageClass.Magic;
Item.channel = true;
Item.autoReuse = true;
Item.shootSpeed = 7f;
Item.shoot = ModContent.ProjectileType<ShiftingSandsProj>();
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.UseSound = SoundID.Item20;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.MagicMissile).
AddIngredient<GrandScale>().
AddIngredient(ItemID.AncientBattleArmorMaterial, 2).
AddIngredient(ItemID.SpectreBar, 5).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}