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

◆ starGameMath()

static double Terraria.Main.starGameMath ( double value = 1::0)
inlinestatic

Definition at line 59630 of file Main.cs.

59631 {
59632 if (!starGame)
59633 {
59634 return 1.0;
59635 }
59636 double num = (double)starsHit / 200.0;
59637 if (num > 1.0)
59638 {
59639 num = 1.0;
59640 }
59641 return 1.0 + num * value;
59642 }
static bool starGame
Definition Main.cs:2597
static int starsHit
Definition Main.cs:2599

References Terraria.Main.starGame, Terraria.Main.starsHit, and System.value.

Referenced by Terraria.GameContent.Shaders.SepiaScreenShaderData.Update().