Implement some tower achievements

This commit is contained in:
Melledy
2025-12-06 02:01:57 -08:00
parent 5707c1c919
commit dfb93cae4b
7 changed files with 140 additions and 28 deletions

View File

@@ -138,6 +138,14 @@ public class AchievementManager extends PlayerManager implements GameDatabaseObj
}
}
public synchronized void trigger(AchievementCondition condition, int progress) {
this.trigger(condition.getValue(), progress, 0, 0);
}
public synchronized void trigger(AchievementCondition condition, int progress, int param1, int param2) {
this.trigger(condition.getValue(), progress, param1, param2);
}
public synchronized void trigger(int condition, int progress, int param1, int param2) {
// Sanity check
if (progress <= 0) {