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

◆ ProbeWeather()

void Terraria.GameContent.UI.EmoteBubble.ProbeWeather ( List< int > list,
Player plr )
inlineprivate

Definition at line 353 of file EmoteBubble.cs.

354 {
355 if (Main.cloudBGActive > 0f)
356 {
357 list.Add(96);
358 }
359 if (Main.cloudAlpha > 0f)
360 {
361 if (!Main.dayTime)
362 {
363 list.Add(5);
364 }
365 list.Add(4);
366 if (plr.ZoneSnow)
367 {
368 list.Add(98);
369 }
370 if (plr.position.X < 4000f || (plr.position.X > (float)(Main.maxTilesX * 16 - 4000) && (double)plr.position.Y < Main.worldSurface / 16.0))
371 {
372 list.Add(97);
373 }
374 }
375 else
376 {
377 list.Add(95);
378 }
379 if (plr.ZoneHallow)
380 {
381 list.Add(6);
382 }
383 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), Terraria.Main.cloudAlpha, Terraria.Main.cloudBGActive, Terraria.Main.dayTime, System.list, Terraria.Main.maxTilesX, and Terraria.Main.worldSurface.

Referenced by Terraria.GameContent.UI.EmoteBubble.PickNPCEmote().