Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plumber] Always equip plumber combat tool before Ed fight #327

Merged
merged 1 commit into from
Apr 19, 2020

Conversation

jeparo
Copy link
Contributor

@jeparo jeparo commented Apr 18, 2020

Description

Ed fighting disables the standard pre-adventure handling, so calls to autoEquip() never happen and the pre-adventure code that would normally force-equip Plumber tools never gets called. This adds a utility function for equipping Plumber tools, calls it before fighting Ed, calls equipMaximized() before fighting Ed, and refactors the existing pre-adventure Plumber code to use this utility function.

This also fixes a long-standing bug where we wouldn't equip lots of stuff we intended to equip before fighting Ed.

Relevant to #325

How Has This Been Tested?

An automated run ran into the above Ed crash. I made the listed changes and re-ran autoscend. It equipped the fancy boots and defeated Ed. So I have tested this for about two minutes total, but it seems promising.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have based by pull request against the beta branch or have a good reason not to.

@jeparo jeparo requested review from taltamir and Malibu-Stacey and removed request for taltamir April 18, 2020 22:54
@Malibu-Stacey
Copy link
Member

All seems reasonable.

Copy link
Contributor

@taltamir taltamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. And even though you only tested it for 2 minutes, they were highly focused 2 mintues where you went from failing to equip gear to fight ed, to successfully equipping gear to fight ed. Additionally this is currently broken and every single person running autoscend on plumber gets this crash every time they face ed. So I say merge it.

@taltamir
Copy link
Contributor

Also huh. apparently my subissue 1 in #325 is multiple issues.
I will split it into two subissues.

@jeparo jeparo merged commit b027d04 into loathers:beta Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants