Skip to content
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

Replace hardcoded flute check with consumability check #5508

Merged

Conversation

Bassoonian
Copy link
Collaborator

#5436 fixed a bug that would duplicate flutes, but introduced a hardcoded check for flutes. This PR replaces said hardcoded check with a per-item field that indicates inconsumability for items that can be used in battle.

Issue(s) that this PR fixes

Fixes #5464

Discord contact info

bassoonian

@kittenchilly
Copy link

Can you check other places where importance is checked for consumability to switch over to this system?

@kittenchilly
Copy link

Also Poke Flute needs the not consumable field set as well.

@Bassoonian
Copy link
Collaborator Author

Also Poke Flute needs the not consumable field set as well.

I personally find it a given that Key Items (read: items marked with importance and not having an amount shown in the bag) aren't consumed in battle. Why would they be Key Items/hide their number otherwise?

@Pawkkie Pawkkie added category: items Pertains to items bugfix Bugfixes labels Oct 15, 2024
@AlexOn1ine
Copy link
Collaborator

Also Poke Flute needs the not consumable field set as well.

I personally find it a given that Key Items (read: items marked with importance and not having an amount shown in the bag) aren't consumed in battle. Why would they be Key Items/hide their number otherwise?

Since it is vanilla behavior I think it makes sense to make it none consumable even if it looks weird.

@AlexOn1ine
Copy link
Collaborator

Also Poke Flute needs the not consumable field set as well.

I personally find it a given that Key Items (read: items marked with importance and not having an amount shown in the bag) aren't consumed in battle. Why would they be Key Items/hide their number otherwise?

Since it is vanilla behavior I think it makes sense to make it none consumable even if it looks weird.

Also Poke Flute needs the not consumable field set as well.

So after thinking about it I don't think we need to do this because as Jasper said Key Items are already not consumed anyways.

@AlexOn1ine AlexOn1ine merged commit d4387d8 into rh-hideout:upcoming Oct 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: items Pertains to items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants