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

Cockroach copy target #2070

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Cockroach copy target #2070

wants to merge 5 commits into from

Conversation

Shiverwarp
Copy link
Contributor

Just trying to block out the structure a bit in this draft

@Shiverwarp Shiverwarp marked this pull request as draft September 6, 2024 12:13
Comment on lines 31 to 57
function checkAndFixOvercapStats(): void {
if (myBuffedstat($stat`Muscle`) >= 100) {
if (have($effect`Gummiheart`)) uneffect($effect`Gummiheart`);
}
if (myBuffedstat($stat`Mysticality`) >= 100) {
if (have($effect`Gummibrain`)) uneffect($effect`Gummibrain`);
}
if (myBuffedstat($stat`Moxie`) >= 100) {
if (have($effect`Gummiskin`)) uneffect($effect`Gummiskin`);
}
if (
myBuffedstat($stat`Moxie`) >= 100 ||
myBuffedstat($stat`Mysticality`) >= 100 ||
myBuffedstat($stat`Muscle`) >= 100
) {
uneffect($effect`Having a Ball!`);
}
if (
myBuffedstat($stat`Moxie`) >= 100 ||
myBuffedstat($stat`Mysticality`) >= 100 ||
myBuffedstat($stat`Muscle`) >= 100
) {
abort(
"Buffed stats are too high for PirateRealm! Check for equipment or buffs that we can add to prevent in the script",
);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be streamlined through iteration

have($skill`Just the Facts`) &&
have($skill`Meteor Lore`) &&
have($item`Powerful Glove`) &&
(get("_prToday") || get("prAlways"))
Copy link
Contributor

Choose a reason for hiding this comment

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

use realmAvailable

Comment on lines +114 to +115
have($skill`Meteor Lore`) &&
have($item`Powerful Glove`) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have a function that essentially boils down to "how many monster replacers are available"

@@ -107,6 +108,15 @@ function ensureBarfAccess() {
}

function defaultTarget() {
// Can we account for re-entry if we only have certain amounts of copiers left in each of these?
if (
have($skill`Just the Facts`) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have a function that boils down to "do we expect to fight gregs today"

* Push some improvements and fixes to make this more accessible.

* Update packages/garbo/src/tasks/cockroachPrep.ts

Co-authored-by: neil <[email protected]>

* Fix the overcapstat element

* Add bonuses for fun equipment and carnplant

* Do effect removal first, shruggable first

* Genericize our debuff picker

* Add some breaks

* Fix the debuff item logic and other small things

* Use the pref for clipper unlocked rather than the proxy of storm runs

* Move final cockroach fight to later to benefit from buffs

* Update packages/garbo/src/index.ts

Co-authored-by: neil <[email protected]>

* Filter debuff items down to potions

* Optimize Giant Giant crab, further limit debuff scope to buyable or have()

* 100 stat is fine; > 100 isn't

* Avoid certain debuff items

* fix the avoid bad debuff function, add avoid candelabara

* refactor

---------

Co-authored-by: neil <[email protected]>
Co-authored-by: horrible little slime <[email protected]>
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