From 9c26c8eef7ba200948c4d94a04c51f49bf7fdabf Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Thu, 7 Nov 2024 14:45:05 +0000 Subject: [PATCH] feat: initial item `PalishadeTissue` with a recipe --- Content/BossOverrides.cs | 19 +++++++++++++++++++ Content/Items/PalishadeTissue.aseprite | Bin 0 -> 458 bytes Content/Items/PalishadeTissue.cs | 19 +++++++++++++++++++ Content/Items/PalishadeTissue.png | Bin 0 -> 390 bytes Content/Items/Recipes.cs | 19 +++++++++++++++++++ Localization/en-US_Mods.continuity.hjson | 11 ++++++++++- 6 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 Content/BossOverrides.cs create mode 100644 Content/Items/PalishadeTissue.aseprite create mode 100644 Content/Items/PalishadeTissue.cs create mode 100644 Content/Items/PalishadeTissue.png create mode 100644 Content/Items/Recipes.cs diff --git a/Content/BossOverrides.cs b/Content/BossOverrides.cs new file mode 100644 index 0000000..11e07a1 --- /dev/null +++ b/Content/BossOverrides.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.GameContent.ItemDropRules; +using Continuity.Content.Items; + +namespace Continuity.Content.NPCs +{ + public class PlanteraDrops : GlobalNPC + { + public override void ModifyNPCLoot(NPC npc, NPCLoot npcLoot) + { + if (npc.type == NPCID.Plantera) + { + npcLoot.Add(ItemDropRule.Common(ModContent.ItemType(), 1, 15, 25)); + } + } + } +} diff --git a/Content/Items/PalishadeTissue.aseprite b/Content/Items/PalishadeTissue.aseprite new file mode 100644 index 0000000000000000000000000000000000000000..695db8c4bd2a07907897ccc6fb0918ce4434780c GIT binary patch literal 458 zcmX@b$iVPmDI)_95GpVLISeU4i~v9}kRXEq5Yhs80Zsq)kp*lk3(x{FAZAwpTZv>{ z7Ld&Xa-9N@p`>8qs$r96Y1kiTeZNrc=7O|$hiCo%WH$3@K-NA3^C@}WnfgKADn>Sz z_Vy(P2~E*?50hvAk3ak5^zA?Y|No!8c6&=*duCQvWLQv{Q`Z_JqnqK$*Q&zH=Yvp&M~dt?8xz17u+!q4nGmo6Ld{NKFG;`Yo|Pwy#zU$Jv- U`HJ7hkNW;Oc7JDHcxZPC0LH$2G5`Po literal 0 HcmV?d00001 diff --git a/Content/Items/PalishadeTissue.cs b/Content/Items/PalishadeTissue.cs new file mode 100644 index 0000000..073f9b6 --- /dev/null +++ b/Content/Items/PalishadeTissue.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace Continuity.Content.Items +{ + public class PalishadeTissue : ModItem + { + public override void SetDefaults() + { + Item.width = 24; + Item.height = 24; + Item.maxStack = 999; + Item.value = Item.buyPrice(silver: 14); + Item.rare = ItemRarityID.Lime; + } + + } +} diff --git a/Content/Items/PalishadeTissue.png b/Content/Items/PalishadeTissue.png new file mode 100644 index 0000000000000000000000000000000000000000..23183fdb29b3c31cdd8d8abbde2fa81518b101cc GIT binary patch literal 390 zcmV;10eSw3P)Px$KuJVFR7i=%mOW0xKoEt$@FNo{3y_c~Xk8%DMWW3;kjMeJ0QblNh?INKMxu*E z;g%v25+GL?7Z8f|%W5YMj)c6tZr3yRdoypm+oJ_1>G85H2H>@L>ox7~Y?J&KG=3F4 z^DH^~^#ytL9;~gB&K2z0jZHPb;sAhQ{|kVJa@XxAX8_Fjbb%>L@Jiw-urh($07*qoM6N<$f@7bnP5=M^ literal 0 HcmV?d00001 diff --git a/Content/Items/Recipes.cs b/Content/Items/Recipes.cs new file mode 100644 index 0000000..857d20a --- /dev/null +++ b/Content/Items/Recipes.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Continuity.Content.Items; + +namespace Continuity.Content.Palishade +{ + public class PlanteraRecipes : ModSystem + { + public override void AddRecipes() { + // Seedler + Recipe recipe = Recipe.Create(ItemID.Seedler); + recipe.AddIngredient(ItemID.ChlorophyteBar, 12); + recipe.AddIngredient(ModContent.ItemType(), 9); + recipe.AddIngredient(331, 6); + recipe.Register(); + } + } +} diff --git a/Localization/en-US_Mods.continuity.hjson b/Localization/en-US_Mods.continuity.hjson index 8b13789..b0992d0 100644 --- a/Localization/en-US_Mods.continuity.hjson +++ b/Localization/en-US_Mods.continuity.hjson @@ -1 +1,10 @@ - +Items: { + PalishadeTissue: { + Tooltip: + ''' + A clump of dark red cells from Plantera. + Hardens when exposed to bright light. + ''' + DisplayName: Palishade Tissue + } +}