Cache GrayscaleTexture Util Instance
No files matched your search
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 337 B |
@@ -0,0 +1,49 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.ExtraTextures.GreyscaleGradients
|
||||
{
|
||||
internal class GreyscaleGradient : ILoadable
|
||||
{
|
||||
public string BasePath => "CalamityMod/ExtraTextures/GreyscaleGradients/";
|
||||
|
||||
public static GrayscaleTexture1D CinderplatePulse { get; private set; }
|
||||
public static GrayscaleTexture1D ElumplatePulse { get; private set; }
|
||||
public static GrayscaleTexture1D HavocplatePulse { get; private set; }
|
||||
public static GrayscaleTexture1D NavyplatePulse { get; private set; }
|
||||
public static GrayscaleTexture1D OnyxplatePulse { get; private set; }
|
||||
public static GrayscaleTexture1D PlagueContainmentCellsPulse { get; private set; }
|
||||
|
||||
public static GrayscaleTexture2D BlobbyNoise { get; private set; }
|
||||
|
||||
public void Load(Mod mod)
|
||||
{
|
||||
CinderplatePulse = new($"{BasePath}{nameof(CinderplatePulse)}");
|
||||
ElumplatePulse = new($"{BasePath}{nameof(ElumplatePulse)}");
|
||||
HavocplatePulse = new($"{BasePath}{nameof(HavocplatePulse)}");
|
||||
NavyplatePulse = new($"{BasePath}{nameof(NavyplatePulse)}");
|
||||
OnyxplatePulse = new($"{BasePath}{nameof(OnyxplatePulse)}");
|
||||
PlagueContainmentCellsPulse = new($"{BasePath}{nameof(PlagueContainmentCellsPulse)}");
|
||||
|
||||
BlobbyNoise = new($"{BasePath}{nameof(BlobbyNoise)}");
|
||||
}
|
||||
|
||||
public void Unload()
|
||||
{
|
||||
CinderplatePulse?.Unload();
|
||||
ElumplatePulse?.Unload();
|
||||
HavocplatePulse?.Unload();
|
||||
NavyplatePulse?.Unload();
|
||||
OnyxplatePulse?.Unload();
|
||||
PlagueContainmentCellsPulse?.Unload();
|
||||
BlobbyNoise?.Unload();
|
||||
|
||||
CinderplatePulse = null;
|
||||
ElumplatePulse = null;
|
||||
HavocplatePulse = null;
|
||||
NavyplatePulse = null;
|
||||
OnyxplatePulse = null;
|
||||
PlagueContainmentCellsPulse = null;
|
||||
BlobbyNoise = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 715 B |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 1002 B After Width: | Height: | Size: 1002 B |
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 294 B |
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.Systems;
|
||||
using CalamityMod.Tiles.Abyss.AbyssAmbient;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -12,12 +13,9 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public class Voidstone : GlowMaskTile
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/Voidstone_Glowmask";
|
||||
public GrayscaleTexture2D NoiseTexture;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
NoiseTexture = new("CalamityMod/ExtraTextures/GreyscaleGradients/BlobbyNoise");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
@@ -36,12 +34,6 @@ namespace CalamityMod.Tiles.Abyss
|
||||
this.RegisterBlendMergeWith(ModContent.TileType<PyreMantle>());
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
NoiseTexture?.Unload();
|
||||
NoiseTexture = null;
|
||||
}
|
||||
|
||||
int animationFrameWidth = 234;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
@@ -85,7 +77,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
int time = (int)(Main.timeForVisualEffects * 0.11);
|
||||
float brightness = 1.0f - NoiseTexture.GetRepeat((i * 100) + time, (j * 100) + time);
|
||||
float brightness = 1.0f - GreyscaleGradient.BlobbyNoise.GetRepeat((i * 100) + time, (j * 100) + time);
|
||||
brightness -= 0.55f;
|
||||
return new Color(brightness, brightness, brightness);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Systems;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -13,11 +14,9 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
public class AstralSnow : GlowMaskTile
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/AstralSnow/AstralSnowLightmask";
|
||||
public GrayscaleTexture2D NoiseTexture;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
NoiseTexture = new("CalamityMod/ExtraTextures/GreyscaleGradients/BlobbyNoise");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
@@ -46,11 +45,6 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
public override void OnUnload()
|
||||
{
|
||||
NoiseTexture?.Unload();
|
||||
NoiseTexture = null;
|
||||
}
|
||||
|
||||
public override bool IsTileBiomeSightable(int i, int j, ref Color sightColor)
|
||||
{
|
||||
@@ -60,7 +54,7 @@ namespace CalamityMod.Tiles.AstralSnow
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
int time = (int)(Main.timeForVisualEffects * 0.11);
|
||||
float brightness = 1.0f - NoiseTexture.GetRepeat((i * 60) + time, (j * 50) + time);
|
||||
float brightness = 1.0f - GreyscaleGradient.BlobbyNoise.GetRepeat((i * 60) + time, (j * 50) + time);
|
||||
brightness += (float)MathF.Sin(-j / 1f + Main.GameUpdateCount * 0.02f + -i / 30f);
|
||||
brightness -= (float)MathF.Sin(j / 8f + Main.GameUpdateCount * 0.02f - i / 11f);
|
||||
brightness -= (float)MathF.Sin(j / 1f + Main.GameUpdateCount * 0.01f - i / 2f);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedBiolight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/PlagueContainmentCellsPulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -76,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.PlagueContainmentCellsPulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 9f / 255f * brightness, 195f / 255f * brightness, 0f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedBlacklight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/OnyxplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
}
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.OnyxplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 182f / 255f * brightness, 28f / 255f * brightness, 232f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedCinderlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/CinderplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -76,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.CinderplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i, j), 252f / 255f * brightness, 184f / 255f * brightness, 29f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedFlamelight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/HavocplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -76,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.HavocplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), (255f / 255f) * brightness, (104f / 255f) * brightness, (104f / 255f) * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedFloodlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/NavyplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -76,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.NavyplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 105f / 255f * brightness, 195f / 255f * brightness, 193f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class AgedFrostlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/ElumplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -34,7 +31,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
// Attach to ground
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.StyleMultiplier = 10; // total 10 frames, all should be same "itemStyle"
|
||||
TileObjectData.newTile.StyleWrapLimit = 2; // only 1 placement alternative per row
|
||||
TileObjectData.newTile.Origin = new Point16(0, 1);
|
||||
@@ -76,7 +73,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.ElumplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 9f / 255f * brightness, 158f / 255f * brightness, 238f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedBiolight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/PlagueContainmentCellsPulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -70,7 +67,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.PlagueContainmentCellsPulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 9f / 255f * brightness, 195f / 255f * brightness, 0f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedBlacklight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/OnyxplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.OnyxplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 182f / 255f * brightness, 28f / 255f * brightness, 232f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedCinderlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/CinderplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.CinderplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 252f / 255f * brightness, 184f / 255f * brightness, 29f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedFlamelight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/HavocplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.HavocplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), (255f / 255f) * brightness, (104f / 255f) * brightness, (104f / 255f) * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedFloodlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/NavyplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.NavyplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = MathHelper.Clamp(brightness, 0.2f, 0.6f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i * 16, j * 16), 105f / 255f * brightness, 195f / 255f * brightness, 193f / 255f * brightness);
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Items.Placeables.DraedonStructures.CagedLights;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
{
|
||||
public class MiniAgedFrostlight : ModTile
|
||||
{
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/ElumplatePulse");
|
||||
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
@@ -75,7 +72,7 @@ namespace CalamityMod.Tiles.DraedonStructures.CagedLights
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.ElumplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
|
||||
Lighting.AddLight(new Vector2(i, j), 9f / 255f * brightness, 158f / 255f * brightness, 238f / 255f * brightness);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -10,12 +11,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/CinderplateGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/CinderplatePulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -27,12 +24,6 @@ namespace CalamityMod.Tiles.Plates
|
||||
AddMapEntry(new Color(242, 216, 131));
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Torch, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
@@ -47,7 +38,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.CinderplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -10,12 +11,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/ElumplateGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/ElumplatePulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -26,12 +23,6 @@ namespace CalamityMod.Tiles.Plates
|
||||
MineResist = 1f;
|
||||
AddMapEntry(new Color(121, 180, 212));
|
||||
}
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
@@ -47,7 +38,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.ElumplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -12,12 +13,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/HavocplateGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/HavocplatePulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -29,12 +26,6 @@ namespace CalamityMod.Tiles.Plates
|
||||
AddMapEntry(new Color(235, 108, 108));
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.RedTorch, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
@@ -49,7 +40,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.HavocplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -10,12 +11,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/NavyplateGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/NavyplatePulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -27,12 +24,6 @@ namespace CalamityMod.Tiles.Plates
|
||||
AddMapEntry(new Color(85, 151, 196));
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Flare_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
@@ -47,7 +38,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.NavyplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -10,11 +11,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/OnyxplateGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/OnyxplatePulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -27,15 +25,9 @@ namespace CalamityMod.Tiles.Plates
|
||||
AddMapEntry(new Color(182, 28, 232));
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.OnyxplatePulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.31f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.ExtraTextures.GreyscaleGradients;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -10,11 +11,8 @@ namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/PlagueContainmentCellsGlow";
|
||||
|
||||
internal static GrayscaleTexture1D PulseGradient;
|
||||
public override void SetupStatic()
|
||||
{
|
||||
PulseGradient = new("CalamityMod/Tiles/Plates/PlagueContainmentCellsPulse");
|
||||
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
@@ -26,12 +24,6 @@ namespace CalamityMod.Tiles.Plates
|
||||
AddMapEntry(new Color(128, 188, 67));
|
||||
}
|
||||
|
||||
public override void OnUnload()
|
||||
{
|
||||
PulseGradient?.Unload();
|
||||
PulseGradient = null;
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.GemEmerald, 0f, 0f, 100, default, 2f);
|
||||
@@ -51,7 +43,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
|
||||
public override Color GetGlowMaskColor(int i, int j, TileDrawInfo drawData)
|
||||
{
|
||||
float brightness = PulseGradient.GetRepeat((int)Main.GameUpdateCount);
|
||||
float brightness = GreyscaleGradient.PlagueContainmentCellsPulse.GetRepeat((int)Main.GameUpdateCount);
|
||||
brightness = 0.04f + (brightness * 0.156f);
|
||||
return Color.White * brightness;
|
||||
}
|
||||
|
||||