the problem & context

the problem: very minor quality of life thing — i want to flag the decks i'm very close to mastering within the show_needed_nopend function

the solution: make things easier to look at for easier use!

caveats: this is a modification of the show_needed_nopend function, which I take no credit in making. you must have that function installed to use this. you can also adjust this to be based on whatever threshold you want!

the mod

sample output (the starred decks for 17 cards and above):

Untitled

in the show_needed_nopend function find this:

if($low === 0 || $need <= $low){
$diff = implode(', ',$diff);
echo ($all-$need).' - '.$check.': '.$diff.'<br/>';

then you can add another if else statement to echo something different for cards at a certain amount afterward

for the example above i made it this instead

if($low === 0 || $need <= $low){
                    $diff = implode(', ',$diff);
                    if ($need <= 3) {
                    echo '<b>★ '.($all-$need).' - '.$check.': '.$diff.'</b><br/>';
                }
                else {
                    echo ($all-$need).' - '.$check.': '.$diff.'<br/>';
                }

the 3 or less logic statement (≤ = 3) can be changed depending what you want.