Update UIScene_InGameHostOptionsMenu

Thanks Hinder
This commit is contained in:
GabsPuNs
2026-05-15 12:32:26 -04:00
parent 09474913a6
commit ef8d24c6a7
7 changed files with 167 additions and 68 deletions

View File

@@ -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
}