Skip to content

Update z64item.h with names from decomp#3200

Closed
garrettjoecox wants to merge 1 commit intoHarbourMasters:developfrom
garrettjoecox:z64itemDecompRename
Closed

Update z64item.h with names from decomp#3200
garrettjoecox wants to merge 1 commit intoHarbourMasters:developfrom
garrettjoecox:z64itemDecompRename

Conversation

@garrettjoecox
Copy link
Contributor

@garrettjoecox garrettjoecox commented Sep 15, 2023

@inspectredc
Copy link
Member

Looks good! Will need some updating due to the other docs but otherwise just a couple things from me:

Do we want to keep the rename script in the repo?

Considering the way we use the enums, i think we shouldnt rename these:

  'ITEM_SINGLE_MAGIC': 'ITEM_INVALID_1',
  'ITEM_DOUBLE_MAGIC': 'ITEM_INVALID_2',
  'ITEM_DOUBLE_DEFENSE': 'ITEM_INVALID_3',

i.e. just keep them as ITEM_SINGLE_MAGIC etc. in the repo

@garrettjoecox
Copy link
Contributor Author

Do we want to keep the rename script in the repo?

I think just leaving the link to it in the PR is fine IMO

Considering the way we use the enums, i think we shouldnt rename these:

  'ITEM_SINGLE_MAGIC': 'ITEM_INVALID_1',
  'ITEM_DOUBLE_MAGIC': 'ITEM_INVALID_2',
  'ITEM_DOUBLE_DEFENSE': 'ITEM_INVALID_3',

i.e. just keep them as ITEM_SINGLE_MAGIC etc. in the repo

I removed these from the rename for now, but due to how our tables for rando are set up now, I don't think we actually use these any more, and if we are we shouldn't be, I'll create a ticket to verify and remove usage of them.

@garrettjoecox
Copy link
Contributor Author

I'll create a ticket to verify and remove usage of them.

#3931

Copy link
Member

@inspectredc inspectredc left a comment

Choose a reason for hiding this comment

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

LGTM pending merge conflicts! I noticed that decomp has an UPG_MAX for the upgradetype which is used for some array sizes, would it be possible to get that in this too?

GID_BOTTLE, GID_LETTER_RUTO, GID_SHIELD_HYLIAN, GID_QUIVER_40, GID_SCALE_SILVER,
GID_SCALE_GOLDEN, GID_KEY_SMALL, GID_ARROW_FIRE, GID_RUPEE_GREEN, GID_RUPEE_BLUE,
GID_RUPEE_RED, GID_RUPEE_PURPLE, GID_HEART_PIECE, GID_KEY_SMALL,
GID_BOTTLE_EMPTY, GID_BOTTLE_RUTOS_LETTER, GID_SHIELD_HYLIAN, GID_QUIVER_40, GID_SCALE_SILVER,
Copy link
Contributor

Choose a reason for hiding this comment

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

Weird spacing.

GI_FROG, GI_EYEDROPS, GI_CLAIM_CHECK, GI_MASK_SKULL, GI_MASK_SPOOKY, GI_MASK_KEATON,
GI_MASK_BUNNY, GI_MASK_TRUTH, GI_MASK_GORON, GI_MASK_ZORA, GI_MASK_GERUDO, GI_LETTER_RUTO,
GI_LETTER_RUTO, GI_LETTER_RUTO, GI_LETTER_RUTO, GI_LETTER_RUTO, GI_LETTER_RUTO,
GI_ZELDAS_LETTER, GI_WEIRD_EGG, GI_CHICKEN, GI_MAGIC_BEAN, GI_POCKET_EGG, GI_POCKET_CUCCO,
Copy link
Contributor

Choose a reason for hiding this comment

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

more spacing "issues".

Copy link
Contributor

@Pepper0ni Pepper0ni left a comment

Choose a reason for hiding this comment

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

LGTM for the most part, just some ruined structures where the legnth of variables changed. Will wait for conflict fix before approving


static ItemData itemData[88] = {
{CREATE_SPRITE_32(dgItemIconDekuStickTex, 1), ITEM_STICK, INV_IC_POS(0, 0), SIZE_NORMAL},
{CREATE_SPRITE_32(dgItemIconDekuNutTex, 0), ITEM_NUT, INV_IC_POS(1, 0), SIZE_NORMAL},
Copy link
Contributor

Choose a reason for hiding this comment

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

More spacing problems here, not critical but we may as well be clean.


// Item ID corresponding to each slot, aside from bottles and trade items
static s16 sSlotItems[] = {
ITEM_STICK, ITEM_NUT, ITEM_BOMB, ITEM_BOW, ITEM_ARROW_FIRE, ITEM_DINS_FIRE,
Copy link
Contributor

Choose a reason for hiding this comment

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

Some more here

u8 gAmmoItems[] = {
ITEM_STICK, ITEM_NUT, ITEM_BOMB, ITEM_BOW, ITEM_NONE, ITEM_NONE, ITEM_SLINGSHOT, ITEM_NONE,
ITEM_BOMBCHU, ITEM_NONE, ITEM_NONE, ITEM_NONE, ITEM_NONE, ITEM_NONE, ITEM_BEAN, ITEM_NONE,
ITEM_DEKU_STICK, ITEM_DEKU_NUT, ITEM_BOMB, ITEM_BOW, ITEM_NONE, ITEM_NONE, ITEM_SLINGSHOT, ITEM_NONE,
Copy link
Contributor

Choose a reason for hiding this comment

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

a few here

@Pepper0ni
Copy link
Contributor

Is this even up to date with decomp anymore?...

@garrettjoecox
Copy link
Contributor Author

Probably not, we can re-use the script when we get around to it but I’ll close this for now

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