1
This commit is contained in:
parent
cd5b579a8d
commit
cfb7a838d3
@ -1411,3 +1411,12 @@ float BattleDataContext::GetTotalLucky()
|
|||||||
{
|
{
|
||||||
return total_lucky_;
|
return total_lucky_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BattleDataContext::UseItem(int item_id)
|
||||||
|
{
|
||||||
|
for (auto& tuple : items_) {
|
||||||
|
if (std::get<0>(tuple) == item_id) {
|
||||||
|
std::get<2>(tuple) += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -96,6 +96,7 @@ struct BattleDataContext
|
|||||||
bool HasWing();
|
bool HasWing();
|
||||||
bool HideBigEventBox();
|
bool HideBigEventBox();
|
||||||
float GetTotalLucky();
|
float GetTotalLucky();
|
||||||
|
void UseItem(int item_id);
|
||||||
|
|
||||||
int GetHonor();
|
int GetHonor();
|
||||||
int GetElo() { return elo_; }
|
int GetElo() { return elo_; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user