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

◆ ProbeBiomes()

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

Definition at line 474 of file EmoteBubble.cs.

475 {
476 if ((double)(plr.position.Y / 16f) < Main.worldSurface * 0.45)
477 {
478 list.Add(22);
479 }
480 else if ((double)(plr.position.Y / 16f) > Main.rockLayer + (double)(Main.maxTilesY / 2) - 100.0)
481 {
482 list.Add(31);
483 }
484 else if ((double)(plr.position.Y / 16f) > Main.rockLayer)
485 {
486 list.Add(30);
487 }
488 else if (plr.ZoneHallow)
489 {
490 list.Add(27);
491 }
492 else if (plr.ZoneCorrupt)
493 {
494 list.Add(26);
495 }
496 else if (plr.ZoneCrimson)
497 {
498 list.Add(25);
499 }
500 else if (plr.ZoneJungle)
501 {
502 list.Add(24);
503 }
504 else if (plr.ZoneSnow)
505 {
506 list.Add(32);
507 }
508 else if ((double)(plr.position.Y / 16f) < Main.worldSurface && (plr.position.X < 4000f || plr.position.X > (float)(16 * (Main.maxTilesX - 250))))
509 {
510 list.Add(29);
511 }
512 else if (plr.ZoneDesert)
513 {
514 list.Add(28);
515 }
516 else
517 {
518 list.Add(23);
519 }
520 }

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

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