Definition at line 59644 of file Main.cs.
59645 {
59649 {
59650 num = Utils.Clamp(num, 0, 8);
59651 }
59654 int num3 = (int)(
time / 54000.0 * (
double)(sceneArea.totalWidth + (float)(
value.Width * 2))) -
value.Width;
59657 float rotation = (float)(
time / 54000.0) * 2f - 7.3f;
59658 int num6 = (int)(
time / 32400.0 * (
double)(sceneArea.totalWidth + (float)(
value2.Width * 2))) -
value2.Width;
59661 float num9 = (float)(
time / 32400.0) * 2f - 7.3f;
59663 {
59665 if (
time < 27000.0)
59666 {
59669 }
59670 else
59671 {
59674 }
59676 }
59677 else
59678 {
59680 if (
time < 16200.0)
59681 {
59684 }
59685 else
59686 {
59689 }
59691 }
59695 {
59697 {
59699 if (
rand.Next(60) == 0)
59700 {
59702 {
59703 if (
star[
i].hidden)
59704 {
59705 Star.SpawnStars(
i);
59706 }
59707 }
59708 }
59710 {
59713 }
59714 }
59715 else
59716 {
59718 }
59719 }
59720 else
59721 {
59723 }
59725 {
59727 {
59728 return;
59729 }
59734 {
59736 }
59739 bool flag = false;
59741 {
59743 flag = true;
59744 }
59746 {
59748 flag = true;
59749 }
59750 if (flag)
59751 {
59753 }
59758 }
59760 {
59763 {
59765 }
59769 {
59770 spriteBatch.Draw(
TextureAssets.
SmileyMoon.Value,
position2,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
SmileyMoon.Width(),
TextureAssets.
SmileyMoon.Height()),
moonColor,
num9 / 2f + (
float)
Math.
PI,
new Vector2(
TextureAssets.
SmileyMoon.Width() / 2,
TextureAssets.
SmileyMoon.Width() / 2),
num8,
SpriteEffects.None, 0f);
59771 }
59773 {
59774 spriteBatch.Draw(
TextureAssets.
PumpkinMoon.Value,
position2,
new Microsoft.
Xna.
Framework.
Rectangle(0,
TextureAssets.
PumpkinMoon.Width() *
moonPhase,
TextureAssets.
PumpkinMoon.Width(),
TextureAssets.
PumpkinMoon.Width()),
moonColor,
num9,
new Vector2(
TextureAssets.
PumpkinMoon.Width() / 2,
TextureAssets.
PumpkinMoon.Width() / 2),
num8,
SpriteEffects.None, 0f);
59775 }
59777 {
59778 spriteBatch.Draw(
TextureAssets.
SnowMoon.Value,
position2,
new Microsoft.
Xna.
Framework.
Rectangle(0,
TextureAssets.
SnowMoon.Width() *
moonPhase,
TextureAssets.
SnowMoon.Width(),
TextureAssets.
SnowMoon.Width()),
moonColor,
num9,
new Vector2(
TextureAssets.
SnowMoon.Width() / 2,
TextureAssets.
SnowMoon.Width() / 2),
num8,
SpriteEffects.None, 0f);
59779 }
59780 else
59781 {
59782 spriteBatch.Draw(
TextureAssets.
Moon[num].Value,
position2,
new Microsoft.
Xna.
Framework.
Rectangle(0,
TextureAssets.
Moon[num].Width() *
moonPhase,
TextureAssets.
Moon[num].Width(),
TextureAssets.
Moon[num].Width()),
moonColor,
num9,
new Vector2(
TextureAssets.
Moon[num].Width() / 2,
TextureAssets.
Moon[num].Width() / 2),
num8,
SpriteEffects.None, 0f);
59783 }
59784 }
59791 {
59792 return;
59793 }
59795 {
59797 }
59799 {
59801 {
59802 return;
59803 }
59805 {
59808 if (
time > 53990.0)
59809 {
59811 }
59812 }
59813 else
59814 {
59817 if (
time > 32390.0)
59818 {
59820 }
59821 }
59823 {
59825 }
59827 }
59828 else
59829 {
59831 }
59832 }
static double Pow(double x, double y)
static Asset< Texture2D > Sun3
static Asset< Texture2D > SmileyMoon
static Asset< Texture2D > Sun
static Asset< Texture2D > Sun2
static Asset< Texture2D > PumpkinMoon
static Asset< Texture2D > SnowMoon
static Asset< Texture2D >[] Moon
static SpriteBatch spriteBatch
static bool alreadyGrabbingSunOrMoon
static UnifiedRandom rand
static float ForcedMinimumZoom
References Terraria.Main.alreadyGrabbingSunOrMoon, Terraria.Main.atmo, Terraria.Main.cloudAlpha, Terraria.Main.dayTime, Terraria.WorldGen.drunkWorldGen, Terraria.Main.eclipse, Terraria.Main.ForcedMinimumZoom, Terraria.Main.gameMenu, Terraria.WorldGen.generatingWorld, Terraria.Main.hasFocus, System.Text.RegularExpressions.i, Terraria.GameContent.TextureAssets.Moon, Terraria.Main.moonModY, Terraria.Main.moonPhase, Terraria.Main.moonType, Terraria.Main.mouseLeft, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.Main.numStars, System.Math.PI, Terraria.Main.player, System.Math.Pow(), Terraria.GameContent.TextureAssets.PumpkinMoon, Terraria.Main.pumpkinMoon, Terraria.Main.rand, Terraria.Main.remixWorld, Terraria.WorldGen.remixWorldGen, Terraria.Main.screenWidth, Terraria.GameContent.TextureAssets.SmileyMoon, Terraria.GameContent.TextureAssets.SnowMoon, Terraria.Main.snowMoon, Terraria.Star.SpawnStars(), Terraria.Main.spriteBatch, Terraria.Main.star, Terraria.Main.starGame, Terraria.Main.starsHit, Terraria.GameContent.TextureAssets.Sun, Terraria.GameContent.TextureAssets.Sun2, Terraria.GameContent.TextureAssets.Sun3, Terraria.Main.sunModY, Terraria.Main.time, System.value, and Microsoft.Xna.Framework.Graphics.Vector2.
Referenced by Terraria.Main.DoDraw(), and Terraria.Main.DrawCapture().