Punctuation in hint

This commit is contained in:
Ruben 2016-09-04 17:39:04 +01:00
parent 5df128ca38
commit 222eb57de3

View file

@ -217,7 +217,7 @@ class Game
$exaggerate = ($target->getScore() - $hit->getEmotions()->getEmotionScore($emotion)) > 20 ? "only " : ""; $exaggerate = ($target->getScore() - $hit->getEmotions()->getEmotionScore($emotion)) > 20 ? "only " : "";
$exaggerate = ($target->getScore() - $hit->getEmotions()->getEmotionScore($emotion)) < -20 ? "a whopping " : $only; $exaggerate = ($target->getScore() - $hit->getEmotions()->getEmotionScore($emotion)) < -20 ? "a whopping " : $only;
$text = "When you had to feel " $text = "When you had to feel "
. $target->getScore() ."% " . $emotion->getName() . $target->getScore() ."% " . $emotion->getName()
." you showed " . $exaggerate . round($hit->getEmotions()->getEmotionScore($emotion),3) ."%."; ." you showed " . $exaggerate . round($hit->getEmotions()->getEmotionScore($emotion),3) ."%.";
$betterHit = Application::getInstance()->getEm()->getRepository(Hit::class)->getBetterHit($lowest_scoring_hit); $betterHit = Application::getInstance()->getEm()->getRepository(Hit::class)->getBetterHit($lowest_scoring_hit);
@ -236,7 +236,7 @@ class Game
if($diffExpression) { if($diffExpression) {
$diffExpressionText = $betterHit->getExpressions()::$EXPRESSIONS_2ND_PERSON[$diffExpression]; $diffExpressionText = $betterHit->getExpressions()::$EXPRESSIONS_2ND_PERSON[$diffExpression];
$text .= " To show your empathy, you have to " . $diffExpressionText ." " . $diff . "% " . $diffText; $text .= " To show your empathy, you have to " . $diffExpressionText ." " . $diff . "% " . $diffText .".";
} }
} }