loathers / autoscend

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

L12 war quest - don't flyer pointlessly #21

Open macgregor opened 5 years ago

macgregor commented 5 years ago

Issue by taltamir Monday Apr 08, 2019 at 04:23 GMT _Originally opened as https://github.com/soolar/sl_ascend/issues/161_


Somehow sl_ascend forgot to unlock the flyer quest for me in my current ascension. I ended up unlocking it myself where the island war was the only quest remaining. At that point it complained about the fact that the flyer ML is too low, and decided to resolve this by grinding the flyering slowly in the hidden hospital even though the hidden hospital quest was finished long ago. This would have wasted over 100 adventures if I did not manually abort the attempt. I tried running it again and it did it again so i aborted again.

It should not try to farm ML in the hidden hospital if the hidden hospital quest is already completed. If war quest is the only quest remaining it should either give up on flyering entirely, or maybe use the guy made of bees, or wish for an old tower monster maybe?

Post Adventure done, beep.
Turn(623): Starting with 116 left at Level: 13
Still flyering: 2236
Encounter: -10.0 Exp Bonus: 20.012500000000003
Meat Drop: 130.0 Item Drop: 125.0
HP: 318/318, MP: 695/812
Tummy: 5/5 Liver: 3/4 Spleen: 6/15
ML: 39 control: 9
Delay between adventures... beep boop... 
Countdown: 1 second...
Waiting completed.
A-Boo Peak: 60
Maximizing...
544 combinations checked, best score 13.00
Current HP: 318/318
Expected cold damage: 77 Expected spooky damage: 123
Expected Cold Resist: 15 Expected Spooky Resist: 10 Expected HP Difference: -160
Nevermind, that peak is too scary!
Not enough flyer ML but we are ready for the war... uh oh
Should not have so little flyer ML at this point
Countdown: 1 second...
Waiting completed.

Starting preadventure script...
Pre Adventure at The Hidden Hospital done, beep.

Visit to HiddenCity: The Hidden Hospital in progress...

[624] The Hidden Hospital
Encounter: pygmy witch surgeon
Round 0: taltamir wins initiative!
sl_combatHandler: 0
Round 1: taltamir casts BLOOD CHAINS!
Round 2: taltamir uses the rock band flyers!
Round 3: taltamir casts MICROMETEORITE!
Round 4: pygmy witch surgeon drops 19 attack power.
Round 4: pygmy witch surgeon drops 19 defense.
Round 4: taltamir casts SING ALONG!
Round 5: taltamir casts CHILL OF THE TOMB!
Round 6: pygmy witch surgeon takes 703 damage.
Round 6: taltamir wins the fight!
After Battle: You gain 12 hit points
You gain 432 Meat
You gain 13 Meat.
After Battle: You gain 14 Beefiness
You gain a Muscle point!
After Battle: You gain 44 Enchantedness
After Battle: You gain 15 Chutzpah
You acquire an item: Gathered Meat-Clip
macgregor commented 5 years ago

Comment by taltamir Monday Apr 08, 2019 at 04:30 GMT


Just for clarity, the preference "questL11Doctor" was set to "finished" when it was trying to farm ML i nthe hidden hospital

Malibu-Stacey commented 5 years ago

The spamming of the Hidden Hospital for flyer progress is hardcoded. I am changing the zone we spam to one of the Junkyard zones as they have higher base ML than the Hidden City but we could make this better by looking at how many adventures we need to finish flyering and how many it will save us (we already do similar for the nuns).

However, the L12 quest code needs refactoring as it is strewn all over the code base so I would group this with a general overhaul of the war.

taltamir commented 4 years ago

in retrospect, we should never use guy made of bees. should just have some method to give up on flyering if war is the only thing left to do