TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UpdateStars()

static void Terraria.Star.UpdateStars ( )
inlinestatic

Definition at line 239 of file Star.cs.

240 {
241 if (!Main.dayTime)
242 {
243 dayCheck = false;
244 }
245 else if (!dayCheck && Main.time >= 27000.0)
246 {
247 for (int i = 0; i < Main.numStars; i++)
248 {
249 if (Main.star[i].hidden)
250 {
251 SpawnStars(i);
252 }
253 }
254 }
255 for (int j = 0; j < Main.numStars; j++)
256 {
257 Main.star[j].Update();
258 }
259 }
static void SpawnStars(int s=-1)
Definition Star.cs:84
static bool dayCheck
Definition Star.cs:31

References Terraria.Star.dayCheck, Terraria.Main.dayTime, Terraria.Main.numStars, Terraria.Star.SpawnStars(), Terraria.Main.star, and Terraria.Main.time.

Referenced by Terraria.Main.DoUpdate(), and Terraria.Main.DrawMenu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: