mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 09:17:19 -04:00
2461142fbd
* Minor changes to reduce interdependencies on modules.
15 lines
283 B
Go
15 lines
283 B
Go
package d2datadict
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
)
|
|
|
|
var Weapons map[string]*ItemCommonRecord
|
|
|
|
func LoadWeapons(file []byte) {
|
|
Weapons = *LoadCommonItems(file, d2enum.InventoryItemTypeWeapon)
|
|
log.Printf("Loaded %d weapons", len(Weapons))
|
|
}
|