update code

This commit is contained in:
vietdungdev
2026-05-21 22:56:13 +07:00
parent 88548e97fc
commit aec833c636
2 changed files with 2 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ type OwnMercenary struct {
Mode mode.NpcMode Mode mode.NpcMode
IsCorpse bool IsCorpse bool
HPPercent int HPPercent int
Level int
Strength int Strength int
Dexterity int Dexterity int
} }

View File

@@ -77,6 +77,7 @@ func (gd *GameReader) OwnMercenary() (OwnMercenary, bool) {
Mode: mode.NpcMode(ReadUIntFromBuffer(monsterDataBuffer, 0x0C, Uint32)), Mode: mode.NpcMode(ReadUIntFromBuffer(monsterDataBuffer, 0x0C, Uint32)),
IsCorpse: ReadUIntFromBuffer(monsterDataBuffer, 0x1AE, Uint8) != 0, IsCorpse: ReadUIntFromBuffer(monsterDataBuffer, 0x1AE, Uint8) != 0,
HPPercent: mercenaryHPPercent(stats), HPPercent: mercenaryHPPercent(stats),
Level: stats[stat.Level],
Strength: stats[stat.Strength], Strength: stats[stat.Strength],
Dexterity: stats[stat.Dexterity], Dexterity: stats[stat.Dexterity],
}) })