mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-07 18:57:18 -05:00
04c7ff543a
* Read excel files with csv.Reader * Read LvlWarp from txt file * Fix lint issues in d2datadict * changed ID back to Id
18 lines
456 B
Go
18 lines
456 B
Go
package d2datadict
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
)
|
|
|
|
// Armors stores all of the ArmorRecords
|
|
//nolint:gochecknoglobals // Currently global by design, only written once
|
|
var Armors map[string]*ItemCommonRecord
|
|
|
|
// LoadArmors loads entries from armor.txt as ItemCommonRecords
|
|
func LoadArmors(file []byte) {
|
|
Armors = LoadCommonItems(file, d2enum.InventoryItemTypeArmor)
|
|
log.Printf("Loaded %d armors", len(Armors))
|
|
}
|