mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user