count amount of 1 squad/solo/duo counts

parent 112b67ad
Pipeline #1399 failed with stages
in 36 seconds
......@@ -53,15 +53,18 @@ class MessageGenerator
$msg .= '<strong>'.$account->gamertag.'</strong> stats have been updated in <strong>'.$gameDifference.'</strong> games.<br />';
if ($old->solo_top1 < $new->solo_top1) {
$msg .= 'Holy shit. We have a new SOLO TOP 1 (#1) FIRST PLACE'.'<br />';
$diff = $new->solo_top1 - $old->solo_top1;
$msg .= 'Holy shit. We have <strong>' . $diff . '</strong> ' . 'new SOLO TOP 1 (#1) FIRST PLACE'.'<br />';
}
if ($old->duo_top1 < $new->duo_top1) {
$msg .= 'Wow. 1st place in DUOS. NICE!!!!'.'<br />';
$diff = $new->duo_top1 - $old->duo_top1;
$msg .= 'Wow. <strong>' . $diff . '</strong> new 1st place in DUOS. NICE!!!!'.'<br />';
}
if ($old->squad_top1 < $new->squad_top1) {
$msg .= 'PANDAS GETTING ANOTHER SQUAD WIN. #PNDA'.'<br />';
$diff = $new->squad_top1 - $old->squad_top1;
$msg .= 'PANDAS GETTING ANOTHER <strong>' . $diff . '</strong> SQUAD WIN(s). #PNDA'.'<br />';
}
$msg .= '<br />Random Stats:<br />';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment