Example #1
0
        public override void PostDrawTiles()
        {
            if (WorldGen.InWorld((int)Main.LocalPlayer.Center.X / 16, (int)Main.LocalPlayer.Center.Y / 16))
            {
                Tile tile = Framing.GetTileSafely((int)Main.LocalPlayer.Center.X / 16, (int)Main.LocalPlayer.Center.Y / 16);

                if (tile != null && cathedralOverlay != null)
                {
                    cathedralOverlay.fade =
                        tile.wall == WallType <AuroraBrickWall>() &&
                        !Main.LocalPlayer.GetModPlayer <StarlightPlayer>().trueInvisible;

                    cathedralOverlay.Draw();
                }
            }
        }