From b9785ce9c6b2f3055b2914951341cd0dc19d9939 Mon Sep 17 00:00:00 2001 From: Abdulmujeeb Raji Date: Mon, 11 Nov 2024 11:56:47 +0000 Subject: [PATCH] feat: Geltana --- Content/Items/Geltana.cs | 43 +++++++++++++++++++++++ Content/Items/Geltana.png | Bin 0 -> 704 bytes Localization/en-US_Mods.continuity.hjson | 9 +++++ 3 files changed, 52 insertions(+) create mode 100644 Content/Items/Geltana.cs create mode 100644 Content/Items/Geltana.png 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 0000000000000000000000000000000000000000..9d7f1f72bab537433f4774e98aad1388e92b25d2 GIT binary patch literal 704 zcmV;x0zdtUP)Px%U`a$lRA_mg2aL`2;QE<}9$)V8I#j#HI zuZZ|3q;yl9bg)B5=?_p!sV$LM4}*jj1N9uKPrc9d-urU!-uL@`p7$0Wd|VH?~Qazs^1&nfwF* zM^!Vg<^jBHyjwa&hDxq=^$sNZy@7VfiCgew zUy4^y??B{gK)OykX}jjV*%x95fCK<2H;)g=3nbIcA#5+W&Xk#;9q$m zcA!(*Wxlqt0>I9z`@YU7^$vu75_>a0SiA$k*MoJyzw&~52STd>Z{`P!=G(SYfH(27sNlr9fR* z??BgT5iOh^q2}dIu6x147gl_oCi`pVarbK)9B>9{>OV m4rN$LW=%~1DgXcg2mk;800000(o>TF0000