diff --git a/Content/Items/Geltana.cs b/Content/Items/Geltana.cs new file mode 100644 index 0000000..b5800cb --- /dev/null +++ b/Content/Items/Geltana.cs @@ -0,0 +1,43 @@ +using Continuity.Content.Items; +using Microsoft.Xna.Framework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace continuity.Content.Items +{ + public class Geltana : ModItem + { + public override void SetDefaults() + { + Item.useStyle = 1; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 15; + Item.damage = 25; + } + + public override void AddRecipes() + { + Recipe recipe = Recipe.Create(ModContent.ItemType()); + recipe.AddIngredient(ItemID.Katana, 1); + recipe.AddIngredient(ModContent.ItemType(), 8); + // TODO(midnadimple): Replace torch with coal when we implement that + recipe.AddIngredient(ItemID.Torch, 20); + recipe.AddTile(TileID.Solidifier); + recipe.AddTile(TileID.Anvils); + recipe.Register(); + } + + public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.OnFire, 180); + } + } +} diff --git a/Content/Items/Geltana.png b/Content/Items/Geltana.png new file mode 100644 index 0000000..9d7f1f7 Binary files /dev/null and b/Content/Items/Geltana.png differ diff --git a/Localization/en-US_Mods.continuity.hjson b/Localization/en-US_Mods.continuity.hjson index b1c73ce..6da8f03 100644 --- a/Localization/en-US_Mods.continuity.hjson +++ b/Localization/en-US_Mods.continuity.hjson @@ -12,4 +12,13 @@ Items: { Tooltip: "[c/4572e3:A refined type of gel featured within slime royalty.]" DisplayName: Exquisite Gel } + + Geltana: { + Tooltip: + ''' + Half the taste, twice the flame! + A [c/4572e3:gel-covered] katana that [c/B4202A:sets enemies on fire]. + ''' + DisplayName: Geltana + } }