mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 15:17:04 -05:00
4938ec1f44
* adding comments to d2interface for linter * moved d2render renderer interfaces and types into d2interface * fixed most lint errors for monstats loader * de-lint d2data wip * d2data: resolve linting errors
17 lines
464 B
Go
17 lines
464 B
Go
package d2datadict
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
)
|
|
|
|
// MiscItems stores all of the ItemCommonRecords for misc.txt
|
|
var MiscItems map[string]*ItemCommonRecord //nolint:gochecknoglobals // Currently global by design
|
|
|
|
// LoadMiscItems loads ItemCommonRecords from misc.txt
|
|
func LoadMiscItems(file []byte) {
|
|
MiscItems = LoadCommonItems(file, d2enum.InventoryItemTypeItem)
|
|
log.Printf("Loaded %d misc items", len(MiscItems))
|
|
}
|