Multi-emotion msg fix comma

This commit is contained in:
Ruben 2016-09-21 23:56:33 +01:00
parent d55fda14fb
commit 8c714271b1
1 changed files with 3 additions and 1 deletions

View File

@ -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 .".";
}
}