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

59 lines
1.9 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class NightsRay : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetStaticDefaults()
{
Item.staff[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 58;
Item.height = 54;
Item.damage = 20;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3.25f;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item72;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<NightsRayBeam>();
Item.shootSpeed = 6f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Vilethorn).
AddIngredient(ItemID.MagicMissile).
AddIngredient(ItemID.WandofFrosting).
AddIngredient(ItemID.AmberStaff).
AddIngredient<PurifiedGel>(10).
AddTile(TileID.DemonAltar).
Register();
CreateRecipe().
AddIngredient(ItemID.CrimsonRod).
AddIngredient(ItemID.MagicMissile).
AddIngredient(ItemID.WandofFrosting).
AddIngredient(ItemID.AmberStaff).
AddIngredient<PurifiedGel>(10).
AddTile(TileID.DemonAltar).
Register();
}
}
}