Wulfrum Plating Remaster and Wulfrum Panel dejanding
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class WulfrumPanelWall : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.WulfrumPanelWall>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(4).
|
||||
AddIngredient<WulfrumPanels>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 423 B |
@@ -4278,3 +4278,8 @@ AnodizedWulfrumPanels: {
|
||||
DisplayName: Anodized Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPanelWall: {
|
||||
DisplayName: Wulfrum Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
@@ -12,7 +12,8 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
public class WulfrumPanels : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
|
||||
private const short subsheetWidth = 216;
|
||||
private const short subsheetHeight = 72;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
@@ -32,7 +33,15 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 9.3 KiB |
@@ -12,8 +12,8 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
public class WulfrumPlating : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
private const short subsheetWidth = 324;
|
||||
private const short subsheetHeight = 90;
|
||||
private const short subsheetWidth = 216;
|
||||
private const short subsheetHeight = 72;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -36,7 +36,8 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
||||
TileFramingSystem.CompactFraming(i, j, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.3 KiB |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
public class WulfrumPanelWall : MultiVariantModWall
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
AddMapEntry(new Color(53, 67, 54));
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
public override void PopulateWallVariant(int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
{
|
||||
frameXOffset = (i % 2) * 468;
|
||||
frameYOffset = (j % 2) * 180;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 25 KiB |