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