Astral Monolith Furniture Set
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Items.Placeables.FurnitureAstral;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");"
|
||||
|
||||
@@ -31,6 +32,10 @@ namespace CalamityMod.Items.Placeables
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<MonolithPlatform>(), 2);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 632 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
{
|
||||
public class MonolithCrafting : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("Used for special crafting");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Amalgam");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.Furniture.CraftingStations.MonolithCrafting>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 20);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 496 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithBathtub : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Bathtub");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithBathtub>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 14);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 460 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithBed : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Bed");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithBed>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 15);
|
||||
recipe.AddIngredient(ItemID.Silk, 5);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 386 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Bench");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 5);
|
||||
recipe.AddIngredient(ItemID.Silk, 2);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 465 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithBookcase : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Bookcase");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithBookcase>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 20);
|
||||
recipe.AddIngredient(ItemID.Book, 10);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 511 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithCandelabra : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Candelabra");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithCandelabra>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 3);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 603 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithCandle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Candle");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithCandle>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 383 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithChair : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Chair");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithChair>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 424 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithChandelier : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Chandelier");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithChandelier>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 649 B |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithChest : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Chest");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithChest>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 8);
|
||||
recipe.AddIngredient(ItemID.IronBar, 2);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 562 B |
@@ -0,0 +1,39 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithClock : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Clock");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithClock>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 10);
|
||||
recipe.AddIngredient(ItemID.IronBar, 3);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.Glass, 6);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 479 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithDoor : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Door");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithDoorClosed>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 6);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 404 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithDresser : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Dresser");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithDresser>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 16);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 460 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithLamp : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Lamp");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithLamp>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 9);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 464 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithLantern : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Lantern");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithLantern>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 18);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 430 B |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithPiano : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Piano");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithPiano>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 15);
|
||||
recipe.AddIngredient(ItemID.Bone, 4);
|
||||
recipe.AddIngredient(ItemID.Book);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 554 B |
@@ -0,0 +1,34 @@
|
||||
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithPlatform : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Platform");
|
||||
item.width = 8;
|
||||
item.height = 10;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithPlatform>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>());
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithSink : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("Counts as a water source");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Sink");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithSink>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 6);
|
||||
recipe.AddIngredient(ItemID.WaterBucket);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 606 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithTable : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Table");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithTable>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 8);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 608 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAstral
|
||||
{
|
||||
public class MonolithWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.SetNameOverride("Monolith Work Bench");
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.FurnitureAstral.MonolithWorkBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralMonolith>(), 10);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(ModContent.TileType<MonolithCrafting>());
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 402 B |
|
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 424 B |
@@ -10,6 +10,9 @@ namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
public class AstralMonolith : ModTile
|
||||
{
|
||||
private static int sheetWidth = 216;
|
||||
private static int sheetHeight = 72;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
@@ -24,9 +27,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.AstralMonolith>();
|
||||
AddMapEntry(new Color(45, 36, 63));
|
||||
animationFrameHeight = 270;
|
||||
}
|
||||
int animationFrameWidth = 288;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
@@ -38,43 +39,94 @@ namespace CalamityMod.Tiles.Astral
|
||||
{
|
||||
int xPos = i % 4;
|
||||
int yPos = j % 4;
|
||||
frameXOffset = xPos * animationFrameWidth;
|
||||
frameYOffset = yPos * animationFrameHeight;
|
||||
|
||||
if ((xPos == 0 && yPos == 2) || (xPos == 1 && yPos == 3) || (xPos == 3 && yPos == 1))
|
||||
Main.tile[i, j].frameNumber(Main.tile[i, j - 1].frameNumber());
|
||||
else if (xPos == 2 && yPos == 2)
|
||||
Main.tile[i, j].frameNumber(Main.tile[i - 1, j].frameNumber());
|
||||
else if (xPos == 2 && yPos == 3)
|
||||
Main.tile[i, j].frameNumber(Main.tile[i - 1, j - 1].frameNumber());
|
||||
|
||||
GetDrawSpecifics(i, j, ref xPos, ref yPos);
|
||||
|
||||
frameXOffset = xPos * sheetWidth;
|
||||
frameYOffset = yPos * sheetHeight;
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Tile tile = Main.tile[i, j];
|
||||
|
||||
int xOffset = i % 4;
|
||||
int yOffset = j % 4;
|
||||
xOffset *= 288;
|
||||
yOffset *= 270;
|
||||
|
||||
GetDrawSpecifics(i, j, ref xOffset, ref yOffset);
|
||||
|
||||
xOffset *= sheetWidth;
|
||||
yOffset *= sheetHeight;
|
||||
|
||||
int xPos = tile.frameX;
|
||||
int yPos = tile.frameY;
|
||||
xPos += xOffset;
|
||||
yPos += yOffset;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralMonolithGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
Texture2D texture3 = glowmask;
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
if (!tile.halfBrick() && tile.slope() == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(texture3, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else if (trackTile.halfBrick())
|
||||
else if (tile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(texture3, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AstralDirt>(), false, false, false, false, resetFrame);
|
||||
TileFraming.CompactFraming(i, j, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
private void GetDrawSpecifics(int i, int j, ref int xPos, ref int yPos)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
// Make sure the features work as intended
|
||||
if (tile.frameNumber() == 1)
|
||||
{
|
||||
if (xPos == 0 && (yPos == 1 || yPos == 2))
|
||||
yPos += 3;
|
||||
else if ((xPos == 1 || xPos == 2) && (yPos == 2 || yPos == 3))
|
||||
yPos += 2;
|
||||
else if (xPos == 3 && (yPos == 0 || yPos == 1))
|
||||
yPos += 4;
|
||||
}
|
||||
else if (tile.frameNumber() == 2)
|
||||
{
|
||||
if (xPos == 1 && yPos == 0)
|
||||
{
|
||||
xPos = 0;
|
||||
yPos = 6;
|
||||
}
|
||||
else if (xPos == 2 && yPos == 1)
|
||||
{
|
||||
xPos = 1;
|
||||
yPos = 6;
|
||||
}
|
||||
else if (xPos == 1 && yPos == 3)
|
||||
{
|
||||
xPos = 2;
|
||||
yPos = 6;
|
||||
}
|
||||
else if (xPos == 3 && yPos == 3)
|
||||
{
|
||||
xPos = 3;
|
||||
yPos = 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
|
||||
|
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,62 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
{
|
||||
class MonolithCrafting : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpBookcase(solidTop: false);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Amalgam");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
animationFrameHeight = 54;
|
||||
adjTiles = new int[] { TileID.Bookcases };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Furniture/CraftingStations/MonolithCraftingGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.Furniture.CraftingStations.MonolithCrafting>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 609 B |
@@ -0,0 +1,59 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithBathtub : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpBathtub();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Bathtub");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
animationFrameHeight = 54;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithBathtubGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithBathtub>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 883 B |
@@ -0,0 +1,81 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithBed : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpBed();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Bed");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Beds };
|
||||
bed = true;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithBedGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 64, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithBed>());
|
||||
}
|
||||
|
||||
public override bool NewRightClick(int i, int j)
|
||||
{
|
||||
return CalamityUtils.BedRightClick(i, j);
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.showItemIcon = true;
|
||||
player.showItemIcon2 = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithBed>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 511 B |
@@ -0,0 +1,58 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithBench : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpSofa();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithBenchGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 813 B |
|
After Width: | Height: | Size: 403 B |
@@ -0,0 +1,62 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithBookcase : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpBookcase(solidTop: false);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Bookcase");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
animationFrameHeight = 54;
|
||||
adjTiles = new int[] { TileID.Bookcases };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithBookcaseGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithBookcase>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 603 B |
@@ -0,0 +1,86 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithCandelabra : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpCandelabra();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Candelabra");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
Texture2D glowmaskBright = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithCandelabraFlame");
|
||||
Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
{
|
||||
r = 0.8f;
|
||||
g = 0.9f;
|
||||
b = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = 0f;
|
||||
g = 0f;
|
||||
b = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 16, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithCandelabra>());
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 2, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 938 B |
|
After Width: | Height: | Size: 361 B |
|
After Width: | Height: | Size: 473 B |
@@ -0,0 +1,82 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithCandle : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpCandle();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Candle");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
drop = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithCandle>();
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithCandleGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
Texture2D glowmaskBright = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithCandleFlame");
|
||||
Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
{
|
||||
r = 0.8f;
|
||||
g = 0.9f;
|
||||
b = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = 0f;
|
||||
g = 0f;
|
||||
b = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 285 B |
@@ -0,0 +1,62 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithChair : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpChair();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Chair");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Chairs };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithChairGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithChair>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 302 B |
@@ -0,0 +1,85 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithChandelier : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpChandelier();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Chandelier");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
Texture2D glowmaskBright = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithChandelierFlame");
|
||||
Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
{
|
||||
r = 0.8f;
|
||||
g = 0.9f;
|
||||
b = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = 0f;
|
||||
g = 0f;
|
||||
b = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithChandelier>());
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 3, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 611 B |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,135 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithChest : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpChest();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Chest");
|
||||
AddMapEntry(new Color(191, 142, 111), name, MapChestName);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Containers };
|
||||
chest = "Monolith Chest";
|
||||
chestDrop = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithChest>();
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithChestGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public string MapChestName(string name, int i, int j)
|
||||
{
|
||||
int left = i;
|
||||
int top = j;
|
||||
Tile tile = Main.tile[i, j];
|
||||
if (tile.frameX % 36 != 0)
|
||||
{
|
||||
left--;
|
||||
}
|
||||
if (tile.frameY != 0)
|
||||
{
|
||||
top--;
|
||||
}
|
||||
int chest = Chest.FindChest(left, top);
|
||||
if (Main.chest[chest].name == "")
|
||||
{
|
||||
return name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return name + ": " + Main.chest[chest].name;
|
||||
}
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 32, 32, chestDrop);
|
||||
Chest.DestroyChest(i, j);
|
||||
}
|
||||
|
||||
public override bool NewRightClick(int i, int j)
|
||||
{
|
||||
// Glowmask animation & custom sound
|
||||
Player player = Main.LocalPlayer;
|
||||
Tile tile = Main.tile[i, j];
|
||||
Main.mouseRightRelease = false;
|
||||
int left = i;
|
||||
int top = j;
|
||||
if (tile.frameX % 36 != 0)
|
||||
{
|
||||
left--;
|
||||
}
|
||||
if (tile.frameY != 0)
|
||||
{
|
||||
top--;
|
||||
}
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int chest = Chest.FindChest(left, top);
|
||||
if (chest >= 0)
|
||||
{
|
||||
if (player.chest < 0)
|
||||
{
|
||||
Main.PlaySound(4, Style: 22, volumeScale: 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return CalamityUtils.ChestRightClick(i, j);
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
CalamityUtils.ChestMouseOver<Items.Placeables.FurnitureAstral.MonolithChest>("Monolith Chest", i, j);
|
||||
}
|
||||
|
||||
public override void MouseOverFar(int i, int j)
|
||||
{
|
||||
CalamityUtils.ChestMouseFar<Items.Placeables.FurnitureAstral.MonolithChest>("Monolith Chest", i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 498 B |
@@ -0,0 +1,79 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithClock : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpClock();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Clock");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
adjTiles = new int[] { TileID.GrandfatherClocks };
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithClockGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool NewRightClick(int x, int y)
|
||||
{
|
||||
return CalamityUtils.ClockRightClick();
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (closer)
|
||||
{
|
||||
Main.clock = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 48, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithClock>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 551 B |
|
After Width: | Height: | Size: 509 B |
@@ -0,0 +1,76 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithDoorClosed : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpDoorClosed();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.ClosedDoor };
|
||||
openDoorID = ModContent.TileType<MonolithDoorOpen>();
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithDoorClosedGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithDoor>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.showItemIcon = true;
|
||||
player.showItemIcon2 = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithDoor>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 686 B |
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 402 B |
@@ -0,0 +1,76 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithDoorOpen : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Door");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.OpenDoor };
|
||||
closeDoorID = ModContent.TileType<MonolithDoorClosed>();
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithDoorOpenGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 32, 48, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithDoor>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.showItemIcon = true;
|
||||
player.showItemIcon2 = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithDoor>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 445 B |
|
After Width: | Height: | Size: 781 B |
@@ -0,0 +1,85 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
public class MonolithDresser : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpDresser();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Dresser");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Dressers };
|
||||
dresser = "Monolith Dresser";
|
||||
dresserDrop = ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithDresser>();
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithDresserGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override bool HasSmartInteract()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool NewRightClick(int i, int j)
|
||||
{
|
||||
return CalamityUtils.DresserRightClick();
|
||||
}
|
||||
|
||||
public override void MouseOverFar(int i, int j)
|
||||
{
|
||||
CalamityUtils.DresserMouseFar<Items.Placeables.FurnitureAstral.MonolithDresser>(chest);
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
CalamityUtils.DresserMouseOver<Items.Placeables.FurnitureAstral.MonolithDresser>(chest);
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 48, 32, dresserDrop);
|
||||
Chest.DestroyChest(i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 863 B |
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 289 B |
@@ -0,0 +1,87 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAstral
|
||||
{
|
||||
class MonolithLamp : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpLamp();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Monolith Lamp");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Torches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<AstralBasic>(), 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 KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureAstral.MonolithLamp>());
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithLampGlow");
|
||||
Color drawColour = GetDrawColour(i, j, new Color(100, 100, 100, 100));
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
Texture2D glowmaskBright = ModContent.GetTexture("CalamityMod/Tiles/FurnitureAstral/MonolithLampFlame");
|
||||
Main.spriteBatch.Draw(glowmaskBright, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
if (Main.tile[i, j].frameX < 18)
|
||||
{
|
||||
r = 0.8f;
|
||||
g = 0.9f;
|
||||
b = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = 0f;
|
||||
g = 0f;
|
||||
b = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitWire(int i, int j)
|
||||
{
|
||||
CalamityUtils.LightHitWire(Type, i, j, 1, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 866 B |
|
After Width: | Height: | Size: 304 B |