mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
ae6bfb839e
* fixed lint issues of the package d2core/d2inventory * fixed lint issues of the d2script package * fixed lint issues of the d2common/d2interface package * fixed lint issues of the d2common/d2resource package * fixed lint issues of the d2core/d2term package * fixed conflict errors
44 lines
1.2 KiB
Go
44 lines
1.2 KiB
Go
package d2inventory
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
)
|
|
|
|
// HeroObjects map contains the hero type to CharacterEquipments
|
|
var HeroObjects map[d2enum.Hero]CharacterEquipment
|
|
|
|
// LoadHeroObjects loads the equipment objects of the hero
|
|
func LoadHeroObjects() {
|
|
//Mode: d2enum.AnimationModePlayerNeutral.String(),
|
|
//Base: "/data/global/chars",
|
|
HeroObjects = map[d2enum.Hero]CharacterEquipment{
|
|
d2enum.HeroBarbarian: {
|
|
RightHand: GetWeaponItemByCode("hax"),
|
|
Shield: GetArmorItemByCode("buc"),
|
|
},
|
|
d2enum.HeroNecromancer: {
|
|
RightHand: GetWeaponItemByCode("wnd"),
|
|
},
|
|
d2enum.HeroPaladin: {
|
|
RightHand: GetWeaponItemByCode("ssd"),
|
|
Shield: GetArmorItemByCode("buc"),
|
|
},
|
|
d2enum.HeroAssassin: {
|
|
RightHand: GetWeaponItemByCode("ktr"),
|
|
Shield: GetArmorItemByCode("buc"),
|
|
},
|
|
d2enum.HeroSorceress: {
|
|
RightHand: GetWeaponItemByCode("sst"),
|
|
LeftHand: GetWeaponItemByCode("sst"),
|
|
},
|
|
d2enum.HeroAmazon: {
|
|
RightHand: GetWeaponItemByCode("jav"),
|
|
Shield: GetArmorItemByCode("buc"),
|
|
},
|
|
d2enum.HeroDruid: {
|
|
RightHand: GetWeaponItemByCode("clb"),
|
|
Shield: GetArmorItemByCode("buc"),
|
|
},
|
|
}
|
|
}
|