Files
CalamityModPublic/Waters/VoidWater.cs
T
enamoured_ d856d300d3 ocd water consistencies
also makes sulphuric waterfalls sprite use the same palette as the normal water
sorry if this is an annoying change but it bothered me!
still gonna wait for the water animation fix but until then, this is all i have
2024-09-04 21:32:57 -04:00

42 lines
1.5 KiB
C#

using CalamityMod.Dusts.WaterSplash;
using CalamityMod.Gores.WaterDroplet;
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using Terraria.Graphics;
using Terraria.ModLoader;
namespace CalamityMod.Waters
{
public class VoidWaterflow : ModWaterfallStyle { }
public class VoidWater : CalamityModWaterStyle
{
public static CalamityModWaterStyle Instance { get; private set; }
public static ModWaterfallStyle WaterfallStyle { get; private set; }
public static int SplashDust { get; private set; }
public static int DropletGore { get; private set; }
public override void SetStaticDefaults()
{
Instance = this;
WaterfallStyle = ModContent.Find<ModWaterfallStyle>("CalamityMod/VoidWaterflow");
SplashDust = ModContent.DustType<VoidSplash>();
DropletGore = ModContent.GoreType<VoidWaterDroplet>();
}
public override void Unload()
{
Instance = null;
WaterfallStyle = null;
SplashDust = 0;
DropletGore = 0;
}
public override int ChooseWaterfallStyle() => WaterfallStyle.Slot;
public override int GetSplashDust() => SplashDust;
public override int GetDropletGore() => DropletGore;
public override Color BiomeHairColor() => new Color(16, 8, 30);
public override void DrawColor(int x, int y, ref VertexColors liquidColor, bool isSlope) => ILEditing.ILChanges.SelectSulphuricWaterColor(x, y, ref liquidColor, isSlope);
}
}