Skip to content

Commit

Permalink
Call maximizer if we have any nonzero bonuses assigned (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaghetti-squash authored Dec 5, 2023
1 parent 0880b73 commit 06a623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outfit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ export class Outfit {

// Remaining slots are filled by the maximizer
const modes = convertToLibramModes(this.modes);
if (this.modifier.length > 0) {
if (this.modifier.length > 0 || [...this.bonuses].filter(([, value]) => value).length > 0) {
const allRequirements = [
new Requirement(this.modifier, {
preventSlot: [...usedSlots],
Expand Down

0 comments on commit 06a623d

Please sign in to comment.