Add a message for the ball
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -299,13 +299,14 @@ void RubberBall::init(const XMLNode &node, scene::IMesh *bowling)
|
||||
*/
|
||||
const core::stringw RubberBall::getHitString(const Kart *kart) const
|
||||
{
|
||||
const int COUNT = 1;
|
||||
const int COUNT = 2;
|
||||
RandomGenerator r;
|
||||
switch (r.get(COUNT))
|
||||
{
|
||||
//I18N: shown when a player is hit by a rubber ball. %1 is the
|
||||
// attacker, %0 is the victim.
|
||||
case 0: return _LTR("%s is being bounced around.");
|
||||
case 1: return _LTR("Fetch the ball, %0!");
|
||||
default:assert(false); return L""; // avoid compiler warning
|
||||
}
|
||||
} // getHitString
|
||||
|
||||
Reference in New Issue
Block a user