mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-16 17:35:57 -05:00
19 lines
351 B
Go
19 lines
351 B
Go
package d2records
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2txt"
|
|
)
|
|
|
|
func rareItemPrefixLoader(r *RecordManager, d *d2txt.DataDictionary) error {
|
|
records, err := rareItemAffixLoader(d)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
r.Item.Rare.Prefix = records
|
|
|
|
r.Debugf("Loaded %d RarePrefix records", len(records))
|
|
|
|
return nil
|
|
}
|