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

Handle set bonuses properly #4

Closed
squeek502 opened this issue Mar 18, 2019 · 0 comments
Closed

Handle set bonuses properly #4

squeek502 opened this issue Mar 18, 2019 · 0 comments

Comments

@squeek502
Copy link
Owner

See nokka/d2s#5

The set bits correspond with how many items of that set need to be worn to get that bonus, and also with the values of the aprop fields in SetItems.txt.

If the bits are numbered 54321:

  • If bit 1 is set, then it requires >= 2 items worn
  • If bit 2 is set, then it requires >= 3 items worn
  • If bit 3 is set, then it requires >= 4 items worn
  • If bit 4 is set, then it requires >= 5 items worn
  • If bit 5 is set, then it requires >= 6 items worn

Examples:

  • M'avina's Belt

    • Set bonuses flag: 4 (00100)
    • SetItems.txt only has aprop3 field set
    • Only gets the bonus when >= 4 items are worn
  • IK Armor

    • Set bonuses flag: 31 (11111)
    • SetItems.txt has aprop1-aprop5 fields set
    • Get a new bonus each additional item that is worn
  • Trang's Armor

    • Set bonuses flag: 10 (01010)
    • SetItems.txt has aprop2 and aprop4 fields set
    • Only gets a new bonus when >= 3 items are worn and then another at >= 5 worn
squeek502 added a commit that referenced this issue Mar 18, 2019
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

No branches or pull requests

1 participant