diff --git a/src/challenges/game_slot.cpp b/src/challenges/game_slot.cpp index dc80341c2..2e8a7c6a3 100644 --- a/src/challenges/game_slot.cpp +++ b/src/challenges/game_slot.cpp @@ -67,17 +67,17 @@ void GameSlot::computeActive() if (i->second->isSolved(RaceManager::RD_HARD)) { - m_points += 10; + m_points += CHALLENGE_POINTS[RaceManager::RD_HARD]; m_hard_challenges++; } else if (i->second->isSolved(RaceManager::RD_MEDIUM)) { - m_points += 9; + m_points += CHALLENGE_POINTS[RaceManager::RD_MEDIUM]; m_medium_challenges++; } else if (i->second->isSolved(RaceManager::RD_EASY)) { - m_points += 8; + m_points += CHALLENGE_POINTS[RaceManager::RD_EASY]; m_easy_challenges; } } diff --git a/src/challenges/game_slot.hpp b/src/challenges/game_slot.hpp index be19c2a56..f790c6384 100644 --- a/src/challenges/game_slot.hpp +++ b/src/challenges/game_slot.hpp @@ -31,6 +31,8 @@ class ChallengeData; class Challenge; class XMLWriter; +const int CHALLENGE_POINTS[] = { 8, 9, 10 }; + /** * \ingroup challenges * This class contains the progression through challenges for one game slot diff --git a/src/states_screens/feature_unlocked.cpp b/src/states_screens/feature_unlocked.cpp index e5aad7c11..b779dc226 100644 --- a/src/states_screens/feature_unlocked.cpp +++ b/src/states_screens/feature_unlocked.cpp @@ -21,6 +21,7 @@ #include #include "challenges/challenge_data.hpp" +#include "challenges/game_slot.hpp" #include "challenges/unlock_manager.hpp" #include "guiengine/engine.hpp" #include "guiengine/scalable_font.hpp" @@ -146,13 +147,16 @@ void FeatureUnlockedCutScene::addTrophy(RaceManager::Difficulty difficulty) switch (difficulty) { case RaceManager::RD_EASY: - msg = _("You completed the easy challenge!"); + msg = _("You completed the easy challenge! This trophy is worth %i points", + CHALLENGE_POINTS[RaceManager::RD_EASY]); break; case RaceManager::RD_MEDIUM: - msg = _("You completed the intermediate challenge!"); + msg = _("You completed the intermediate challenge! This trophy is worth %i points", + CHALLENGE_POINTS[RaceManager::RD_MEDIUM]); break; case RaceManager::RD_HARD: - msg = _("You completed the difficult challenge!"); + msg = _("You completed the difficult challenge! This trophy is worth %i points", + CHALLENGE_POINTS[RaceManager::RD_HARD]); break; default: assert(false); @@ -541,7 +545,7 @@ void FeatureUnlockedCutScene::onUpdate(float dt, static const int h = irr_driver->getFrameSize().Height; const irr::video::SColor color(255, 255, 255, 255); - GUIEngine::getTitleFont()->draw(_("Feature Unlocked"), + GUIEngine::getTitleFont()->draw(_("Challenge Completed"), core::rect< s32 >( 0, 0, w, h/10 ), color, true/* center h */, true /* center v */ );