My current acc1 here is the Cincho de Mayo, which doesn't offer any +adv or +fites. The Counterclockwise Watch is +3 compared to the baywatch, but it suggests replacing acc1 instead of acc3...
I have reproduced this with a test, which is a rarity for maximizer bugs.
Code:
@Test
void suggestsReplacingExistingWatch() {
var cleanups =
new Cleanups(
withEquippableItem("Counterclockwise Watch"), // 10, watch
withEquipped(Slot.ACCESSORY1, "Cincho de Mayo"), // 0, not a watch
withEquipped(Slot.ACCESSORY2, "numberwang"), // 5, not a watch
withEquipped(Slot.ACCESSORY3, "baywatch") // 7, a watch
);
try (cleanups) {
assertTrue(maximize("adv,fites,-tie"));
assertEquals(15, modFor(DoubleModifier.ADVENTURES), 0.01);
assertThat(getBoosts(), not(hasItem(recommendsSlot(Slot.ACCESSORY1))));
assertThat(getBoosts(), not(hasItem(recommendsSlot(Slot.ACCESSORY2))));
assertThat(getBoosts(), hasItem(recommendsSlot(Slot.ACCESSORY3, "Counterclockwise Watch")));
}
}
Last edited: