diff --git a/src/data/map.js b/src/data/map.js
index 3cafffc..af824c9 100644
--- a/src/data/map.js
+++ b/src/data/map.js
@@ -458,7 +458,7 @@ async function getRaids(filter) {
const now = new Date();
const starts = new Date(row.raid_battle_timestamp * 1000);
const started = starts < now;
- const startTime = started ? '--' : starts.toLocaleTimeString();
+ const startTime = started ? '--' : utils.toHHMMSS(starts - now);//.toLocaleTimeString();
const ends = new Date(row.raid_end_timestamp * 1000);
const secondsLeft = ends - now;
// Skip raids that have less than 60 seconds remaining.
@@ -473,6 +473,7 @@ async function getRaids(filter) {
(utils.inArray(filter.city, city) || filter.city.toLowerCase() === 'all')) {
const mapLink = util.format(config.google.maps, row.lat, row.lon);
raids.push({
+ DT_RowId: row.id,
pokemon: {
formatted: ` ${name}`,
sort: row.raid_pokemon_id
@@ -490,10 +491,14 @@ async function getRaids(filter) {
sort: level
},
gym_name: `${gym}`,
- team: {
- formatted: teamIcon,
- sort: row.team_id
- },
+ team: teamIcon,
+ form: row.raid_pokemon_form > 0 ? Localizer.instance.getFormName(row.raid_pokemon_form) : '',
+ evolution: row.raid_pokemon_evolution > 0 ? Localizer.instance.getEvolutionName(row.raid_pokemon_evolution) : '',
+ move1: Localizer.instance.getMoveName(row.raid_pokemon_move_1),
+ move2: Localizer.instance.getMoveName(row.raid_pokemon_move_2),
+ costume: row.raid_pokemon_costume ? Localizer.instance.getCostumeName(row.raid_pokemon_costume) : '',
+ gender: Localizer.instance.getGenderName(row.raid_pokemon_gender),
+ cp: (row.raid_pokemon_cp || 0).toLocaleString(),
ex_eligible: ex,
city: city
});
diff --git a/src/services/locale.js b/src/services/locale.js
index 2d4f9cc..6433921 100644
--- a/src/services/locale.js
+++ b/src/services/locale.js
@@ -71,6 +71,34 @@ class Localizer {
return i18n('team_' + teamId);
}
+ getMoveName(moveId) {
+ return i18n('move_' + moveId);
+ }
+
+ getCostumeName(costumeId) {
+ return i18n('costume_' + costumeId);
+ }
+
+ getGenderName(genderId) {
+ return i18n('gender_icon_' + genderId);
+ }
+
+ getEvolutionName(evoId) {
+ return i18n('evo_' + evoId);
+ }
+
+ getFormName(formId) {
+ return i18n('form_' + formId);
+ }
+
+ getWeatherName(weatherId) {
+ return i18n('weather_' + weatherId);
+ }
+
+ getWeatherIcon(weatherId) {
+ return i18n('weather_icon_' + weatherId);
+ }
+
getQuestTask(questId, amount) {
return i18n('quest_' + questId, { amount: amount });
}
diff --git a/src/views/header.mustache b/src/views/header.mustache
index 7322543..17b9098 100644
--- a/src/views/header.mustache
+++ b/src/views/header.mustache
@@ -8,6 +8,7 @@
+
diff --git a/src/views/raids.mustache b/src/views/raids.mustache
index b235b91..d6b7dee 100644
--- a/src/views/raids.mustache
+++ b/src/views/raids.mustache
@@ -101,13 +101,12 @@
| {{Pokemon}} | {{Level}} | {{Starts}} | {{Ends}} | {{Gym Name}} | -{{Team}} | -{{EX-Eligible}} | {{City}} |
|---|