From 8c714271b1850b71252d2b84b418c130d36d71e3 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 21 Sep 2016 23:56:33 +0100 Subject: [PATCH] Multi-emotion msg fix comma --- src/Models/Game.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ."."; } }