From b2972be531595971956dad33584d71bf3596fd58 Mon Sep 17 00:00:00 2001 From: Niko Date: Sun, 9 Nov 2025 22:50:12 +0000 Subject: [PATCH] Add crafting station for late/end game items --- Content/Items/Materials/RGBass.cs | 17 ++++++++++ Content/Items/Materials/RGBass.png | Bin 0 -> 504 bytes Content/Items/SummonItems/LexySummon.cs | 3 +- Content/Items/SummonItems/LyykaSummon.cs | 10 ++++++ Content/Items/SummonItems/NikoSummon.cs | 4 +-- Content/Items/Tiles/HighTechMarvelItem.cs | 14 +++++++++ Content/Items/Tiles/HighTechMarvelItem.png | Bin 0 -> 504 bytes .../Tiles/CraftingStations/HighTechMarvel.cs | 29 ++++++++++++++++++ .../Tiles/CraftingStations/HighTechMarvel.png | Bin 0 -> 504 bytes .../en-US_Mods.ForgottenWawiTech.hjson | 10 ++++++ 10 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 Content/Items/Materials/RGBass.cs create mode 100644 Content/Items/Materials/RGBass.png create mode 100644 Content/Items/Tiles/HighTechMarvelItem.cs create mode 100644 Content/Items/Tiles/HighTechMarvelItem.png create mode 100644 Content/Tiles/CraftingStations/HighTechMarvel.cs create mode 100644 Content/Tiles/CraftingStations/HighTechMarvel.png diff --git a/Content/Items/Materials/RGBass.cs b/Content/Items/Materials/RGBass.cs new file mode 100644 index 0000000..9c87f49 --- /dev/null +++ b/Content/Items/Materials/RGBass.cs @@ -0,0 +1,17 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace ForgottenWawiTech.Content.Items.Materials +{ + public class RGBass : ModItem + { + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.maxStack = 9999; + Item.rare = ItemRarityID.White; + } + } +} \ No newline at end of file diff --git a/Content/Items/Materials/RGBass.png b/Content/Items/Materials/RGBass.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0cf81e52f4133dbe85453dd9a37993af17b5be GIT binary patch literal 504 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r53?z4+XPOVBbOU@sT!FNbf{DF-NtsjE_3B;! z|NjSy0D+K@p01v+t9x8zR#D@WS?dlQ`1+YJESG!@x4dC7*`C93=UXkhhvvt!hjSLlJ~RwmnP~Bh_e#*cGOJz5H)U2RZk=*d{>S{o z|7E^K_FWXNcxrjXh&wV*Hfp0Ti%!ljhM&t`NT+&77>M@wN(xASbQfH=B6&8`PK|k& o(pT;d?|57xzrgJ7^Ax@sCjQeEzP*#>W`d&2)78&qol`;+07t#pIRF3v literal 0 HcmV?d00001 diff --git a/Content/Items/SummonItems/LexySummon.cs b/Content/Items/SummonItems/LexySummon.cs index 0a38a8d..cf50c9c 100644 --- a/Content/Items/SummonItems/LexySummon.cs +++ b/Content/Items/SummonItems/LexySummon.cs @@ -47,11 +47,12 @@ namespace ForgottenWawiTech.Content.Items.SummonItems if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod)) { Recipe recipe = CreateRecipe(); + recipe.AddIngredient(30); recipe.AddIngredient(ItemID.RainbowBrick, 100); // Exo Prism recipe.AddIngredient(calamityMod.Find("ExoPrism").Type, 5); recipe.AddIngredient(calamityMod.Find("MysteriousCircuitry").Type, 10); - recipe.AddTile(TileID.LunarCraftingStation); + recipe.AddTile(); recipe.Register(); } } diff --git a/Content/Items/SummonItems/LyykaSummon.cs b/Content/Items/SummonItems/LyykaSummon.cs index 850746b..99b832a 100644 --- a/Content/Items/SummonItems/LyykaSummon.cs +++ b/Content/Items/SummonItems/LyykaSummon.cs @@ -40,5 +40,15 @@ namespace ForgottenWawiTech.Content.Items.SummonItems return true; } + + public override void AddRecipes() + { + Recipe recipe = CreateRecipe(); + recipe.AddIngredient(30); + recipe.AddIngredient(ItemID.FallenStar, 50); + recipe.AddIngredient(ItemID.SparkleGuitar, 1); + recipe.AddTile(); + recipe.Register(); + } } } \ No newline at end of file diff --git a/Content/Items/SummonItems/NikoSummon.cs b/Content/Items/SummonItems/NikoSummon.cs index fb13a6e..9440f6f 100644 --- a/Content/Items/SummonItems/NikoSummon.cs +++ b/Content/Items/SummonItems/NikoSummon.cs @@ -36,7 +36,6 @@ namespace ForgottenWawiTech.Content.Items.SummonItems if (Main.netMode != NetmodeID.MultiplayerClient) { NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); - Main.NewText(summonText, 175, 75, 255); } return true; @@ -44,10 +43,11 @@ namespace ForgottenWawiTech.Content.Items.SummonItems public override void AddRecipes() { Recipe recipe = CreateRecipe(); + recipe.AddIngredient(30); recipe.AddIngredient(ItemID.RatCage, 1); recipe.AddIngredient(ItemID.Feather, 100); recipe.AddIngredient(ItemID.HoneyBucket, 1); - recipe.AddTile(TileID.LunarCraftingStation); + recipe.AddTile(); recipe.Register(); } } diff --git a/Content/Items/Tiles/HighTechMarvelItem.cs b/Content/Items/Tiles/HighTechMarvelItem.cs new file mode 100644 index 0000000..446ab93 --- /dev/null +++ b/Content/Items/Tiles/HighTechMarvelItem.cs @@ -0,0 +1,14 @@ +using Terraria; +using Terraria.ModLoader; +using ForgottenWawiTech.Content.Tiles.CraftingStations; + +namespace ForgottenWawiTech.Content.Items.Tiles +{ + public class HighTechMarvelItem : ModItem + { + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType(), 0); + } + } +} \ No newline at end of file diff --git a/Content/Items/Tiles/HighTechMarvelItem.png b/Content/Items/Tiles/HighTechMarvelItem.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0cf81e52f4133dbe85453dd9a37993af17b5be GIT binary patch literal 504 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r53?z4+XPOVBbOU@sT!FNbf{DF-NtsjE_3B;! z|NjSy0D+K@p01v+t9x8zR#D@WS?dlQ`1+YJESG!@x4dC7*`C93=UXkhhvvt!hjSLlJ~RwmnP~Bh_e#*cGOJz5H)U2RZk=*d{>S{o z|7E^K_FWXNcxrjXh&wV*Hfp0Ti%!ljhM&t`NT+&77>M@wN(xASbQfH=B6&8`PK|k& o(pT;d?|57xzrgJ7^Ax@sCjQeEzP*#>W`d&2)78&qol`;+07t#pIRF3v literal 0 HcmV?d00001 diff --git a/Content/Tiles/CraftingStations/HighTechMarvel.cs b/Content/Tiles/CraftingStations/HighTechMarvel.cs new file mode 100644 index 0000000..9fc3f81 --- /dev/null +++ b/Content/Tiles/CraftingStations/HighTechMarvel.cs @@ -0,0 +1,29 @@ +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria.Localization; + +namespace ForgottenWawiTech.Content.Tiles.CraftingStations +{ + public class HighTechMarvel : ModTile + { + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = false; + Main.tileNoAttach[Type] = true; + AddMapEntry(new Color(150, 50, 250), Language.GetText("HighTechMarvelItem.DisplayName")); + //TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + } + + + public override void NearbyEffects(int i, int j, bool closer) + { + if (closer) + { + Main.LocalPlayer.AddBuff(BuffID.WellFed, 60); + } + } + } +} \ No newline at end of file diff --git a/Content/Tiles/CraftingStations/HighTechMarvel.png b/Content/Tiles/CraftingStations/HighTechMarvel.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0cf81e52f4133dbe85453dd9a37993af17b5be GIT binary patch literal 504 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r53?z4+XPOVBbOU@sT!FNbf{DF-NtsjE_3B;! z|NjSy0D+K@p01v+t9x8zR#D@WS?dlQ`1+YJESG!@x4dC7*`C93=UXkhhvvt!hjSLlJ~RwmnP~Bh_e#*cGOJz5H)U2RZk=*d{>S{o z|7E^K_FWXNcxrjXh&wV*Hfp0Ti%!ljhM&t`NT+&77>M@wN(xASbQfH=B6&8`PK|k& o(pT;d?|57xzrgJ7^Ax@sCjQeEzP*#>W`d&2)78&qol`;+07t#pIRF3v literal 0 HcmV?d00001 diff --git a/Localization/en-US_Mods.ForgottenWawiTech.hjson b/Localization/en-US_Mods.ForgottenWawiTech.hjson index 543aab8..ec9ed5a 100644 --- a/Localization/en-US_Mods.ForgottenWawiTech.hjson +++ b/Localization/en-US_Mods.ForgottenWawiTech.hjson @@ -69,6 +69,16 @@ Items: { Not edible.... I think. ''' } + + RGBass: { + DisplayName: RG-Bass + Tooltip: A gamer fish. It radiates with caffeine. + } + + HighTechMarvelItem: { + DisplayName: High Tech Marvel + Tooltip: A high-tech crafting station. + } } NPCs: {