Skip to content

Support Cup of 13s as a once/day drink - #1754

Open
Danre98 wants to merge 28 commits into
loathers:mainfrom
Danre98:cup-of-13s
Open

Support Cup of 13s as a once/day drink#1754
Danre98 wants to merge 28 commits into
loathers:mainfrom
Danre98:cup-of-13s

Conversation

@Danre98

@Danre98 Danre98 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Description

Implements Cup of 13s as pure turnbloat--using spoon, dripping meat staff, and/or meat shield to create a 12 adv drink, net 9-12 advs depending on crafting. In effect this makes it 1/day because we use 12 of the 13 gems to do this.

Could be implemented to use more drunkenness and/or take advantage of the effects and/or use more ingredients (probably by someone else), but this is good enough for me.

Fixes #1751, introduced by the Cup of 13s.

How Has This Been Tested?

Not yet, will probably be tested along with #1753 in a combined (separate) testing branch.

Edit: Tested over a few standard runs

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 my pull request against the main branch or have a good reason not to.
  • I have updated the GitHub wiki path or IOTM support pages, as appropriate.

@Danre98 Danre98 mentioned this pull request Jul 18, 2026
5 tasks
// auto_canMakeCupOf13sDrink() expects that $item[none] is located in slot #3 (at least) of the return value if we were unable to pick an alternative to spoon
else {spoon_alt = $item[none];}

// summon spoons if possible. We do this here because mafia doesn't track how many times we can cast generate irony

@midgleyc midgleyc Jul 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

get_property("skillLevel245").to_int() (and _generateIronyUsed)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Aha! Thanks!

@Danre98

Danre98 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Nearly ready, just needs a quick set of tests to ensure the spoon summoning is all good. Expecting to be ready for review this weekend.

@Danre98
Danre98 marked this pull request as ready for review August 3, 2026 06:45

// Add cup of 13s if we are looking to drink
if(type == AUTO_ORGAN_LIVER && auto_haveCupOf13s() && get_property("_cupOf13sJewels") >= 12 && auto_canMakeCupOf13sDrink()) {
// really, it's 12 adventures, not 11.0. But we lose one relative to the other options because ode doesn't apply

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this matters practically, because 11adv / drunk is better than anything but pilsners (or stillsuit distillate), but we only lose one adventure due to ode not applying if we're in a path that can cast ode (or Pete, who has Rowdy Drinker).

@@ -786,7 +783,8 @@ void finalizeMaximize(boolean speculative)
if(toEquip != "")
{
removeFromMaximize("-equip " + toEquip);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we're removing -equip unquoted and adding equip quoted. is this ever an issue?

string itString = it.to_string();
// maximizer uses commas, so can't have a comma in an item name
// fortunately fuzzy matching means just stripping out the comma is fine
itString = itString.replace_string(",", "");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does this need to be removed?

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.

Maximizer equipment override fails for Cup of 13s

2 participants