Add crafting station for late/end game items
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -47,11 +47,12 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod))
|
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod))
|
||||||
{
|
{
|
||||||
Recipe recipe = CreateRecipe();
|
Recipe recipe = CreateRecipe();
|
||||||
|
recipe.AddIngredient<Materials.RGBass>(30);
|
||||||
recipe.AddIngredient(ItemID.RainbowBrick, 100);
|
recipe.AddIngredient(ItemID.RainbowBrick, 100);
|
||||||
// Exo Prism
|
// Exo Prism
|
||||||
recipe.AddIngredient(calamityMod.Find<ModItem>("ExoPrism").Type, 5);
|
recipe.AddIngredient(calamityMod.Find<ModItem>("ExoPrism").Type, 5);
|
||||||
recipe.AddIngredient(calamityMod.Find<ModItem>("MysteriousCircuitry").Type, 10);
|
recipe.AddIngredient(calamityMod.Find<ModItem>("MysteriousCircuitry").Type, 10);
|
||||||
recipe.AddTile(TileID.LunarCraftingStation);
|
recipe.AddTile<Content.Tiles.CraftingStations.HighTechMarvel>();
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,15 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void AddRecipes()
|
||||||
|
{
|
||||||
|
Recipe recipe = CreateRecipe();
|
||||||
|
recipe.AddIngredient<Materials.RGBass>(30);
|
||||||
|
recipe.AddIngredient(ItemID.FallenStar, 50);
|
||||||
|
recipe.AddIngredient(ItemID.SparkleGuitar, 1);
|
||||||
|
recipe.AddTile<Content.Tiles.CraftingStations.HighTechMarvel>();
|
||||||
|
recipe.Register();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,6 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||||
{
|
{
|
||||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Niko>());
|
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Niko>());
|
||||||
Main.NewText(summonText, 175, 75, 255);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -44,10 +43,11 @@ namespace ForgottenWawiTech.Content.Items.SummonItems
|
|||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
Recipe recipe = CreateRecipe();
|
Recipe recipe = CreateRecipe();
|
||||||
|
recipe.AddIngredient<Materials.RGBass>(30);
|
||||||
recipe.AddIngredient(ItemID.RatCage, 1);
|
recipe.AddIngredient(ItemID.RatCage, 1);
|
||||||
recipe.AddIngredient(ItemID.Feather, 100);
|
recipe.AddIngredient(ItemID.Feather, 100);
|
||||||
recipe.AddIngredient(ItemID.HoneyBucket, 1);
|
recipe.AddIngredient(ItemID.HoneyBucket, 1);
|
||||||
recipe.AddTile(TileID.LunarCraftingStation);
|
recipe.AddTile<Content.Tiles.CraftingStations.HighTechMarvel>();
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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<HighTechMarvel>(), 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -69,6 +69,16 @@ Items: {
|
|||||||
Not edible.... I think.
|
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: {
|
NPCs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user