Multi-emotion msg fix comma
This commit is contained in:
parent
d55fda14fb
commit
8c714271b1
1 changed files with 3 additions and 1 deletions
|
@ -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 .".";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue