From 94ce916ae82d576db51649a35bc62aeee5ebbcd8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 18 Nov 2024 11:12:48 -0500 Subject: [PATCH] standardized glowmask loading --- Projectiles/Rogue/NanoblackTesselation.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Projectiles/Rogue/NanoblackTesselation.cs b/Projectiles/Rogue/NanoblackTesselation.cs index fd967d3bf5..8a61c04821 100644 --- a/Projectiles/Rogue/NanoblackTesselation.cs +++ b/Projectiles/Rogue/NanoblackTesselation.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Rogue public class NanoblackTesselation : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Rogue"; - internal static Asset Glow = ModContent.Request("CalamityMod/Projectiles/Rogue/NanoblackTesselationGlow"); + internal static Asset 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(Texture + "Glow"); + public override void SetStaticDefaults() { // Nanoblack Tesselations are not perfectly square and need assistance to spin properly.