Make it actually compile

This commit is contained in:
2025-11-15 20:31:06 +00:00
parent 6e38f720fe
commit d1a1599fbe
2 changed files with 1 additions and 13 deletions
+1 -10
View File
@@ -8,17 +8,8 @@ using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.Weapons.Magic
{
// A post-Eye of Cthulhu melee/magic hybrid style weapon that swings like a sword and
// emits a flurry of short-lived beam projectiles toward the cursor during the swing.
// Beams have reduced damage (50% of item base) and very short lifetime.
public class BeamAttackWand : ModItem
{
public override void SetStaticDefaults()
{
// DisplayName.SetDefault("Beam Attack Wand"); // tML auto localizes; optional if using hjson.
// Tooltip.SetDefault("Swings and releases a flurry of brief energy beams");
}
public override void SetDefaults()
{
Item.width = 32;
@@ -31,7 +22,7 @@ namespace ForgottenWawiTech.Content.Items.Weapons.Magic
Item.damage = 25;
Item.knockBack = 4.5f;
Item.DamageType = DamageClass.Magic; // treat beams as melee for synergy
Item.rare = ModContent.RarityType<DeveloperItem>();
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
Item.value = Item.buyPrice(silver: 50);
Item.shoot = ModContent.ProjectileType<BeamAttackWandBeam>();
Item.shootSpeed = 12f; // base speed of beams
@@ -17,12 +17,9 @@ namespace ForgottenWawiTech.Content.Items.Weapons.Magic
Item.damage = 500;
Item.shoot = ModContent.ProjectileType<ShatteredPrismHoldout>();
Item.shootSpeed = 30f;
// Change the item's draw color so that it is visually distinct from the vanilla Last Prism.
Item.color = OverrideColor;
}
// Because this weapon fires a holdout projectile, it needs to block usage if its projectile already exists.
public override bool CanUseItem(Player player)
{
return player.ownedProjectileCounts[ModContent.ProjectileType<ShatteredPrismHoldout>()] <= 0;