Adds hue support to StaticTile (#1321)

### Summary
Fixes missing properties while reading static tiles.

### Screenshots
<img width="463" alt="Screenshot 2023-01-21 093050" src="https://user-images.githubusercontent.com/3953314/213879788-05d2ad7c-c197-4690-9f5b-660bded416cc.png">

Closes #1320
This commit is contained in:
Kamron Batman 2023-01-21 11:19:11 -08:00 • committed by GitHub
parent b18dfcbb63
commit 68bd9529f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 8 deletions

View file

@ -95,11 +95,15 @@ public static class IncomingTargetingPackets
}
}
int hue = 0;
for (var i = 0; !valid && i < tiles.Length; ++i)
{
if (tiles[i].Z == z && tiles[i].ID == graphic)
var tile = tiles[i];
if (tile.Z == z && tile.ID == graphic)
{
valid = true;
hue = tile.Hue;
}
}
@ -110,7 +114,7 @@ public static class IncomingTargetingPackets
}
else
{
toTarget = new StaticTarget(new Point3D(x, y, z), graphic);
toTarget = new StaticTarget(new Point3D(x, y, z), graphic, hue);
}
}
}