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 4 commits into
base: main
Choose a base branch
from
Draft

Cockroach copy target #2070

wants to merge 4 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"

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.

2 participants