remove unecessary code due to bad game update
This commit is contained in:
@@ -20,7 +20,6 @@ type GameReader struct {
|
||||
monstersLastUpdate time.Time
|
||||
inventoryLastUpdate time.Time
|
||||
objectsLastUpdate time.Time
|
||||
ExpChar uint16
|
||||
|
||||
cachedMonsters data.Monsters
|
||||
cachedInventory data.Inventory
|
||||
|
||||
@@ -131,7 +131,7 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD
|
||||
itm := &data.Item{
|
||||
ID: int(txtFileNo),
|
||||
UnitID: data.UnitID(unitID),
|
||||
Name: item.GetNameByEnumWithExpChar(gd.ExpChar, txtFileNo),
|
||||
Name: item.GetNameByEnum(txtFileNo),
|
||||
Quality: item.Quality(itemQuality),
|
||||
Position: data.Position{
|
||||
X: int(itemX),
|
||||
|
||||
@@ -39,7 +39,6 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
|
||||
|
||||
expCharPtr := uintptr(gd.Process.ReadUInt(gd.moduleBaseAddressPtr+gd.offset.Expansion, Uint64))
|
||||
expChar := gd.Process.ReadUInt(expCharPtr+0x5C, Uint16)
|
||||
gd.ExpChar = uint16(expChar)
|
||||
isMainPlayer := gd.Process.ReadUInt(inventoryAddr+0x30, Uint16)
|
||||
if expChar >= uint(game.CharLoD) {
|
||||
isMainPlayer = gd.Process.ReadUInt(inventoryAddr+0x70, Uint16)
|
||||
|
||||
Reference in New Issue
Block a user