Skip to content

Commit

Permalink
Update game.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored Mar 28, 2024
1 parent de84832 commit fdfdb9b
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/game/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,30 +948,25 @@ class Game {
void addImproveSave(uint8_t x) {
if (x == 1) {
totalImproveSave++;
}
elseif(x == 2) {
} else if (x == 2) {
totalImproveSaveStash++;
}
elseif(x == 3) {
} else if (x == 3) {
totalImproveSaveSpells++;
}
elseif(x == 4) {
} else if (x == 4) {
totalImproveSaveKills++;
}
}
int32_t getImproveSave(uint8_t x) {
if (x == 1) {
return totalImproveSave;
}
elseif(x == 2) {
} else if (x == 2) {
return totalImproveSaveStash;
}
elseif(x == 3) {
} else if (x == 3) {
return totalImproveSaveSpells;
}
elseif(x == 4) {
} else if (x == 4) {
return totalImproveSaveKills;
}
return 0;
}

uint32_t totalImproveSave = 0;
Expand Down

0 comments on commit fdfdb9b

Please sign in to comment.