blob: 0a0833a07f4038771d4d69cb04e689dbd5b09dd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "Game/DLC/aocChampionBalladManager.h"
namespace uking {
SEAD_SINGLETON_DISPOSER_IMPL(ChampionBalladManager)
void ChampionBalladManager::init() {
mBlightCounts = {};
}
void ChampionBalladManager::setBlightRematchCount(s8 count, BlightType blight_type) {
if (count >= 0 && blight_type <= BlightType::Water) {
if (count >= 30) {
count = 30;
}
mBlightCounts[u32(blight_type)] = count;
}
}
void ChampionBalladManager::incrementBlightRematchCount(BlightType blight_type) {
if (blight_type <= BlightType::Water) {
s8 count = mBlightCounts[u32(blight_type)] + 1;
setBlightRematchCount(count, blight_type);
}
}
s8 ChampionBalladManager::getBlightRematchCount(BlightType blight_type) const {
if (blight_type <= BlightType::Water)
return mBlightCounts[u32(blight_type)];
return 0;
}
} // namespace uking
|