Skip to content

Commit

Permalink
Merge pull request #18 from jordanbrauer/refactor-item-codes
Browse files Browse the repository at this point in the history
Refactor item codes
  • Loading branch information
nokka authored Feb 12, 2021
2 parents 3903524 + fd3fa19 commit 0b32be8
Show file tree
Hide file tree
Showing 3 changed files with 1,902 additions and 1,233 deletions.
6 changes: 3 additions & 3 deletions d2s.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,9 @@ func parseRunewordBits(ibr *bitReader, item *Item) {

// Parses the magical property list in the byte queue that belongs to an item
// and returns the list of properties.
func parseMagicalList(ibr *bitReader) ([]magicAttribute, int, error) {
func parseMagicalList(ibr *bitReader) ([]MagicAttribute, int, error) {

var magicAttributes []magicAttribute
var magicAttributes []MagicAttribute
var readBits int

for {
Expand Down Expand Up @@ -1009,7 +1009,7 @@ func parseMagicalList(ibr *bitReader) ([]magicAttribute, int, error) {
values = append(values, int64(val))
}

attr := magicAttribute{
attr := MagicAttribute{
ID: id,
Name: prop.Name,
Values: values,
Expand Down
Loading

0 comments on commit 0b32be8

Please sign in to comment.