-
Notifications
You must be signed in to change notification settings - Fork 70
add a post task to adjust the songboom every 11ish turns
#1998
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ import { | |
| adv1, | ||
| availableChoiceOptions, | ||
| canAdventure, | ||
| canEquip, | ||
| cliExecute, | ||
| inebrietyLimit, | ||
| itemAmount, | ||
|
|
@@ -32,6 +33,7 @@ import { | |
| getRemainingStomach, | ||
| have, | ||
| JuneCleaver, | ||
| SongBoom, | ||
| undelay, | ||
| uneffect, | ||
| withProperty, | ||
|
|
@@ -50,7 +52,7 @@ import { Quest } from "grimoire-kolmafia"; | |
| import { bestAutumnatonLocation } from "../../resources"; | ||
| import { estimatedGarboTurns, remainingUserTurns } from "../../turns"; | ||
| import { acquire } from "../../acquire"; | ||
| import { garboAverageValue } from "../../garboValue"; | ||
| import { garboAverageValue, garboValue } from "../../garboValue"; | ||
| import workshedTasks from "./worksheds"; | ||
| import { GarboPostTask } from "./lib"; | ||
| import { GarboTask } from "../engine"; | ||
|
|
@@ -329,6 +331,38 @@ function handleDrenchedInLava(): GarboPostTask { | |
| }; | ||
| } | ||
|
|
||
| const MEAT_CLIP_VALUE = 520; | ||
| function songBoom(): GarboPostTask[] { | ||
| const willDrunkAdventure = | ||
| globalOptions.ascend && | ||
| have($item`Drunkula's wineglass`) && | ||
| canEquip($item`Drunkula's wineglass`); | ||
| return [ | ||
| { | ||
| name: "Adjust Songboom: Meat", | ||
| available: () => SongBoom.have() && myInebriety() < inebrietyLimit(), | ||
| sobriety: "sober", | ||
| completed: () => SongBoom.song() === "Total Eclipse of Your Meat", | ||
| ready: () => | ||
| SongBoom.dropProgress() < 11 && | ||
| SongBoom.songChangesLeft() > 1 + Number(willDrunkAdventure), | ||
| do: () => SongBoom.setSong("Total Eclipse of Your Meat"), | ||
| }, | ||
| { | ||
| name: "Adjust Songboom: Seasoning", | ||
| available: () => | ||
| SongBoom.have() && | ||
| myInebriety() < inebrietyLimit() && | ||
| garboValue($item`Special Seasoning`) > MEAT_CLIP_VALUE, | ||
| completed: () => SongBoom.song() === "Food Vibrations", | ||
| ready: () => | ||
| SongBoom.dropProgress() === 11 && | ||
| SongBoom.songChangesLeft() > 2 + Number(willDrunkAdventure), | ||
|
Comment on lines
+359
to
+360
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might fire off during our free fights at start of day, and because songboom doesn't increment on free fights, we'll be losing out on our sing along meat Suggested solution: The
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How much meat do we actually get from running sing along against our free fights?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A significant amount if our meat% is high enough and we have a lot of free fights! I was getting 500-800 meat from my shadow rift fights, for example |
||
| do: () => SongBoom.setSong("Food Vibrations"), | ||
| }, | ||
| ]; | ||
| } | ||
|
|
||
| export function PostQuest(completed?: () => boolean): Quest<GarboTask> { | ||
| return { | ||
| name: "Postcombat", | ||
|
|
@@ -348,6 +382,7 @@ export function PostQuest(completed?: () => boolean): Quest<GarboTask> { | |
| refillCinch(), | ||
| leafResin(), | ||
| wardrobeOMatic(), | ||
| ...songBoom(), | ||
| ] | ||
| .filter(({ available }) => undelay(available ?? true)) | ||
| .map((task) => ({ ...task, spendsTurn: false })), | ||
|
|
||
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 don't actually want to restrict this to sober right? It's fine to swap while overdrunk since we can't sing along anyway
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.
Good shout