added achievement banana lover
This commit is contained in:
parent
3c1a7b1c7b
commit
8f55faeed3
@ -21,5 +21,9 @@
|
||||
title="Arch Enemy" description="Hit the same kart at least 5 times in one race">
|
||||
<hit goal="5"/>
|
||||
</achievement>
|
||||
<achievement id="4" check-type="all-at-least" reset-after-race="yes"
|
||||
title="Banana Lover" description="Take at least 5 bananas in one race">
|
||||
<banana goal="5"/>
|
||||
</achievement>
|
||||
</achievements>
|
||||
|
||||
|
@ -137,7 +137,7 @@ bool AchievementInfo::checkCompletion(Achievement * achievement) const
|
||||
return false;
|
||||
}
|
||||
default:
|
||||
Log::fatal("AchievementInfo", "Missing check for tpye %d.",
|
||||
Log::fatal("AchievementInfo", "Missing check for type %d.",
|
||||
m_check_type);
|
||||
} // switch
|
||||
|
||||
|
@ -46,7 +46,8 @@ public:
|
||||
ACHIEVE_FIRST = ACHIEVE_COLUMBUS,
|
||||
ACHIEVE_STRIKE = 2,
|
||||
ACHIEVE_ARCH_ENEMY = 3,
|
||||
ACHIEVE_LAST = ACHIEVE_ARCH_ENEMY
|
||||
ACHIEVE_BANANA = 4,
|
||||
ACHIEVE_LAST = ACHIEVE_BANANA
|
||||
};
|
||||
/** Achievement check type:
|
||||
* ALL_AT_LEAST: All goal values must be reached (or exceeded).
|
||||
|
@ -19,7 +19,9 @@
|
||||
#include "items/attachment.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include "achievements/achievement_info.hpp"
|
||||
#include "audio/sfx_base.hpp"
|
||||
#include "config/player_manager.hpp"
|
||||
#include "config/stk_config.hpp"
|
||||
#include "config/user_config.hpp"
|
||||
#include "graphics/explosion.hpp"
|
||||
@ -223,6 +225,7 @@ void Attachment::clear()
|
||||
*/
|
||||
void Attachment::hitBanana(Item *item, int new_attachment)
|
||||
{
|
||||
PlayerManager::increaseAchievement(AchievementInfo::ACHIEVE_BANANA,"banana",1);
|
||||
//Bubble gum shield effect:
|
||||
if(m_type == ATTACH_BUBBLEGUM_SHIELD ||
|
||||
m_type == ATTACH_NOLOK_BUBBLEGUM_SHIELD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user