Bug - Not A Bug Modifier maximizer not correctly working for elemental resistance

Zaranthos

Member
KoLmafia 14.8 (latest daily build)
Windows 7 64 bit Java 32 bit 6 update 23

running autobasement.ash which I believe just calls modifier maximizer to optimize for elemental resistance but fails
Basement level 4081: Hot & Spooky Elemental Resistance Test
Maximizing...
38042 combinations checked, best score 2401.71
Putting on plexiglass pith helmet...
Equipment changed.
Wielding Brimstone Bludgeon...
Equipment changed.
Holding Brimstone Bunker...
Equipment changed.
Putting on Chester's muscle shirt...
Equipment changed.
Putting on sugar shorts...
Equipment changed.
Putting on Talisman of Baio...
Equipment changed.
Putting on Talisman of Baio...
Equipment changed.
Putting on Talisman of Baio...
Equipment changed.
Putting on Brimstone Bludgeon...
Equipment changed.
Using soft green whatever...
Stenchform removed.
Using 1 phial of hotness...
You acquire an effect: Hotform (duration: 10 Adventures)
Finished using 1 phial of hotness.
Maximizing...
1564 combinations checked, best score 2401.71
Using 1 seal-brain elixir...
You acquire an effect: Sealed Brain (duration: 20 Adventures)
Finished using 1 seal-brain elixir.
Using 1 Mick's IcyVapoHotness Rub...
You acquire an effect: Extreme Muscle Relaxation (duration: 10 Adventures)
Finished using 1 Mick's IcyVapoHotness Rub.
Using 1 black facepaint...
You acquire an effect: Black Face (duration: 10 Adventures)
Finished using 1 black facepaint.
Using 1 fish-liver oil...
You acquire an effect: Fishy Fortification (duration: 5 Adventures)
Finished using 1 fish-liver oil.
Using 1 pirate brochure...
You acquire an effect: Muscularrr (duration: 10 Adventures)
Finished using 1 pirate brochure.
unable to pass elemental test, quitting
Basement sucessfully automated for 34 out of 333 adventures.
Elemental Resist
Current: +5 hot 100% (1 hp), +5 spooky 48% (283,787 hp)
Needed: 77% average resistance or Hotform

Manually equipping just a Dallas shield is enough to pass the test.
Holding Dallas Dynasty Falcon Crest shield...
Equipment changed.
Elemental Resist
Current: +10 hot 100% (1 hp), +10 spooky 73% (146,900 hp)
Needed: 78% average resistance or Hotform
 

Theraze

Active member
But it's working correctly... it needs 77% elemental resistance and only reaches 48% final. Even in your example, it only gets to 73% of the 78% 'needed' so it still fails...

The bottom line is that the request in autobasement isn't always the best. But that's a script coding error, not a modifier maximizer bug.
 

Winterbay

Active member
Autobasement calls the maximizer with "0.5 Ele1, 0.5 Ele2, 0.01 hp, switch parrot" (if you have a parrot). It then checks to see if you can pass and if you can't it uses a vial and then maximizes for the other element only (+some hp) which I think is probably your best bet. It may be that the formula for damage taken from a basement level isn't as good as it could be (the wiki states it as "roughly 4.5*level^1.4 and at that point even a small error would have a rather big effect).

I will admit that the maximizer calls for some levels are not the best but I feel that the elemental tests are pretty good...
 

Theraze

Active member
What I'm saying though is that the fact that 50 hp is more valuable than another point of elemental resistance is a script coding thing, not a modifier maximizer flaw. :) If you really want the elements to be more valued, raise the valuation. :)
 

Veracity

Developer
Staff member
It is clear, however, that the modifier maximizer is behaving as expected, given what it was told to do. This is a script issue. Closing.
 
Top