Avoid Absolute AssetPath for GlowMaskTiles

This commit is contained in:
Flowaria authored and Cameron Ewell committed 2025-12-19 22:58:52 -05:00
1 parent 0d76696f18
commit 5822e748b5
37 files changed
+18 -103

No files matched your search

+1 -5
View File
@@ -9,7 +9,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class AbyssGiantKelp1 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/AbyssGiantKelp1Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
@@ -66,8 +65,5 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
}
//just clone the first one its literally the same size
public class AbyssGiantKelp2 : AbyssGiantKelp1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/AbyssGiantKelp2Glow";
}
public class AbyssGiantKelp2 : AbyssGiantKelp1;
}
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class AbyssGiantKelp3 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/AbyssGiantKelp3Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class AbyssGiantKelp4 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/AbyssGiantKelp4Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
+2 -10
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class BulbTree1 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/BulbTree1Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
@@ -49,13 +47,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
}
}
public class BulbTree2 : BulbTree1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/BulbTree2Glow";
}
public class BulbTree2 : BulbTree1;
public class BulbTree3 : BulbTree1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/BulbTree3Glow";
}
public class BulbTree3 : BulbTree1;
}
-3
View File
@@ -60,19 +60,16 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
public class PirateCrate1 : PirateCrateExplosive
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate1Glow";
public override string GoreKey => "PirateCrateL";
}
public class PirateCrate2 : PirateCrateExplosive
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate2Glow";
public override string GoreKey => "PirateCrateM";
}
public class PirateCrate3 : PirateCrateExplosive
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/PirateCrate3Glow";
public override string GoreKey => "PirateCrateR";
}
+4 -18
View File
@@ -8,8 +8,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class SpiderCoral1 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SpiderCoral1Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
@@ -34,23 +32,11 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
}
}
public class SpiderCoral2 : SpiderCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SpiderCoral2Glow";
}
public class SpiderCoral2 : SpiderCoral1;
public class SpiderCoral3 : SpiderCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SpiderCoral3Glow";
}
public class SpiderCoral3 : SpiderCoral1;
public class SpiderCoral4 : SpiderCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SpiderCoral4Glow";
}
public class SpiderCoral4 : SpiderCoral1;
public class SpiderCoral5 : SpiderCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SpiderCoral5Glow";
}
public class SpiderCoral5 : SpiderCoral1;
}
+2 -10
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
{
public class SulphurPireCoral1 : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SulphurPireCoral1Glow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
@@ -49,13 +47,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient
}
}
public class SulphurPireCoral2 : SulphurPireCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SulphurPireCoral2Glow";
}
public class SulphurPireCoral2 : SulphurPireCoral1;
public class SulphurPireCoral3 : SulphurPireCoral1
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/AbyssAmbient/SulphurPireCoral3Glow";
}
public class SulphurPireCoral3 : SulphurPireCoral1;
}
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Tiles.Abyss
{
public class PyreMantleMolten : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/PyreMantleMolten_Glowmask";
public override string GlowMaskAsset => $"{Texture}_Glowmask";
public override void SetupStatic()
{
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Abyss
{
public class Voidstone : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Abyss/Voidstone_Glowmask";
public override string GlowMaskAsset => $"{Texture}_Glowmask";
public override void SetupStatic()
{
-2
View File
@@ -14,8 +14,6 @@ namespace CalamityMod.Tiles
private const short subsheetWidth = 324;
private const short subsheetHeight = 90;
public override string GlowMaskAsset => "CalamityMod/Tiles/AstralBrickGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.AstralSnow
{
public class AstralIce : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/AstralSnow/AstralIceLightmask";
public override string GlowMaskAsset => $"{Texture}Lightmask";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Tiles.AstralSnow
{
public class AstralSnow : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/AstralSnow/AstralSnowLightmask";
public override string GlowMaskAsset => $"{Texture}Lightmask";
public override void SetupStatic()
{
@@ -7,8 +7,6 @@ namespace CalamityMod.Tiles.FurnitureAshen
{
public class SmoothBrimstoneSlag : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureAshen/SmoothBrimstoneSlagGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAuric
{
public class ActivatedAuricPanelTile : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureAuric/ActivatedAuricPanelTile_Glow";
public override string GlowMaskAsset => $"{Texture}_Glow";
public override void SetupStatic()
{
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAuric
{
public class AuricRepulserPanelTile : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureAuric/AuricRepulserPanelTile_Glow";
public override string GlowMaskAsset => $"{Texture}_Glow";
public override void SetupStatic()
{
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Tiles.FurnitureAuric
{
public class ExoAuricPanelTile : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureAuric/ExoAuricPanelTile_Glow";
public override string GlowMaskAsset => $"{Texture}_Glow";
public override void SetupStatic()
{
@@ -7,8 +7,6 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
{
public class CosmiliteBrick : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureCosmilite/CosmiliteBrickGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -7,8 +7,6 @@ namespace CalamityMod.Tiles.FurnitureExo
{
public class ExoPlatingTile : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureExo/ExoPlatingTileGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -7,8 +7,6 @@ namespace CalamityMod.Tiles.FurnitureExo
{
public class ExoPrismPanelTile : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureExo/ExoPrismPanelTileGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
@@ -8,8 +8,6 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate
{
public class PlaguedPlate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurniturePlaguedPlate/PlaguedPlateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
+1 -3
View File
@@ -13,8 +13,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned
{
public const int AnimationFrameWidth = 288;
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureProfaned/ProfanedRockGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
@@ -31,7 +29,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
AddMapEntry(new Color(84, 38, 33));
}
public override bool CreateDust(int i, int j, ref int type)
{
@@ -12,8 +12,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned
{
public const int AnimationFrameWidth = 234;
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureProfaned/RunicProfanedBrickGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.FurnitureStratus
{
public class StratusBricks : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureStratus/StratusBricksGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -10,8 +10,6 @@ namespace CalamityMod.Tiles.FurnitureVoid
{
public class SmoothVoidstone : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureVoid/SmoothVoidstoneGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -8,8 +8,6 @@ namespace CalamityMod.Tiles.FurnitureVoid
{
public class VoidstoneSlab : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/FurnitureVoid/VoidstoneSlabGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -12,8 +12,6 @@ namespace CalamityMod.Tiles
{
public class GiantPlanteraBulb : GlowMaskTile
{
public override string GlowMaskAsset => $"{Texture}Glow";
public override void SetupStatic()
{
GlowMaskPaintInteraction = PaintColorTint.None;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Tiles
public bool GlowMaskAffectedByLight = true;
public bool GlowMaskCanBeCulled = true;
public abstract string GlowMaskAsset { get; }
public virtual string GlowMaskAsset => $"{Texture}Glow";
public sealed override void SetStaticDefaults()
{
-2
View File
@@ -11,8 +11,6 @@ namespace CalamityMod.Tiles.Ores
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AuricMine", 3);
public static bool Animate;
public override string GlowMaskAsset => "CalamityMod/Tiles/Ores/AuricOreGlow";
public override void SetupStatic()
{
AnimationFrameHeight = 90;
-2
View File
@@ -12,8 +12,6 @@ namespace CalamityMod.Tiles.Ores
{
public const int AnimationFrameWidth = 234;
public override string GlowMaskAsset => "CalamityMod/Tiles/Ores/PerennialOreGlow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
-2
View File
@@ -11,8 +11,6 @@ namespace CalamityMod.Tiles.Ores
[LegacyName("ChaoticOre")]
public class ScoriaOre : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Ores/ScoriaOreGlow";
public override void SetupStatic()
{
Main.tileLighted[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Plates
{
public class Cinderplate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/CinderplateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Plates
{
public class Elumplate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/ElumplateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -11,8 +11,6 @@ namespace CalamityMod.Tiles.Plates
[LegacyName("Chaosplate")]
public class Havocplate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/HavocplateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Plates
{
public class Navyplate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/NavyplateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Plates
{
public class Onyxplate : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/OnyxplateGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Tiles.Plates
{
public class PlagueContainmentCells : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/Plates/PlagueContainmentCellsGlow";
public override void SetupStatic()
{
Main.tileSolid[Type] = true;
-2
View File
@@ -10,8 +10,6 @@ namespace CalamityMod.Tiles
[LegacyName("ChaoticBrick")]
public class ScoriaBrick : GlowMaskTile
{
public override string GlowMaskAsset => "CalamityMod/Tiles/ScoriaBrickGlow";
int subsheetHeight = 72;
public override void SetupStatic()