check if item is being hold

This commit is contained in:
Héctor Giménez
2024-04-29 22:07:54 +09:00
parent de84f7bbe0
commit e27064213f
2 changed files with 3 additions and 0 deletions

View File

@@ -15,4 +15,5 @@ const (
LocationGround Location = "ground"
LocationSocket Location = "socket"
LocationUnknown Location = "unknown"
LocationCursor Location = "cursor"
)

View File

@@ -112,6 +112,8 @@ func (gd *GameReader) Items(pu data.PlayerUnit, hover data.HoverData) data.Items
location = item.LocationGround
case 6:
location = item.LocationSocket
case 4:
location = item.LocationCursor
}
itm.Location = location