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

◆ PlayerMeetsEnvironmentConditions()

static bool Terraria.Recipe.PlayerMeetsEnvironmentConditions ( Player player,
Recipe tempRec )
inlinestaticprivate

Definition at line 546 of file Recipe.cs.

547 {
548 bool num = !tempRec.needWater || player.adjWater || player.adjTile[172];
549 bool flag = !tempRec.needHoney || tempRec.needHoney == player.adjHoney;
550 bool flag2 = !tempRec.needLava || tempRec.needLava == player.adjLava;
551 bool flag3 = !tempRec.needSnowBiome || player.ZoneSnow;
552 bool flag4 = !tempRec.needGraveyardBiome || player.ZoneGraveyard;
553 bool flag5 = !tempRec.needEverythingSeed || (Main.remixWorld && Main.getGoodWorld);
554 return num && flag && flag2 && flag3 && flag4 && flag5;
555 }

References Terraria.Player.adjHoney, Terraria.Player.adjLava, Terraria.Player.adjTile, Terraria.Main.getGoodWorld, Terraria.Player.ZoneGraveyard, and Terraria.Player.ZoneSnow.

Referenced by Terraria.Recipe.FindRecipes().