Needs another review. Double checked everything but errors are not out of the question. Exos not being included in this is intentional since the player can effectively "choose" what drops they want.
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using CalamityMod.Items.Weapons.Summon;
|
|
using CalamityMod.Projectiles.Magic;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
[LegacyName("StormSpray")]
|
|
public class SandstreamScepter : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Magic";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.staff[Type] = true;
|
|
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<BrittleStarStaff>();
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 50;
|
|
Item.height = 56;
|
|
Item.damage = 16;
|
|
Item.DamageType = DamageClass.Magic;
|
|
Item.mana = 4;
|
|
Item.useTime = 20;
|
|
Item.useAnimation = 20;
|
|
Item.useStyle = ItemUseStyleID.Shoot;
|
|
Item.noMelee = true;
|
|
Item.knockBack = 1f;
|
|
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
|
|
Item.rare = ItemRarityID.Green;
|
|
Item.UseSound = SoundID.Item72;
|
|
Item.autoReuse = true;
|
|
Item.shoot = ModContent.ProjectileType<Sandstream>();
|
|
Item.shootSpeed = 11f;
|
|
}
|
|
|
|
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) => position += velocity.SafeNormalize(Vector2.UnitX) * 55f;
|
|
}
|
|
}
|