mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-16 17:35:57 -05:00
04c7ff543a
* Read excel files with csv.Reader * Read LvlWarp from txt file * Fix lint issues in d2datadict * changed ID back to Id
17 lines
436 B
Go
17 lines
436 B
Go
package d2datadict
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
)
|
|
|
|
// Weapons stores all of the WeaponRecords
|
|
var Weapons map[string]*ItemCommonRecord //nolint:gochecknoglobals // Currently global by design, only written once
|
|
|
|
// LoadWeapons loads weapon records
|
|
func LoadWeapons(file []byte) {
|
|
Weapons = LoadCommonItems(file, d2enum.InventoryItemTypeWeapon)
|
|
log.Printf("Loaded %d weapons", len(Weapons))
|
|
}
|