Add sprites & names to Lyyka, Niko and Lexy summons.

This commit is contained in:
2025-11-09 21:59:07 +00:00
parent b76ad713e5
commit cbd9d5e0b4
12 changed files with 66 additions and 32 deletions
+17 -1
View File
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
using Terraria.Chat;
using Terraria.Localization;
using ForgottenWawiTech.Content.NPCs.OriginalLexy;
using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.SummonItems
{
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.consumable = false;
Item.rare = ItemRarityID.Red;
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
}
public override bool CanUseItem(Player player)
@@ -39,5 +40,20 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
return true;
}
public override void AddRecipes()
{
// Only add the recipe if Calamity Mod is loaded
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod))
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ItemID.RainbowBrick, 100);
// Exo Prism
recipe.AddIngredient(calamityMod.Find<ModItem>("ExoPrism").Type, 5);
recipe.AddIngredient(calamityMod.Find<ModItem>("MysteriousCircuitry").Type, 10);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.Register();
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 8.7 KiB

+2 -1
View File
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
using Terraria.Chat;
using Terraria.Localization;
using ForgottenWawiTech.Content.NPCs.OriginalLyyka;
using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.SummonItems
{
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.consumable = false;
Item.rare = ItemRarityID.Red;
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
}
public override bool CanUseItem(Player player)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 12 KiB

+2 -1
View File
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
using Terraria.Chat;
using Terraria.Localization;
using ForgottenWawiTech.Content.NPCs.OriginalNeptune;
using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.SummonItems
{
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.consumable = false;
Item.rare = ItemRarityID.Red;
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
}
public override bool CanUseItem(Player player)
+11 -11
View File
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
using Terraria.Chat;
using Terraria.Localization;
using ForgottenWawiTech.Content.NPCs.OriginalNiko;
using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.SummonItems
{
@@ -20,7 +21,7 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.consumable = false;
Item.rare = ItemRarityID.Red;
Item.rare = ModContent.RarityType<FWTDeveloperItem>();
}
// Only allow the boss to be summoned if the Wall of Flesh is defeated (hardmode)
@@ -32,7 +33,6 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
public override bool? UseItem(Player player)
{
string summonText = "A familiar presence fills the air...";
if (Main.netMode != NetmodeID.MultiplayerClient)
{
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Niko>());
@@ -41,14 +41,14 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
return true;
}
/* public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient<Nyanageddon>(1);
recipe.AddIngredient(ItemID.LunarBar, 20);
recipe.AddIngredient(ItemID.Meowmere, 5);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.Register();
} */
public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ItemID.RatCage, 1);
recipe.AddIngredient(ItemID.Feather, 100);
recipe.AddIngredient(ItemID.HoneyBucket, 1);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 15 KiB