feat: initial item PalishadeTissue with a recipe

This commit is contained in:
Muhammad Nauman Raza 2024-11-07 14:45:05 +00:00
parent 032825a9d9
commit 9c26c8eef7
Signed by: devraza
GPG key ID: 91EAD6081011574B
6 changed files with 67 additions and 1 deletions

19
Content/BossOverrides.cs Normal file
View file

@ -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<PalishadeTissue>(), 1, 15, 25));
}
}
}
}

Binary file not shown.

View file

@ -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;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

19
Content/Items/Recipes.cs Normal file
View file

@ -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<PalishadeTissue>(), 9);
recipe.AddIngredient(331, 6);
recipe.Register();
}
}
}

View file

@ -1 +1,10 @@
Items: {
PalishadeTissue: {
Tooltip:
'''
A clump of dark red cells from Plantera.
Hardens when exposed to bright light.
'''
DisplayName: Palishade Tissue
}
}