-
Notifications
You must be signed in to change notification settings - Fork 57
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
base: main
Are you sure you want to change the base?
Cockroach copy target #2070
Conversation
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", | ||
); | ||
} | ||
} |
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use realmAvailable
have($skill`Meteor Lore`) && | ||
have($item`Powerful Glove`) && |
There was a problem hiding this comment.
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`) && |
There was a problem hiding this comment.
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"
Just trying to block out the structure a bit in this draft