standardized glowmask loading

This commit is contained in:
Ozzatron committed 2025-03-19 14:19:31 -04:00
1 parent 6b1e6adf37
commit 94ce916ae8
1 file changed
+3 -1
+3 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Rogue
public class NanoblackTesselation : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Rogue";
internal static Asset<Texture2D> Glow = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/NanoblackTesselationGlow");
internal static Asset<Texture2D> Glow;
// As Nanoblack Tesselations are not square, this is required for the glowmask to be rendered properly.
private const int SpriteWidth = 52;
@@ -42,6 +42,8 @@ namespace CalamityMod.Projectiles.Rogue
// Tesselations can fire a maximum of four zero-point energy strikes.
private int zeroPointStrikesPerformed = 0;
public override void Load() => Glow = ModContent.Request<Texture2D>(Texture + "Glow");
public override void SetStaticDefaults()
{
// Nanoblack Tesselations are not perfectly square and need assistance to spin properly.