mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-24 19:54:38 +00:00
Update UIScene_InGameHostOptionsMenu
Thanks Hinder
This commit is contained in:
@@ -4812,4 +4812,18 @@ bool Level::canCreateMore(eINSTANCEOF type, ESPAWN_TYPE spawnType)
|
||||
}
|
||||
// 4J: Interpret 0 as no limit
|
||||
return max == 0 || count < max;
|
||||
}
|
||||
|
||||
int Level::getWeatherState()
|
||||
{
|
||||
float rainLevel = oRainLevel + (rainLevel - oRainLevel);
|
||||
float thunderLevel = oThunderLevel + (thunderLevel - oThunderLevel);
|
||||
|
||||
if ((thunderLevel * rainLevel) > 0.9f)
|
||||
return 2; // Thunder
|
||||
|
||||
if (rainLevel > 0.2f)
|
||||
return 1; // Rain
|
||||
|
||||
return 0; // Clear
|
||||
}
|
||||
Reference in New Issue
Block a user