Skip to content

Commit

Permalink
Added shadow to boss' name in raidbosslist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjasoturi committed Apr 17, 2024
1 parent e9ee40a commit 7659df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logic/createRaidBossList.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function createRaidBossList() {
$levelList = '(' . implode(',', $config->RAID_BOSS_LIST_RAID_LEVELS). ')';
$q = my_query('
SELECT
pokedex_id, pokemon_form_id, date_start, date_end,
pokedex_id, pokemon_form_id, date_start, date_end, raid_level,
CONCAT(DATE_FORMAT(date_start,"%d%m%y%k"), DATE_FORMAT(date_end,"%d%m%y%k")) AS arrkey,
CASE WHEN date(date_start) = date(date_end) THEN 1 ELSE 0 END AS sameDay
FROM raid_bosses
Expand All @@ -45,6 +45,7 @@ function createRaidBossList() {
$list .= PHP_EOL . '- ';
foreach($tempRow as $num => $row) {
$pokemonName = get_local_pokemon_name($row['pokedex_id'], $row['pokemon_form_id'], $config->LANGUAGE_PUBLIC);
if(in_array($row['raid_level'], RAID_LEVEL_SHADOW)) $pokemonName .= ' ' . getPublicTranslation('shadow');
if($num != 0) $list .= ', ';
$list .= $pokemonName;
}
Expand Down

0 comments on commit 7659df0

Please sign in to comment.