Bug - Fixed r14834 - maximize "-mana cost,-tie" has issue with watches

Fluxxdog

Active member
Code:
> ash foreach s in $slots[] print(s+":"+equipped_item(s));

hat:warbear foil hat
weapon:remorseless knife
off-hand:tailbone shield
back:Rain-Doh red wings
shirt:Hodgman's disgusting technicolor overcoat
pants:muddy skirt
[COLOR="#FF0000"]acc1:Mudflap-Girl Ring
acc2:The Ring
acc3:Ice-Cold Beer Ring[/COLOR]
familiar:none
crown-of-thrones:none
sticker1:none
sticker2:none
sticker3:none
card-sleeve:Alice's Army Foil Horseman
folder1:folder (rainbow unicorn)
folder2:folder (Knight Writer)
folder3:folder (heavy metal)
folder4:none
folder5:none
buddy-bjorn:none
fakehand:none
Returned: void

> maximize -mana cost,-tie,dump

Maximizing...
SLOT 0
[warbear foil hat, Crown of Thrones]
SLOT 1
[plastic nunchaku]
SLOT 2
[tailbone shield]
SLOT 3
[Rain-Doh red wings, Buddy Bjorn]
SLOT 4
[Hodgman's disgusting technicolor overcoat]
SLOT 5
[muddy skirt]
SLOT 6
[plexiglass pocketwatch, stainless steel solitaire, solid baconstone earring]
SLOT 7
[battery-powered drill]
SLOT 8
[iFlail]
SLOT 9
[(none)]
SLOT 10
[(none)]
SLOT 11
[(none)]
SLOT 12
[grandfather watch]
SLOT 13
[remorseless knife]
SLOT 14
[]
SLOT 15
[]
SLOT 16
[]
SLOT 17
[]
SLOT 18
[(none)]
SLOT 19
[(none)]
SLOT 20
[(none)]
Outfits [Vile Vagrant Vestments]
200 combinations checked, best score 3.00
Putting on plexiglass pocketwatch...
Equipment changed.
Putting on grandfather watch...
Equipment changed.
Taking off Ice-Cold Beer Ring...
Equipment changed.

> ash foreach s in $slots[] print(s+":"+equipped_item(s));

hat:warbear foil hat
weapon:remorseless knife
off-hand:tailbone shield
back:Rain-Doh red wings
shirt:Hodgman's disgusting technicolor overcoat
pants:muddy skirt
[COLOR="#FF0000"]acc1:plexiglass pocketwatch
acc2:grandfather watch
acc3:none
[/COLOR]familiar:none
crown-of-thrones:none
sticker1:none
sticker2:none
sticker3:none
card-sleeve:Alice's Army Foil Horseman
folder1:folder (rainbow unicorn)
folder2:folder (Knight Writer)
folder3:folder (heavy metal)
folder4:none
folder5:none
buddy-bjorn:none
fakehand:none
Returned: void
I have no idea why it would unequip the Ice-Cold Beer Ring and equip the grandfather watch. when I specify -tie. The plexiglass pocketwatch (which is not a watch, I know) seems like the right answer, but the other accessories should be left alone.
 
I eventually managed to duplicate this, though I had to throw a huge number of items in the closet to not use!

It appears to be an interaction between not considering current items and -tie. Perhaps -tie should make +current implicit to avoid these issues. Does "maximize -mana cost,-tie +current" do what you'd expect?

Spotting another issue too, it looks like we only consider Outfits if they are in inventory, not if they are worn. It kept wanting to take my Oscus' Pelt on and off if I ran it repeatedly.
 
Back
Top