Skip to content

Commit

Permalink
fix orb counts in daily history
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jul 13, 2024
1 parent febeb23 commit ee93da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layers/DailyHistory/DailyCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void DailyCell::loadFromData(CCObject* object) {
orbSprite->setID("orb-sprite"_spr);
this->m_mainLayer->addChild(orbSprite);

int orbsMax = (GSM->getAwardedCurrencyForLevel(level) * 125) / 100;
int orbsCollectible = GSM->getBaseCurrencyForLevel(level);
int orbsMax = (GSM->getBaseCurrencyForLevel(level) * 125) / 100;
int orbsCollectible = GSM->getAwardedCurrencyForLevel(level);
auto orb = CCLabelBMFont::create(CCString::createWithFormat("%i/%i", orbsCollectible, orbsMax)->getCString(), "bigFont.fnt");
if(orbsCollectible == orbsMax){
orb = CCLabelBMFont::create(CCString::createWithFormat("%i", orbsCollectible)->getCString(), "bigFont.fnt");
Expand Down

0 comments on commit ee93da0

Please sign in to comment.