Visible costing in many places

This commit is contained in:
2025-02-22 11:44:10 -08:00
parent 258795d76c
commit ddca881b36
7 changed files with 66 additions and 8 deletions

View File

@ -274,6 +274,18 @@ export class PlayerProgress {
}
return ItemStage.Untouched;
}
anyAffordableSkillsAtMinimum() {
let skills = this.getAvailableSkills();
for (let skill of skills.values()) {
if (getSkills().isAtMinimum(skill)) {
if (getPlayerProgress().getExperience() > getSkills().computeCost(skill)) {
return true;
}
}
}
return false;
}
}
let active: PlayerProgress | null = null;