Skip to content

Blitzball Prize IDs#110

Merged
EvelynTSMG merged 8 commits intofahrenheit-crew:mainfrom
Andrewki44:BlitzIDs
Mar 16, 2026
Merged

Blitzball Prize IDs#110
EvelynTSMG merged 8 commits intofahrenheit-crew:mainfrom
Andrewki44:BlitzIDs

Conversation

@Andrewki44
Copy link
Copy Markdown
Contributor

Resolves #109

Raising as draft until entire prize index is mapped

@Andrewki44
Copy link
Copy Markdown
Contributor Author

Ready for review.

ID's above 0x00C7 are unused
Appended ID to name due to multiple duplicates throughout the list.

@Andrewki44 Andrewki44 marked this pull request as ready for review March 15, 2026 10:00
Copy link
Copy Markdown
Contributor

@EvelynTSMG EvelynTSMG left a comment

Choose a reason for hiding this comment

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

I'm going to assume the ids are correct; they're easy to update anyway.

Thank you! I just have a few suggestions :3

Don't implement the id suffix one immediately as @fkelava might disagree; we'd have to talk it out so it's best to wait a bit.

@EvelynTSMG
Copy link
Copy Markdown
Contributor

EvelynTSMG commented Mar 15, 2026

As noted by Rurusachi over on Discord, these prize ids are not constant, but dynamic; the items they give differs based on the contents of takara.bin, etc.

For ids 0-99 (0-46):
call Common.obtainTreasure [015Bh](msgWindow=0 [00h], treasure=BlitzballLeaguePrizeIndex[priv10AAD4 - 1 [01h]] + 220 [DCh]);

For ids 101-199:

  • if id - 100 < 31, (1 << (id - 100)) is compared against BlitzballPlayerLearnedTechsPage1
  • else, (1 << (id - 100 - 30)) is compared against BlitzballPlayerLearnedTechsPage2

For id 286:
Common.displayFieldString [0064h](msgWindow=0 [00h], string="{TIME:00}Learned {VAR:00}!{\n}Player now able to learn extra techniques{\n}by expanding tech list slots!" [19h]);

For ids 287-289:

  • 287 = Attack Reels
  • 288 = Status Reels
  • 289 = Aurochs Reels

In light of this, I think we should close this PR and the associated issue.

Update: The focus of this PR has shifted to account for this. It is now more than welcome.

@Andrewki44
Copy link
Copy Markdown
Contributor Author

Refactored to utilize defined enums for techs & limits, and provide access functions to retrieve the relevant prize index value based on a treasure index (from takara.bin), tech or limit.

@Andrewki44 Andrewki44 requested a review from EvelynTSMG March 15, 2026 22:34
@Andrewki44 Andrewki44 requested a review from fkelava March 15, 2026 23:08
fkelava
fkelava previously approved these changes Mar 15, 2026
Copy link
Copy Markdown
Contributor

@EvelynTSMG EvelynTSMG left a comment

Choose a reason for hiding this comment

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

I found some time to review this and Github's format helped me understand what was suggested in Discord.

I have some changes I'm suggesting, but nothing too big.
Also a question to @fkelava.

Comment on lines +5 to +7
* BlitzPrizeID 0x00 -> 0x64 == Takara.bin 220 -> 320
* BlitzPrizeID 0x65 -> 0xA0 == Techs
* BlitzPrizeID 0xBB -> 0xBD == Wakka Overdrives
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't 0 -> 100 look nicer? 101 -> 160 isn't too bad and Wakka's overdrives are arbitrary either way.

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.

If this is the case, would you prefer the enums to be changed to decimal instead of hex as well?
I used hex here because I was also using that throughout the rest of the file/s, for consistency

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure. I'm frankly not sure you even need to specify the values for every variant, but continue to do so

@Andrewki44
Copy link
Copy Markdown
Contributor Author

Review comments either resolved or replied to

@Andrewki44 Andrewki44 requested a review from EvelynTSMG March 16, 2026 01:25
Copy link
Copy Markdown
Contributor

@EvelynTSMG EvelynTSMG left a comment

Choose a reason for hiding this comment

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

Two discussions remain unresolved:
#110 (comment)
#110 (comment)

@Andrewki44
Copy link
Copy Markdown
Contributor Author

I was waiting for further feedback regarding decimal vs hex.
Especially as the review comment was only regarding a comment line as well, not the actual code.

@Andrewki44
Copy link
Copy Markdown
Contributor Author

Discord discussion context provided for #110 (comment)

Copy link
Copy Markdown
Contributor

@EvelynTSMG EvelynTSMG left a comment

Choose a reason for hiding this comment

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

This is fine.

Thank you for the contribution, take care 🩷

@EvelynTSMG EvelynTSMG merged commit 455b5d8 into fahrenheit-crew:main Mar 16, 2026
@Andrewki44 Andrewki44 deleted the BlitzIDs branch March 16, 2026 01:40
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.

Add Blitzball Prize IDs to FFX/Ids

3 participants