1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
<script>
import { level, paWeather, aWeather, hWeather, pyWeather } from "./stores";
import ew from "./ew";
import { onMount } from "svelte";
import { formatUtc } from "./times";
import { getMatches } from "./bestiary";
import day from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
day.extend(relativeTime);
onMount(async () => {
updateWeatherStores();
});
let date = new Date().getTime() * (1440 / 70);
let matches,
upMatches,
otherMatches,
normalMatches,
pagosForecast,
anemosForecast,
pyrosForecast,
hydatosForecast;
newForecasts();
newMatches();
setInterval(() => {
date = new Date().getTime() * (1440 / 70);
}, 1000);
setInterval(() => {
newForecasts();
newMatches();
}, 300000); // 5 minutes
$: currentEzTime = formatUtc(date);
function updateWeatherStores() {
paWeather.set(ew.forecast(ew.PAGOS_WEATHER));
pyWeather.set(ew.forecast(ew.PYROS_WEATHER));
hWeather.set(ew.forecast(ew.HYDATOS_WEATHER));
aWeather.set(ew.forecast(ew.ANEMOS_WEATHER));
}
function formatWeathers(weathers) {
if (weathers.length === 1) {
return ew.getWeatherName(weathers[0]);
}
return weathers
.map((w, i) => {
if (i + 1 === weathers.length) {
return `and ${ew.getWeatherName(w)}`;
}
return `${ew.getWeatherName(w)}, `;
})
.join("");
}
function newForecasts() {
anemosForecast = ew.forecast(ew.ANEMOS_WEATHER);
pagosForecast = ew.forecast(ew.PAGOS_WEATHER);
pyrosForecast = ew.forecast(ew.PYROS_WEATHER);
hydatosForecast = ew.forecast(ew.HYDATOS_WEATHER);
paWeather.set(pagosForecast);
pyWeather.set(pyrosForecast);
hWeather.set(hydatosForecast);
aWeather.set(anemosForecast);
}
function newMatches() {
let forecast;
if ($level >= 20 && $level < 35) {
forecast = pagosForecast;
} else if ($level >= 35 && $level < 50) {
forecast = pyrosForecast;
} else if ($level >= 50) {
forecast = hydatosForecast;
} else {
forecast = anemosForecast;
}
matches = getMatches(forecast, $level).sort((a, b) => a.level < b.level);
upMatches = matches.filter((m) => m.uptime.isUp);
normalMatches = matches.filter((m) => !m.special);
otherMatches = matches.filter((m) => m.special && !m.uptime.isUp);
}
function formatNextUptime(futures) {
let i;
futures.find((f, idx) => {
if (f) i = idx;
return f;
});
if (i) {
return `in ${day(pagosForecast[i + 1].date).fromNow()}`;
}
return "in the far future";
}
function levelChanged(evt) {
level.set(Number(evt.target.value));
newMatches();
}
</script>
<header>
<ul>
<li><strong>Eureka Mark Tracker</strong></li>
<li>ET: {currentEzTime}</li>
</ul>
</header>
<main class="container">
<div class="pure-g">
<div class="pure-u-3-4">
<h2>
Level: <input
bind:value={$level}
on:change={levelChanged}
type="number"
min="1"
max="60"
/>
</h2>
<h5>matches</h5>
<ul>
{#each upMatches as m (m.name)}
<li>
<em>(Lv{m.level})</em> <strong>{m.name}</strong>
({#if m.mutating}mutates{/if}{#if m.augmenting}augments{/if} in {formatWeathers(
m.uptime.weathers
)})
</li>
{/each}
</ul>
<h5>regular enemies</h5>
<ul>
{#each normalMatches as m (m.name)}
<li><em>(Lv{m.level})</em> <strong>{m.name}</strong></li>
{/each}
</ul>
<h5>special enemies that do not mutate/augment right now</h5>
<ul>
{#each otherMatches as m (m.name)}
<li>
<em>(Lv{m.level})</em> <strong>{m.name}</strong>
({#if m.mutating}mutates{/if}{#if m.augmenting}augments{/if}
{formatNextUptime(m.uptime.futureUptime)})
</li>
{/each}
</ul>
</div>
<div class="pure-u-1-4">
<div class="pure-menu">
<ul class="pure-menu-list">
<li class="pure-menu-item">
Anemos: {anemosForecast[0].weatherName}
</li>
<li class="pure-menu-item">Pagos: {pagosForecast[0].weatherName}</li>
<li class="pure-menu-item">Pyros: {pyrosForecast[0].weatherName}</li>
<li class="pure-menu-item">
Hydatos: {hydatosForecast[0].weatherName}
</li>
</ul>
</div>
<h4>What is this?</h4>
<p>
This is a website to keep track of which monsters in Eureka are mutating
or augmenting right now. Mutating/augmenting massively increases the EXP
yield, and it is therefore preferrable to go after these monsters when
levelling in Eureka.
<br /><br />
Mutation/augmentation requirements are bound by weather, as well as time
of day. I created this so I didn't need to look through various google sheets
and cross-reference with weather forecasts.
</p>
<hr />
<p>
Created by Raiah Belse (Twintania)<br />
<a href="https://git.tilde.institute/anastasie/eureka-marks/">Source</a>
</p>
</div>
</div>
</main>
<style></style>
|