Skip to content

[Issue #176] Reduced maximum durability for GBAFE#210

Merged
lushen124 merged 1 commit intomasterfrom
bugfix/0176-gbafe-weapon-durability-max-63
Mar 17, 2020
Merged

[Issue #176] Reduced maximum durability for GBAFE#210
lushen124 merged 1 commit intomasterfrom
bugfix/0176-gbafe-weapon-durability-max-63

Conversation

@lushen124
Copy link
Owner

Fixed #176 - Updated the maximum weapon durability selectable for GBAFE to be 63. This is due to a limitation of the save format for GBAFE games. They seem to only use 6 bits to save durability information for weapons in the save data. This means that any weapon that attempts to save its durability will have its most significant 2 bits cut off. Based on empirical testing, 6 bits seems to be saved, as a 99 durability weapon, when saved, will load as having 35 durability. (99 is 0x63 in hex. If you truncate the two most significant bits, you get 0x23, which is 35 in decimal.)

@lushen124 lushen124 added the GBAFE Applies to all Fire Emblem titles on the GBA. label Mar 7, 2020
@lushen124 lushen124 added this to the 0.9.1 milestone Mar 7, 2020
@lushen124 lushen124 merged commit 449ebc5 into master Mar 17, 2020
@lushen124 lushen124 deleted the bugfix/0176-gbafe-weapon-durability-max-63 branch March 17, 2020 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GBAFE Applies to all Fire Emblem titles on the GBA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weapon durability reseting

1 participant