Add preset code support to !build and !autobuild

Two new tags have been added for `!autobuild`:
"-nonotes"/"-nn" = Prevents generating sub notes
"-nopotentials"/"-np" = Prevents generating potentials

Example:
`!ab lv20 103 -nn` = Generates a level 20 record, but no sub notes will be generated.
This commit is contained in:
Melledy
2026-04-18 04:15:09 -07:00
parent 58b89ee4a2
commit ea97c091df
5 changed files with 187 additions and 26 deletions
@@ -134,6 +134,10 @@ public class StarTowerBuild implements GameDatabaseObject {
this.preference = state;
Nebula.getGameDatabase().update(this, this.getUid(), "preference", this.isPreference());
}
public void refreshSecondarySkills() {
this.secondarySkills = SecondarySkillDef.calculateSecondarySkills(this.getDiscIds(), this.getSubNoteSkills());
}
// Score
@@ -161,7 +165,7 @@ public class StarTowerBuild implements GameDatabaseObject {
// Check secondary skills
if (this.getSecondarySkills() == null) {
this.secondarySkills = SecondarySkillDef.calculateSecondarySkills(this.getDiscIds(), this.getSubNoteSkills());
this.refreshSecondarySkills();
}
// Add score from secondary skills