mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 02:46:35 -05:00
Renamed MonStat2Record
This commit is contained in:
parent
05e9f34765
commit
ec91203782
@ -22,8 +22,8 @@ type NPC struct {
|
|||||||
action int
|
action int
|
||||||
path int
|
path int
|
||||||
repetitions int
|
repetitions int
|
||||||
monstatEx *d2records.MonStats2Record
|
|
||||||
monstatRecord *d2records.MonStatRecord
|
monstatRecord *d2records.MonStatRecord
|
||||||
|
monstatEx *d2records.MonStat2Record
|
||||||
HasPaths bool
|
HasPaths bool
|
||||||
isDone bool
|
isDone bool
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2txt"
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2fileformats/d2txt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LoadMonStats2 loads MonStats2Records from monstats2.txt
|
// LoadMonStats2 loads MonStat2Records from monstats2.txt
|
||||||
//nolint:funlen //just a big data loader
|
//nolint:funlen //just a big data loader
|
||||||
func monsterStats2Loader(r *RecordManager, d *d2txt.DataDictionary) error {
|
func monsterStats2Loader(r *RecordManager, d *d2txt.DataDictionary) error {
|
||||||
records := make(MonStats2)
|
records := make(MonStats2)
|
||||||
@ -18,7 +18,7 @@ func monsterStats2Loader(r *RecordManager, d *d2txt.DataDictionary) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
record := &MonStats2Record{
|
record := &MonStat2Record{
|
||||||
Key: d.String("Id"),
|
Key: d.String("Id"),
|
||||||
Height: d.Number("Height"),
|
Height: d.Number("Height"),
|
||||||
OverlayHeight: d.Number("OverlayHeight"),
|
OverlayHeight: d.Number("OverlayHeight"),
|
||||||
|
@ -2,11 +2,11 @@ package d2records
|
|||||||
|
|
||||||
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
||||||
|
|
||||||
// MonStats2 stores all of the MonStats2Records
|
// MonStats2 stores all of the MonStat2Records
|
||||||
type MonStats2 map[string]*MonStats2Record
|
type MonStats2 map[string]*MonStat2Record
|
||||||
|
|
||||||
// MonStats2Record is a representation of a row from monstats2.txt
|
// MonStat2Record is a representation of a row from monstats2.txt
|
||||||
type MonStats2Record struct {
|
type MonStat2Record struct {
|
||||||
// Available options for equipment
|
// Available options for equipment
|
||||||
// randomly selected from
|
// randomly selected from
|
||||||
EquipmentOptions [16][]string
|
EquipmentOptions [16][]string
|
||||||
|
Loading…
Reference in New Issue
Block a user