loathers / autoscend

An ascension script for KoLMafia
Other
45 stars 70 forks source link

Using tiny bowler for wall of bones #154

Closed Aeresx closed 4 years ago

Aeresx commented 5 years ago

It should default to magical dragonfish or (if not available) a nondamage familiar.

Log:

Harvesting your garden Scaling the mighty NStower... Shrugging off your buff... Scarysauce removed. Shrugging off your buff... Jalapeño Saucesphere removed. Shrugging off your buff... Spiky Shell removed. Using 1 funky dried mushroom... You acquire an effect: Seeing Colors (10) Finished using 1 funky dried mushroom. Purchasing glittery mascara (1 @ 24)... You spent 24 Meat You acquire an item: glittery mascara Purchases complete. Using 1 glittery mascara... You acquire an effect: Glittering Eyelashes (3) Finished using 1 glittery mascara. Casting Song of Sauce 1 times... You acquire an effect: Song of Sauce (10) Song of Sauce was successfully cast. Casting Carol of the Hells 1 times... You acquire an effect: Carol of the Hells (10) Carol of the Hells was successfully cast. Starting preadventure script... Putting Gafflin' Ginger the Cat Burglar back into terrarium... Taking Baka the XO Skeleton out of terrarium... Maximizing: 5item,meat,0.5initiative,0.1da 1000max,dr,0.5all res,1.5mainstat,mox,-fumble,0.4hp,0.2mp 1000max,3mp regen,0.25spell damage,1.75spell damage percent,2familiar weight,5familiar exp,-equip hewn moon-rune spoon,-equip makeshift garbage shirt,-equip broken champagne bottle,100myst,60spell damage percent,20spell damage,-20ml Maximizing... 480 combinations checked, best score 84,784.60 Wielding Fourth of May Cosplay Saber... Equipment changed. Holding psychic's crystal ball... Equipment changed. Putting on Misty Robe... Equipment changed. Putting on dorky glasses... Equipment changed. Stealing tiny bowler from Grog the Imitation Crab... Unequipping Grog the Imitation Crab... Familiar unequipped. Putting on tiny bowler... Equipment changed. Checkpoints cleared. Pre Adventure at Noob Cave done, beep. About to start a combat indirectly at Noob Cave... (1) accesses required.

[461] Tower Level 3 Encounter: wall of bones Round 0: aeresx wins initiative! autoAdvBypass has encountered a combat! (param: 'auto_combatHandler') nextAdventure => Noob Cave

[461] Noob Cave Encounter: wall of bones Round 0: aeresx loses initiative! auto_combatHandler: 0 Round 1: aeresx casts SAUCEGEYSER! Round 2: wall of bones takes 3732 damage. Round 2: Baka pulls out a tiny bowling ball and hurls it into the center of the group, sparing nobody and dealing 82 damage. Round 2: wall of bones takes 82 damage. Round 2: wall of bones heals 3814 hit points. Round 2: You lose 43 hit points Round 2: aeresx casts SAUCEGEYSER! Round 3: wall of bones takes 3750 damage. Round 3: Baka pulls out a tiny bowling ball and hurls it into the center of the group, sparing nobody and dealing 91 damage. Round 3: wall of bones takes 91 damage. Round 3: wall of bones heals 3841 hit points. Round 3: You lose 127 hit points Round 3: aeresx casts SAUCEGEYSER! Round 4: wall of bones takes 3750 damage. Round 4: Baka pulls out a tiny bowling ball and hurls it into the center of the group, sparing nobody and dealing 91 damage. Round 4: wall of bones takes 91 damage. Round 4: wall of bones heals 3841 hit points. Round 4: You lose 212 hit points Health fell below 84. Auto-abort triggered. You're on your own, partner. Click here to continue in the relay browser.

macgregor commented 5 years ago

Pretty sure thats the mafia maximizer equipping the tiny bowler.

https://github.com/Loathing-Associates-Scripting-Society/autoscend/blob/145a1cea6b6fb5c2169b5666bee0fe002581c06c/RELEASE/scripts/autoscend/auto_pre_adv.ash#L332-L336

    equipMaximizedGear(); // prints out the "Maximizing: 5item,meat,..." line
    if(useMaximizeToEquip())
    {
        cli_execute("checkpoint clear"); // prints the "Checkpoints cleared." line
    }

Both of which happen after we've unequipped damaging familiar equipment before trying to do the wall of bones fight (https://github.com/Loathing-Associates-Scripting-Society/autoscend/blob/145a1cea6b6fb5c2169b5666bee0fe002581c06c/RELEASE/scripts/autoscend.ash#L4714).

Fixing it might be a little trickier than identifying. Need pre-adv to be aware of blacklisted equipment/familiars I suppose...