Skip to content

logic: allow finding big poe in bottle for reward logic#5075

Merged
aMannus merged 2 commits intoHarbourMasters:developfrom
serprex:big-poe-bottle-logic
Feb 25, 2025
Merged

logic: allow finding big poe in bottle for reward logic#5075
aMannus merged 2 commits intoHarbourMasters:developfrom
serprex:big-poe-bottle-logic

Conversation

@serprex
Copy link
Contributor

@serprex serprex commented Feb 16, 2025

@serprex
Copy link
Contributor Author

serprex commented Feb 16, 2025

this could easily be generalized to more poes:

  1. change BigPoeKill to uint8_t
  2. increment on big poe bottle
  3. set to 10 for actual big poe kill
  4. change poe collector logic to logic->CanKillBigPoe > GetOption(RSK_BIG_POE_COUNT)

if (BottleRandomizerGetToItemID.contains(randoGet)) {
itemId = BottleRandomizerGetToItemID[randoGet];
}
if (randoGet == RG_BOTTLE_WITH_BIG_POE && !ctx->GetOption(RSK_BIG_POE_COUNT).Get()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer an explicit numeral comparison to 1, instead of a converting to boolean.

Copy link
Contributor Author

@serprex serprex Feb 16, 2025

Choose a reason for hiding this comment

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

The comparison would be == 0 or + 1 == 1 since the option's 0 value is 1 big poe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead & pushed as a separate commit handling multiple big poe bottles, if that's preferable it renders this obsolete

@serprex serprex force-pushed the big-poe-bottle-logic branch from 594a975 to bc0dcde Compare February 16, 2025 18:12
@aMannus aMannus merged commit e516f45 into HarbourMasters:develop Feb 25, 2025
5 checks passed
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