aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorana <ana@ana.st>2021-08-09 15:53:09 +0200
committerana <ana@ana.st>2021-08-09 15:53:09 +0200
commit9170c704f0075e8f9ffe946ed61e8982c9f023c1 (patch)
treec9973e7d0aa938a9fb5f70c868a63540933b4ded
parent911f229c23ec6aadb7ba9a36721d016547f061e1 (diff)
downloadeureka-marks-9170c704f0075e8f9ffe946ed61e8982c9f023c1.tar.gz
fix: correct the spawn finding algorithm
-rw-r--r--src/bestiary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bestiary.js b/src/bestiary.js
index 08b16e1..0bdea04 100644
--- a/src/bestiary.js
+++ b/src/bestiary.js
@@ -94,7 +94,7 @@ function findForecastMatch(forecast, conditions) {
function findNextSpawn(forecast, spawnConditions) {
return forecast.find((f) => {
- return spawnConditions.includes(forecast.currWeather);
+ return spawnConditions.includes(f.currWeather);
});
}