mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-31 16:27:18 -04:00
1c2b4869a1
* Switch items to dynamic load with a common struct, add misc.txt loading * Update Ebiten Reference * Switch references to point to D2Shared * Migrate part 2
42 lines
1.0 KiB
Go
42 lines
1.0 KiB
Go
package d2core
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/D2Shared/d2common/d2enum"
|
|
)
|
|
|
|
var HeroObjects map[d2enum.Hero]CharacterEquipment
|
|
|
|
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"),
|
|
},
|
|
}
|
|
}
|