From ec91203782900437fe2201c61b400b4ad5f1310b Mon Sep 17 00:00:00 2001 From: Intyre Date: Fri, 18 Dec 2020 19:03:13 +0100 Subject: [PATCH] Renamed MonStat2Record --- d2core/d2map/d2mapentity/npc.go | 2 +- d2core/d2records/monster_stats2_loader.go | 4 ++-- d2core/d2records/monster_stats2_record.go | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/d2core/d2map/d2mapentity/npc.go b/d2core/d2map/d2mapentity/npc.go index 311e7dba..66284092 100644 --- a/d2core/d2map/d2mapentity/npc.go +++ b/d2core/d2map/d2mapentity/npc.go @@ -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 } diff --git a/d2core/d2records/monster_stats2_loader.go b/d2core/d2records/monster_stats2_loader.go index 8d092ac5..91fc7ca0 100644 --- a/d2core/d2records/monster_stats2_loader.go +++ b/d2core/d2records/monster_stats2_loader.go @@ -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"), diff --git a/d2core/d2records/monster_stats2_record.go b/d2core/d2records/monster_stats2_record.go index 306ea1e4..914b1c61 100644 --- a/d2core/d2records/monster_stats2_record.go +++ b/d2core/d2records/monster_stats2_record.go @@ -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