update code
This commit is contained in:
@@ -19,6 +19,7 @@ type OwnMercenary struct {
|
||||
Mode mode.NpcMode
|
||||
IsCorpse bool
|
||||
HPPercent int
|
||||
Level int
|
||||
Strength int
|
||||
Dexterity int
|
||||
}
|
||||
|
||||
@@ -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],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user