Added Trident of the Sunken

This commit is contained in:
2025-11-21 23:31:03 +00:00
parent 0829a64f01
commit f6d187274c
14 changed files with 408 additions and 0 deletions
@@ -0,0 +1,48 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.Projectiles.TridentOfTheSunken;
namespace ForgottenWawiTech.Content.Items.Weapons.Magic
{
public class TridentOfTheSunken : ModItem
{
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 1;
}
public override void SetDefaults()
{
Item.damage = 5000;
Item.DamageType = DamageClass.Magic;
Item.knockBack = 6f;
Item.width = 64;
Item.height = 64;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useAnimation = 30;
Item.useTime = 30;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.mana = 24;
Item.rare = ItemRarityID.Red;
Item.value = Item.buyPrice(platinum: 3);
Item.UseSound = SoundID.Item43;
Item.shoot = ModContent.ProjectileType<TridentOfTheSunkenHoldout>();
Item.shootSpeed = 0f;
}
public override bool CanUseItem(Player player)
{
return player.ownedProjectileCounts[Item.shoot] == 0;
}
public override void HoldItem(Player player)
{
Lighting.AddLight(player.Center, new Vector3(0.05f, 0.12f, 0.2f));
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB