Files
CalamityModPublic/Items/Weapons/Magic/GloriousEnd.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

36 lines
1.2 KiB
C#

using CalamityMod.Projectiles.Magic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class GloriousEnd : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public static int PlayerExplosionDmgMin = 50;
public static int PlayerExplosionDmgMax = 60;
public override void SetDefaults()
{
Item.width = 30;
Item.height = 58;
Item.damage = 120;
Item.knockBack = 10f;
Item.useTime = Item.useAnimation = 30;
Item.mana = 20;
Item.DamageType = DamageClass.Magic;
Item.channel = true;
Item.shootSpeed = 7f;
Item.shoot = ModContent.ProjectileType<MeteorStar>();
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.UseSound = SoundID.Item9;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.Calamity().donorItem = true;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
}
}