159 return Main.bgDelay < 50;
179 if (!flag ||
Main.
rand.Next(maxValue) != 0)
190 float num4 = 2000f / (float)sandTileCount;
191 float value = 3f / num4;
193 int num5 = (int)num4;
195 int num7 = (int)(1000f * num6);
212 float amount = (
value - 0.77f) / 0.23000002f;
214 for (
int i = 0; (float)i < num8; i++)
221 if (
Main.
rand.Next(3) == 0 && num == 1)
223 position.X =
Main.
rand.Next(500) - 500;
225 else if (
Main.
rand.Next(3) == 0 && num == -1)
231 position.Y +=
Main.
rand.NextFloat() * num11 * 0.9f;
234 int num14 = (int)position.
X / 16;
235 int num15 = (int)position.
Y / 16;
240 for (
int j = 0; j < 1; j++)
243 dust.velocity.Y = 2f +
Main.
rand.NextFloat() * 0.2f;
244 dust.velocity.Y *= dust.
scale;
245 dust.velocity.Y *= 0.35f;
246 dust.velocity.X = num3 * 5f +
Main.
rand.NextFloat() * 1f;
247 dust.velocity.X += num3 * num13 * 20f;
248 dust.fadeIn += num13 * 0.2f;
249 dust.velocity *= 1f + num12 * 0.5f;
250 dust.color = weightedRandom;
251 dust.velocity *= 1f + num12;
252 dust.velocity *=
value;
263 num14 = (int)position.
X / 16;
264 num15 = (int)position.
Y / 16;
static float Lerp(float value1, float value2, float amount)
static float Clamp(float value, float min, float max)
static double Abs(double value)
static int Sign(decimal value)
static int SandStormCount
static int NewDust(Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, Color newColor=default(Color), float Scale=1f)
static bool ShouldSandstormDustPersist()
static float IntendedSeverity
const int SANDSTORM_DURATION_MINIMUM
static void ChangeSeverityIntentions()
static void StartSandstorm()
static void HandleEffectAndSky(bool toState)
const int SANDSTORM_DURATION_MAXIMUM
static bool HasSufficientWind()
static void StopSandstorm()
static void UpdateSeverity()
static FilterManager Scene
static OverlayManager Scene
static SkyManager Instance
static SceneMetrics SceneMetrics
static float windSpeedCurrent
static double worldSurface
static bool UseStormEffects
static UnifiedRandom rand
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
void Add(T element, double weight=1.0)
static Vector2 RandomVector2(UnifiedRandom random, float min, float max)
static bool InWorld(int x, int y, int fluff=0)