mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-17 18:06:03 -05:00
515b66736d
* main, d2common: load Magic/Rare/Unique Affix * d2common: item affixes only removed Rare/Unique Prefix/Suffix as those are related to monsters, not items. * removed debug print from item_affix.go * changed item affix type names for clarity, removed debug print from data_dictionary * d2common: item affix datadict and records Item Affixes are defined in `/data/global/excel/Magic{Prefix,Suffix}.txt` Rare and Unique Pre/Suffixes seem to be for monsters, not items. d2common: item affixes only removed Rare/Unique Prefix/Suffix as those are related to monsters, not items. removed debug print from item_affix.go changed item affix type names for clarity, removed debug print from data_dictionary * reverting to pre-allocating memory for parsing txt lines * removing the rest of the rare/unique definitions * removing the rest of the rare/unique definitions |
||
---|---|---|
.. | ||
animation_frame.go | ||
animation_mode_string.go | ||
animation_mode.go | ||
composite_type.go | ||
draw_effect.go | ||
hero_stance.go | ||
hero_string2enum.go | ||
hero_string.go | ||
hero.go | ||
inventory_item_type.go | ||
item_affix_type.go | ||
layer_stream_type.go | ||
readme.md | ||
region_id.go | ||
region_layer.go | ||
tiletype.go | ||
weapon_class_string2enum.go | ||
weapon_class_string.go | ||
weapon_class.go |
OpenDiablo2 Enums
Items in this folder are compiled with two programs. You can obtain them by running the following:
go get golang.org/x/tools/cmd/stringer
go get github.com/mewspring/tools/cmd/string2enum
Once you have the tools installed, simply run the following command in this folder to regenerate the support files:
go generate
If you add any enums (e.g. AnimationMode
), make sure to add the following to the end of the
file:
//go:generate stringer -linecomment -type AnimationMode