()
| 181 | } |
| 182 | |
| 183 | private openBox(): void{ |
| 184 | // The box is now opened |
| 185 | Saving.saveBool("candyBoxBoxOpened", true); |
| 186 | |
| 187 | // The tabs are unlocked |
| 188 | Saving.saveBool("statusBarUnlockedInsideYourBox", true); |
| 189 | Saving.saveBool("statusBarUnlockedTheComputer", true); |
| 190 | Saving.saveBool("statusBarUnlockedTheArena", true); |
| 191 | this.getGame().updateStatusBar(true); |
| 192 | |
| 193 | // Update |
| 194 | this.update(); |
| 195 | this.getGame().updatePlace(); |
| 196 | } |
| 197 | |
| 198 | private requestStatusBarUnlocked(): void{ |
| 199 | if(this.getGame().getCandies().getCurrent() >= 30){ |
nothing calls this directly
no test coverage detected