Wulfrum Building Stuff
Added Anodized Wulfrum Metal - used to make new building blocks that use a anodized color of wulfrum, will have it's own furniture set platforms etc. Added Wulfrum Platforms Added Wulfrum Sheets (Anodized Wulfrum Metal Set) Added Wulfrum Sidings (Regular Wulfrum and Anodized Hybrid) Added Wulfrum Pillars (Regular Wulfrum and Anodized Hybrid)
No files matched your search
@@ -0,0 +1,44 @@
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static CalamityMod.CalamityUtils;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class AnodizedWulfrumMetal : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 25;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(copper: 10);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.ammo = Item.type;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient<StormlionMandible>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
//Added to avoid making the recipes really repeditive and nonsensical. It also makes the new metal color make sense. Adds a bit of flavor to the Wulfrum Recipes
|
||||
//Fun fact the reason used Stormlion Manible is because in order to anodize a metal you must use a current, the other option was a powercell but I feel StormlionMandible needed more uses
|
||||
//More uses are planned for other blocks and furniture for wulfrum that use this new metal color and gives a bit more depth to the set
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 373 B |
@@ -0,0 +1,32 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.FurnitureWulfrum;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumPlatform : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 200;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumPlatform>());
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow").Value);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 407 B |
|
After Width: | Height: | Size: 108 B |
@@ -0,0 +1,32 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSheets : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumSheets>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(25).
|
||||
AddRecipeGroup("AnyStoneBlock", 25).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddTile(TileID.HeavyWorkBench).
|
||||
Register();
|
||||
//CreateRecipe().
|
||||
// AddIngredient<WulfrumPlatingWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 288 B |
@@ -0,0 +1,33 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSiding : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumSiding>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(25).
|
||||
AddRecipeGroup("AnyStoneBlock", 25).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.HeavyWorkBench).
|
||||
Register();
|
||||
//CreateRecipe().
|
||||
// AddIngredient<WulfrumPlatingWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 232 B |
@@ -0,0 +1,28 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class WulfrumPillar : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.WulfrumPillar>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(8).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 434 B |
@@ -0,0 +1,68 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumPlatform : ModTile
|
||||
{
|
||||
internal static Texture2D GlowTexture;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow", AssetRequestMode.ImmediateLoad).Value;
|
||||
}
|
||||
|
||||
this.SetUpPlatform(ModContent.ItemType<Items.Placeables.FurnitureWulfrum.WulfrumPlatform>(), true);
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j) => false;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostSetDefaults()
|
||||
{
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
// If the cached textures don't exist for some reason, don't bother using them.
|
||||
if (GlowTexture is null)
|
||||
return;
|
||||
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j);
|
||||
if (tile.IsTileActuallyInvisible())
|
||||
return;
|
||||
|
||||
int xPos = tile.TileFrameX;
|
||||
int frameOffset = (i + j) % 6 * AnimationFrameHeight;
|
||||
int yPos = tile.TileFrameY + frameOffset;
|
||||
Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset;
|
||||
|
||||
if (!tile.IsHalfBlock)
|
||||
{
|
||||
spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
else if (tile.IsHalfBlock)
|
||||
{
|
||||
spriteBatch.Draw(GlowTexture, drawPosition + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 240 B |
@@ -0,0 +1,51 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSheets : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
private const short subsheetWidth = 216;
|
||||
private const short subsheetHeight = 72;
|
||||
public static int TypeCache;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
TypeCache = Type;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = false;
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
HitSound = MinePlatingSound;
|
||||
AddMapEntry(new Color(164, 150, 125));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFramingSystem.CompactFraming(i, j, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
{
|
||||
int xPos = i % 2;
|
||||
int yPos = j % 2;
|
||||
frameXOffset = xPos * subsheetWidth;
|
||||
frameYOffset = yPos * subsheetHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 8.2 KiB |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSiding : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
HitSound = MinePlatingSound;
|
||||
AddMapEntry(new Color(164, 150, 125));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
@@ -648,6 +648,7 @@ namespace CalamityMod
|
||||
SetMerge(type, TileType<AshenSlab>());
|
||||
SetMerge(type, TileType<VoidstoneSlab>());
|
||||
SetMerge(type, TileType<WulfrumPanels>());
|
||||
SetMerge(type, TileType<WulfrumSiding>());
|
||||
SetMerge(type, TileType<WulfrumPlating>());
|
||||
SetMerge(type, TileType<WulfrumEnergyBarrier>());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
public class WulfrumPillar : ModWall
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
AddMapEntry(new Color(82, 109, 80));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 7.0 KiB |