nokka / d2s

Diablo II file format binary parser written in Go.
MIT License
149 stars 31 forks source link

make MagicalNameIDs a fixed length array #11

Open dschu012 opened 4 years ago

dschu012 commented 4 years ago

item.MagicalNameIDs should be a fixed length array of 6. if you have a rare w/ 3 prefixes and 1 suffix you'd have an array of size 4 similar to

[143, 436, 583, 370]

as it is right now there is no way to distinguish between what is a prefix and what is a suffix. ideally you'd want something along the lines of.

[143, 436, 583, null, 370, null]

https://github.com/nokka/d2s/blob/master/d2s.go#L954