Implement trainer battles and various changes

Implement trainer battles; add dialogue functionality; add random session seed for predictable random results; remove capitalization from text; add full party heal after every 10 waves
This commit is contained in:
Flashfyre committed 2023-10-18 18:01:15 -04:00
1 parent 75bd40863e
commit 83c70889fc
50 files changed
+1500 -399

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ export function getRandomWeatherType(biome: Biome): WeatherType {
let totalWeight = 0;
weatherPool.forEach(w => totalWeight += w.weight);
const rand = Utils.randInt(totalWeight);
const rand = Utils.randSeedInt(totalWeight);
let w = 0;
for (let weather of weatherPool) {
w += weather.weight;