Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
19 lines
479 B
C#
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());
|
|
}
|
|
}
|
|
}
|
|
}
|