Definition at line 299 of file Cloud.cs.
300 {
301 if (
WorldGen.drunkWorldGenText && Main.gameMenu)
302 {
304 }
306 {
308 }
309 if ((
double)
scale == 1.15)
310 {
312 }
313 float num = 0.13f;
315 {
316 num = 0.07f;
317 float num2 =
scale + 0.15f;
318 num2 = (num2 + 1f) / 2f;
319 num2 *= num2;
320 num *= num2;
321 }
322 else if ((
double)
scale <= 1.15)
323 {
324 num = 0.19f;
325 float num3 =
scale - 0.075f;
326 num3 *= num3;
327 num *= num3;
328 }
329 else
330 {
331 num = 0.23f;
332 float num4 =
scale - 0.15f - 0.075f;
333 num4 *= num4;
334 num *= num4;
335 }
336 position.X += Main.windSpeedCurrent * 9f * num * (float)Main.dayRate;
337 float num5 = Main.screenPosition.X - Main.screenLastPosition.X;
338 position.X -= num5 * num;
339 float num6 = 600f;
340 if (Main.bgAlphaFrontLayer[4] == 1f &&
position.
Y > 200f)
341 {
343 Alpha -= 0.005f * (float)Main.dayRate;
344 }
346 {
348 {
349 Alpha += 0.001f * (float)Main.dayRate;
351 {
353 }
354 }
355 }
356 else
357 {
358 Alpha -= 0.001f * (float)Main.dayRate;
360 {
362 }
363 }
365 {
367 }
369 if ((
double)
rSpeed > 0.0002)
370 {
372 }
373 if ((
double)
rSpeed < -0.0002)
374 {
376 }
378 {
380 }
382 {
384 }
388 if (
type >= 9 &&
type <= 13 && (Main.cloudAlpha > 0f || Main.cloudBGActive >= 1f))
389 {
391 }
392 }
static UnifiedRandom rand
static Asset< Texture2D >[] Cloud
References Terraria.Cloud.active, Terraria.Cloud.Alpha, Terraria.Main.bgAlphaFrontLayer, Terraria.GameContent.TextureAssets.Cloud, Terraria.Main.cloudAlpha, Terraria.Main.cloudBGActive, Terraria.Main.dayRate, Terraria.WorldGen.drunkWorldGenText, Terraria.Main.gameMenu, Terraria.Cloud.height, Terraria.Cloud.kill, Terraria.Cloud.position, Terraria.Cloud.rand, Terraria.Cloud.rotation, Terraria.Cloud.rSpeed, Terraria.Cloud.scale, Terraria.Main.screenLastPosition, Terraria.Main.screenWidth, Terraria.Cloud.type, Terraria.Cloud.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.