Multi-emotion msg fix comma

This commit is contained in:
Ruben 2016-09-21 23:56:33 +01:00
parent d55fda14fb
commit 8c714271b1

View file

@ -268,6 +268,8 @@ class Game
$text .= " " . $t->getScore() . "% ". $t->getEmotion()->getName(); $text .= " " . $t->getScore() . "% ". $t->getEmotion()->getName();
} }
$text .= " you showed" . $exaggerate; $text .= " you showed" . $exaggerate;
$i = 0;
foreach($targets as $t) { foreach($targets as $t) {
$i++; $i++;
if($i > 1) { if($i > 1) {
@ -302,7 +304,7 @@ class Game
/* @var $diffExpressionText string */ /* @var $diffExpressionText string */
// $diffExpressionText = $betterHit->getExpressions()::$EXPRESSIONS_2ND_PERSON[$diffExpression]; // $diffExpressionText = $betterHit->getExpressions()::$EXPRESSIONS_2ND_PERSON[$diffExpression];
$diffExpressionText = $betterHit->getExpressions()->get2ndPersonName($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 .".";
} }
} }