Skip to content

Commit

Permalink
Added cap skill usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Silwhoon committed Feb 10, 2024
1 parent 4c272ff commit 4a066f0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class PyramidCharacterStats {
private int totalMisses;
private int totalCools;
private PyramidRank rank = PyramidRank.C;
private int exp;
private int skillUses;

public PyramidCharacterStats(PyramidDifficulty difficulty) {
Expand Down Expand Up @@ -76,7 +75,7 @@ public boolean canUseSkill() {

public int getMaxSkillUses() {
int total = totalHits + totalCools;
return total / 500;
return Math.min(total / 500, 6); // Capped at 6 skills per PQ
}

public int getAvailableSkillUses() {
Expand Down

0 comments on commit 4a066f0

Please sign in to comment.