Skip to content

Commit 729c6ec

Browse files
authored
Merge pull request #204 from Johann4002herti/main
[Fix]: coins weren't considered for unlocking ships and weapons
2 parents bf3ef80 + f57b380 commit 729c6ec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/dinosaur/dinosaurexploder/utils/ShipUnlockChecker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public ShipUnlockChecker(DataProvider dataProvider) {
4141

4242
public int check(int shipNumber) {
4343
highScore = dataProvider.getHighScore();
44+
totalCoins = dataProvider.getTotalCoins();
4445
checkScoreAndCoins(shipNumber);
4546
return shipNumber;
4647
}

src/main/java/com/dinosaur/dinosaurexploder/utils/WeaponUnlockChecker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public WeaponUnlockChecker(DataProvider dataProvider) {
3333

3434
public int check(int weaponNumber) {
3535
highScore = dataProvider.getHighScore();
36+
totalCoins = dataProvider.getTotalCoins();
3637
checkScoreAndCoins(weaponNumber);
3738
return weaponNumber;
3839
}

0 commit comments

Comments
 (0)