Files
CalamityModPublic/Items/Weapons/Melee/MawOfInfinity.cs
T

51 lines
1.9 KiB
C#

using System.Collections.Generic;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.Projectiles.BaseProjectiles;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Rarities;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
[LegacyName("Excelsus")]
public class MawOfInfinity: BaseSwordHoldoutItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override int ProjectileType => ModContent.ProjectileType<MawOfInfinityHoldout>();
public override void SetStaticDefaults()
{
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<GodSlayerInferno>()];
base.SetStaticDefaults();
}
public override void SetDefaults()
{
Item.width = 74;
Item.height = 84;
Item.damage = 2080;
Item.DamageType = DamageClass.Melee;
Item.useTime = Item.useAnimation = 33;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.knockBack = 8f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
Item.rare = ModContent.RarityType<CosmicPurple>();
Item.shoot = ModContent.ProjectileType<MawOfInfinityHoldout>();
Item.shootSpeed = 12f;
base.SetDefaults();
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/MawOfInfinityGlow").Value);
}
}
}