chore(content): Updates to C# 9 syntax (#373)

This commit is contained in:
Kamron Batman 2020-12-30 12:50:10 -08:00 committed by GitHub
parent a59fda6a3a
commit 1e2242bb1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 155 additions and 405 deletions

View file

@ -1840,12 +1840,14 @@ namespace Server.Multis
{
door = new GenericHouseDoor(GetSADoorFacing(itemID - 0x5142), itemID, 0xF0, 0xEF, false);
}
// TODO: Fix this because the heuristic is broken, or remove the type calculation
else if (itemID >= 0x9AD7 && itemID <= 0x9AE6)
{
var type = (itemID - 0x9AD7) / 16;
var facing = (DoorFacing)((itemID - 0x9AD7) / 2 % 8);
door = new GenericHouseDoor(facing, 0x9AD7 + type * 16, 0xED, 0xF4);
}
// TODO: Fix this because the heuristic is broken, or remove the type calculation
else if (itemID >= 0x9B3C && itemID <= 0x9B4B)
{
var type = (itemID - 0x9B3C) / 16;