mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-22 17:24:45 +01:00
Implement a couple more Monolith achievements
This commit is contained in:
@@ -129,6 +129,9 @@ public class StarTowerPotentialCase extends StarTowerBaseCase {
|
||||
return;
|
||||
}
|
||||
|
||||
// Achievement
|
||||
this.triggerBonusLevelAchievement(potential);
|
||||
|
||||
// Add potential
|
||||
var change = this.getGame().addItem(potential.getId(), potential.getLevel());
|
||||
|
||||
@@ -143,6 +146,21 @@ public class StarTowerPotentialCase extends StarTowerBaseCase {
|
||||
}
|
||||
}
|
||||
|
||||
private void triggerBonusLevelAchievement(StarTowerPotentialInfo potential) {
|
||||
// Check if potential is lucky (+! or more levels)
|
||||
if (potential.getLevel() <= 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.getGame().getPotentials().containsKey(charId)) {
|
||||
// Enhancing potentials
|
||||
this.getGame().getAchievementManager().trigger(AchievementCondition.TowerSpecificPotentialLuckyTotal, 1);
|
||||
} else {
|
||||
// Adding new potential
|
||||
this.getGame().getAchievementManager().trigger(AchievementCondition.TowerSpecificPotentialBonusTotal, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Proto
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user