diff --git a/src/Models/Game.php b/src/Models/Game.php index b88374a..f9db698 100644 --- a/src/Models/Game.php +++ b/src/Models/Game.php @@ -268,6 +268,8 @@ class Game $text .= " " . $t->getScore() . "% ". $t->getEmotion()->getName(); } $text .= " you showed" . $exaggerate; + + $i = 0; foreach($targets as $t) { $i++; if($i > 1) { @@ -302,7 +304,7 @@ class Game /* @var $diffExpressionText string */ // $diffExpressionText = $betterHit->getExpressions()::$EXPRESSIONS_2ND_PERSON[$diffExpression]; $diffExpressionText = $betterHit->getExpressions()->get2ndPersonName($diffExpression); - $text .= " To show more empathy, try to " . $diffExpressionText ." " . $diff . "% " . $diffText ."."; + $text .= " To show more empathy, try to " . $diffExpressionText ." " . round($diff, 8) . "% " . $diffText ."."; } }