Merge branch 'develop' into fix/health-regen

This commit is contained in:
hulkhan22
2025-04-29 19:51:20 +02:00
committed by GitHub
4 changed files with 21 additions and 12 deletions
@@ -503,7 +503,7 @@ public class LocationLootGenerator(
{
X = result.X,
Y = result.Y,
R = result.Rotation.GetValueOrDefault(false) ? 1 : 0
R = result.Rotation.GetValueOrDefault(false) ? ItemRotation.Vertical : ItemRotation.Horizontal
};
// Add loot to container before returning
@@ -651,7 +651,7 @@ public class BotGeneratorHelper(
{
X = findSlotResult.X,
Y = findSlotResult.Y,
R = findSlotResult.Rotation ?? false ? 1 : 0
R = findSlotResult.Rotation ?? false ? ItemRotation.Vertical : ItemRotation.Horizontal
}
;
}
@@ -324,7 +324,7 @@ public class InventoryHelper(
{
X = findSlotResult.X,
Y = findSlotResult.Y,
R = findSlotResult.Rotation.GetValueOrDefault(false) ? 1 : 0,
R = findSlotResult.Rotation.GetValueOrDefault(false) ? ItemRotation.Vertical : ItemRotation.Horizontal,
Rotation = findSlotResult.Rotation
};
@@ -382,7 +382,7 @@ public class InventoryHelper(
{
X = findSlotResult.X,
Y = findSlotResult.Y,
R = findSlotResult.Rotation.Value ? 1 : 0,
R = findSlotResult.Rotation.Value ? ItemRotation.Vertical : ItemRotation.Horizontal,
Rotation = findSlotResult.Rotation
};
@@ -423,7 +423,7 @@ public class InventoryHelper(
{
X = findSortingSlotResult.X,
Y = findSortingSlotResult.Y,
R = findSortingSlotResult.Rotation.Value ? 1 : 0,
R = findSortingSlotResult.Rotation.Value ? ItemRotation.Vertical : ItemRotation.Horizontal,
Rotation = findSortingSlotResult.Rotation
};
}
@@ -168,13 +168,6 @@ public record ItemLocation
set;
}
[JsonPropertyName("r")]
public int R
{
get;
set;
}
[JsonPropertyName("isSearched")]
public bool? IsSearched
{
@@ -191,6 +184,22 @@ public record ItemLocation
get;
set;
}
[JsonPropertyName("r")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public ItemRotation R
{
get;
set;
}
}
public enum ItemRotation
{
// Token: 0x0400259F RID: 9631
Horizontal,
// Token: 0x040025A0 RID: 9632
Vertical
}
public record Upd