Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using CalamityMod.Projectiles.Magic;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class Thunderstorm : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Thunderstorm");
|
|
Tooltip.SetDefault("Make it rain");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 360;
|
|
item.mana = 50;
|
|
item.magic = true;
|
|
item.width = 48;
|
|
item.height = 22;
|
|
item.useTime = 24;
|
|
item.useAnimation = 24;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.noMelee = true;
|
|
item.knockBack = 2f;
|
|
item.value = Item.buyPrice(1, 20, 0, 0);
|
|
item.rare = 10;
|
|
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast");
|
|
item.autoReuse = true;
|
|
item.shootSpeed = 6f;
|
|
item.shoot = ModContent.ProjectileType<ThunderstormShot>();
|
|
item.Calamity().customRarity = CalamityRarity.RareVariant;
|
|
}
|
|
|
|
public override Vector2? HoldoutOffset()
|
|
{
|
|
return new Vector2(-10, 0);
|
|
}
|
|
}
|
|
}
|