feat: initial item PalishadeTissue
with a recipe
This commit is contained in:
parent
032825a9d9
commit
9c26c8eef7
6 changed files with 67 additions and 1 deletions
19
Content/BossOverrides.cs
Normal file
19
Content/BossOverrides.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
Content/Items/PalishadeTissue.aseprite
Normal file
BIN
Content/Items/PalishadeTissue.aseprite
Normal file
Binary file not shown.
19
Content/Items/PalishadeTissue.cs
Normal file
19
Content/Items/PalishadeTissue.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
BIN
Content/Items/PalishadeTissue.png
Normal file
BIN
Content/Items/PalishadeTissue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 390 B |
19
Content/Items/Recipes.cs
Normal file
19
Content/Items/Recipes.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +1,10 @@
|
|||
|
||||
Items: {
|
||||
PalishadeTissue: {
|
||||
Tooltip:
|
||||
'''
|
||||
A clump of dark red cells from Plantera.
|
||||
Hardens when exposed to bright light.
|
||||
'''
|
||||
DisplayName: Palishade Tissue
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue