Add option to exclude the special icons

This commit is contained in:
Michiel Sikma
2016-12-16 15:01:27 +01:00
parent dac78b84b8
commit 45c0b609c4
4 changed files with 13 additions and 3 deletions

View File

@@ -575,8 +575,10 @@ class IconStack
}
// Add the special items (e.g. egg, unknown).
$special_items = $this->get_special_stack_items();
$this->pkmn_stack = array_merge($this->pkmn_stack, $special_items);
if (Settings::get('include_special_icons')) {
$special_items = $this->get_special_stack_items();
$this->pkmn_stack = array_merge($this->pkmn_stack, $special_items);
}
}
/**