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

Item DB: replace numbers with constants and split View into Subtype and ViewSprite #1828

Merged
merged 100 commits into from
Sep 17, 2017

Conversation

MishimaHaruna
Copy link
Member

Pull Request Prelude

Changes Proposed

  • Added support for bitmasks, in the form of libconfig arrays of constants (strings) in the Upper and Loc fields of the item DB.
  • Split the View field into Subtype and ViewSprite, to better describe its actual use, depending on the item type.
  • Changed several numeric values into human-readable constants:
  • Fixed some incorrect values in the Renewal item DB, detected thanks to the above changes.
  • Differentiated and refactored the variables that hold view sprites from those that hold item subtypes.

This includes entire contents of PR #1633, which was merged (rebased and fast-forwarded) into this branch.

Known Issues and TODO List

  • The commits that differentiate the variables holding view sprites and item subtypes have only received summary testing. Careful review and/or further testing is advised.
  • The point "Add constant for View in Headears, Shields and Garments" wasn't addressed, and is beyond the scope of this PR, as discussed in PR Change numbers into constants in item_db.conf #1633

@MishimaHaruna MishimaHaruna added component:core Affecting the Hercules core (i.e. not the game mechanics directly) component:databases Affecting the databases available in the db/ folder component:documentation Affecting the documentation in the doc/ folder status:code-review Awaiting code review type:enhancement Issue describes an enhancement or feature that should be implemented labels Aug 22, 2017
@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
Signed-off-by: Haru <haru@dotalux.com>
…array

Equivalent: `["EQP_HEAD_LOW", "EQP_HEAD_TOP"]`

Signed-off-by: Haru <haru@dotalux.com>
…array

Equivalent: `["EQP_HEAD_LOW", "EQP_HEAD_MID"]`

Signed-off-by: Haru <haru@dotalux.com>
…array

Equivalent: `["EQP_HEAD_TOP", "EQP_HEAD_MID"]`

Signed-off-by: Haru <haru@dotalux.com>
…array

Equivalent: `["EQP_HEAD_LOW", "EQP_HEAD_TOP", "EQP_HEAD_MID"]`

Signed-off-by: Haru <haru@dotalux.com>
… array

Equivalent: `["EQP_COSTUME_HEAD_TOP", "EQP_COSTUME_HEAD_MID"]`

Signed-off-by: Haru <haru@dotalux.com>
… array

Equivalent: `["EQP_COSTUME_HEAD_TOP", "EQP_COSTUME_HEAD_LOW"]`

Signed-off-by: Haru <haru@dotalux.com>
… array

Equivalent: `["EQP_COSTUME_HEAD_MID", "EQP_COSTUME_HEAD_LOW"]`

Signed-off-by: Haru <haru@dotalux.com>
… array

Equivalent: `["EQP_COSTUME_HEAD_TOP", "EQP_COSTUME_HEAD_MID", "EQP_COSTUME_HEAD_LOW"]`

Signed-off-by: Haru <haru@dotalux.com>
… array

Equivalent: `["EQP_HELM", "EQP_ARMS", "EQP_GARMENT", "EQP_ACC", "EQP_ARMOR", "EQP_SHOES"]`

Signed-off-by: Haru <haru@dotalux.com>
@MishimaHaruna
Copy link
Member Author

Thanks! I'll merge it now, so that it won't grow any further :)

@MishimaHaruna MishimaHaruna merged commit d472373 into master Sep 17, 2017
@ghost ghost removed the status:code-review Awaiting code review label Sep 17, 2017
@MishimaHaruna MishimaHaruna deleted the item_viewid branch September 17, 2017 21:52
MishimaHaruna added a commit to MishimaHaruna/Hercules that referenced this pull request Nov 12, 2017
Adds the ability to query an item's view sprite, lost with HerculesWS#1828

Fixes HerculesWS#1895

Signed-off-by: Haru <haru@dotalux.com>
MishimaHaruna added a commit to MishimaHaruna/Hercules that referenced this pull request Oct 23, 2022
The field was replaced with ViewSprite and Subtype in
a98b2d9 and PR HerculesWS#1828 (2016-09-04).

Signed-off-by: Haru <haru@dotalux.com>
MishimaHaruna added a commit to MishimaHaruna/Hercules that referenced this pull request Oct 23, 2022
The field was replaced with ViewSprite and Subtype in
a98b2d9 and PR HerculesWS#1828 (2016-09-04).

Signed-off-by: Haru <haru@dotalux.com>
MishimaHaruna added a commit to MishimaHaruna/Hercules that referenced this pull request Oct 23, 2022
The field was replaced with ViewSprite and Subtype in
a98b2d9 and PR HerculesWS#1828 (2016-09-04).

Signed-off-by: Haru <haru@dotalux.com>
@MishimaHaruna MishimaHaruna mentioned this pull request Oct 23, 2022
3 tasks
MishimaHaruna added a commit to MishimaHaruna/Hercules that referenced this pull request Oct 27, 2022
The field was replaced with ViewSprite and Subtype in
a98b2d9 and PR HerculesWS#1828 (2016-09-04).

Signed-off-by: Haru <haru@dotalux.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:core Affecting the Hercules core (i.e. not the game mechanics directly) component:databases Affecting the databases available in the db/ folder component:documentation Affecting the documentation in the doc/ folder type:enhancement Issue describes an enhancement or feature that should be implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants