Files
CalamityModPublic/Backgrounds/AstralUndergroundBGStyle.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

19 lines
479 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Backgrounds
{
public class AstralUndergroundBGStyle : ModUgBgStyle
{
public override bool ChooseBgStyle() => Main.LocalPlayer.InAstral();
public override void FillTextureArray(int[] textureSlots)
{
for (int i = 0; i <= 3; i++)
{
textureSlots[i] = mod.GetBackgroundSlot("Backgrounds/AstralUG" + i.ToString());
}
}
}
}