diff --git a/pkg/data/npc.go b/pkg/data/npc.go index b939675..abca1f3 100644 --- a/pkg/data/npc.go +++ b/pkg/data/npc.go @@ -19,6 +19,7 @@ type OwnMercenary struct { Mode mode.NpcMode IsCorpse bool HPPercent int + Level int Strength int Dexterity int } diff --git a/pkg/memory/mercenary.go b/pkg/memory/mercenary.go index c358c80..03093b9 100644 --- a/pkg/memory/mercenary.go +++ b/pkg/memory/mercenary.go @@ -77,6 +77,7 @@ func (gd *GameReader) OwnMercenary() (OwnMercenary, bool) { Mode: mode.NpcMode(ReadUIntFromBuffer(monsterDataBuffer, 0x0C, Uint32)), IsCorpse: ReadUIntFromBuffer(monsterDataBuffer, 0x1AE, Uint8) != 0, HPPercent: mercenaryHPPercent(stats), + Level: stats[stat.Level], Strength: stats[stat.Strength], Dexterity: stats[stat.Dexterity], })