Refactor Book of Unholy, add Singularity Sealing Unit

This commit is contained in:
2025-11-10 13:10:33 +00:00
parent ecf3476874
commit ad931f3848
10 changed files with 106 additions and 3 deletions
@@ -22,6 +22,7 @@ namespace ForgottenWawiTech.Content.Items.Materials
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<MiniSingularity>(), 5);
recipe.AddIngredient(ModContent.ItemType<ContainmentUnit>(), 1);
recipe.AddIngredient(ModContent.ItemType<EnergyCore>(), 2);
recipe.AddTile(TileID.MythrilAnvil);
recipe.Register();
}
+21
View File
@@ -0,0 +1,21 @@
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.Rarities;
namespace ForgottenWawiTech.Content.Items.Materials
{
public class EnergyCore : ModItem
{
public override void SetDefaults()
{
Item.width = 20;
Item.height = 20;
Item.maxStack = 9999;
Item.rare = ModContent.RarityType<SingularityItem>();
Item.value = Item.buyPrice(gold: 50);
}
}
}

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 504 B

@@ -0,0 +1,28 @@
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using ForgottenWawiTech.Content.Tiles.CraftingStations;
namespace ForgottenWawiTech.Content.Items.Tiles
{
public class SingularitySealingUnitItem : ModItem
{
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<SingularitySealingUnit>(), 0);
}
public override void AddRecipes()
{
CreateRecipe()
.AddIngredient<Materials.MiniSingularity>(100)
.AddIngredient<Materials.RGBAlloy>(20)
.AddIngredient<Materials.ContainmentUnit>(20)
.AddIngredient<Materials.EnergyCore>(10)
.AddIngredient(ItemID.CoffeeCup, 1)
.AddTile(TileID.Anvils)
.Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

@@ -7,7 +7,7 @@ using Terraria.ModLoader;
namespace ForgottenWawiTech.Content.Items.Weapons.Magic
{
public class BookOfUnholy: ModItem
public class TomeOfUnyielding : ModItem
{
public override void SetDefaults()
{
Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

@@ -0,0 +1,43 @@
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 SingularitySealingUnit : ModTile
{
public override void SetStaticDefaults()
{
Main.tileSolid[Type] = false;
Main.tileNoAttach[Type] = true;
AdjTiles = new int[] {
TileID.WorkBenches,
TileID.Anvils,
TileID.Furnaces,
TileID.Sawmill,
TileID.Loom,
TileID.HeavyWorkBench,
TileID.AlchemyTable,
TileID.MythrilAnvil,
TileID.AdamantiteForge,
TileID.Autohammer,
TileID.CrystalBall,
TileID.TinkerersWorkbench
};
AddMapEntry(new Color(150, 50, 250), Language.GetText("SingularitySealingUnitItem"));
//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

@@ -75,8 +75,8 @@ Items: {
Tooltip: A high-tech crafting station.
}
BookOfUnholy: {
DisplayName: Book Of Unholy
TomeOfUnyielding: {
DisplayName: Singularity-Infused Tome Of Unyielding
Tooltip:
'''
A tome radiating with the power of the void.
@@ -183,6 +183,16 @@ Items: {
Tooltip: ""
DisplayName: Containment Unit
}
SingularitySealingUnitItem: {
Tooltip: ""
DisplayName: Singularity Sealing Unit Item
}
EnergyCore: {
Tooltip: ""
DisplayName: Energy Core
}
}
NPCs: {