Skip to content

Commit 7659df0

Browse files
committed
Added shadow to boss' name in raidbosslist
1 parent e9ee40a commit 7659df0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logic/createRaidBossList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createRaidBossList() {
2222
$levelList = '(' . implode(',', $config->RAID_BOSS_LIST_RAID_LEVELS). ')';
2323
$q = my_query('
2424
SELECT
25-
pokedex_id, pokemon_form_id, date_start, date_end,
25+
pokedex_id, pokemon_form_id, date_start, date_end, raid_level,
2626
CONCAT(DATE_FORMAT(date_start,"%d%m%y%k"), DATE_FORMAT(date_end,"%d%m%y%k")) AS arrkey,
2727
CASE WHEN date(date_start) = date(date_end) THEN 1 ELSE 0 END AS sameDay
2828
FROM raid_bosses
@@ -45,6 +45,7 @@ function createRaidBossList() {
4545
$list .= PHP_EOL . '- ';
4646
foreach($tempRow as $num => $row) {
4747
$pokemonName = get_local_pokemon_name($row['pokedex_id'], $row['pokemon_form_id'], $config->LANGUAGE_PUBLIC);
48+
if(in_array($row['raid_level'], RAID_LEVEL_SHADOW)) $pokemonName .= ' ' . getPublicTranslation('shadow');
4849
if($num != 0) $list .= ', ';
4950
$list .= $pokemonName;
5051
}

0 commit comments

Comments
 (0)