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

◆ GetLiquidChangeType()

static TileChangeType Terraria.WorldGen.GetLiquidChangeType ( int liquidType,
int otherLiquidType )
inlinestatic

Definition at line 1449 of file WorldGen.cs.

1450 {
1451 if ((liquidType == 0 && otherLiquidType == 1) || (liquidType == 1 && otherLiquidType == 0))
1452 {
1453 return TileChangeType.LavaWater;
1454 }
1455 if ((liquidType == 0 && otherLiquidType == 2) || (liquidType == 2 && otherLiquidType == 0))
1456 {
1457 return TileChangeType.HoneyWater;
1458 }
1459 if ((liquidType == 1 && otherLiquidType == 2) || (liquidType == 2 && otherLiquidType == 1))
1460 {
1461 return TileChangeType.HoneyLava;
1462 }
1463 if ((liquidType == 0 && otherLiquidType == 3) || (liquidType == 3 && otherLiquidType == 0))
1464 {
1465 return TileChangeType.ShimmerWater;
1466 }
1467 if ((liquidType == 1 && otherLiquidType == 3) || (liquidType == 3 && otherLiquidType == 1))
1468 {
1469 return TileChangeType.ShimmerLava;
1470 }
1471 if ((liquidType == 2 && otherLiquidType == 3) || (liquidType == 3 && otherLiquidType == 2))
1472 {
1473 return TileChangeType.ShimmerHoney;
1474 }
1475 return TileChangeType.None;
1476 }

Referenced by Terraria.Liquid.LiquidCheck(), and Terraria.WorldGen.PlaceLiquid().