Preserve generated equipment rotation
This commit is contained in:
parent
f8460a3a05
commit
01f0d69b8d
15 changed files with 78 additions and 20 deletions
|
|
@ -248,6 +248,7 @@ await using (var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-s
|
|||
new AetheriaLoadoutItemSlot
|
||||
{
|
||||
Position = new AetheriaGridCoord { X = 0, Y = 0 },
|
||||
Rotation = "Clockwise",
|
||||
Item = new AetheriaLoadoutItem
|
||||
{
|
||||
ItemKey = itemKey.ToString(),
|
||||
|
|
@ -275,6 +276,7 @@ await using (var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-s
|
|||
new AetheriaEntityItemSlot
|
||||
{
|
||||
Position = new AetheriaGridCoord { X = 0, Y = 0 },
|
||||
Rotation = "CounterClockwise",
|
||||
ItemKey = itemKey.ToString(),
|
||||
Quality = 0.9,
|
||||
Durability = 0.8,
|
||||
|
|
@ -292,6 +294,7 @@ await using (var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-s
|
|||
new AetheriaLoadoutItemSlot
|
||||
{
|
||||
Position = new AetheriaGridCoord { X = 2, Y = 3 },
|
||||
Rotation = "Half",
|
||||
Item = new AetheriaLoadoutItem
|
||||
{
|
||||
ItemKey = itemKey.ToString(),
|
||||
|
|
@ -851,6 +854,7 @@ await using (var reopened = await AetheriaStateNode.OpenAsync(statePath, "aether
|
|||
|
||||
if (loadout?.RootEntity.Hull.ItemKey != AetheriaCatalogKeys.ItemDefinitionFromLegacyId(itemLegacyId).ToString() ||
|
||||
loadout.RootEntity.Equipment.Length != 1 ||
|
||||
loadout.RootEntity.Equipment[0].Rotation != "Clockwise" ||
|
||||
loadout.RootEntity.Equipment[0].Item.Enabled ||
|
||||
!loadout.RootEntity.Equipment[0].Item.OverrideShutdown ||
|
||||
loadout.RootEntity.WeaponGroups.Length != 1)
|
||||
|
|
@ -890,10 +894,12 @@ await using (var reopened = await AetheriaStateNode.OpenAsync(statePath, "aether
|
|||
entitySnapshot.Equipment[0].Quality != 0.9 ||
|
||||
entitySnapshot.Equipment[0].Durability != 0.8 ||
|
||||
entitySnapshot.Equipment[0].Quantity != 1 ||
|
||||
entitySnapshot.Equipment[0].Rotation != "CounterClockwise" ||
|
||||
entitySnapshot.Equipment[0].Enabled ||
|
||||
!entitySnapshot.Equipment[0].OverrideShutdown ||
|
||||
entitySnapshot.CargoContents.Length != 1 ||
|
||||
entitySnapshot.CargoContents[0].Items[0].Item.Quantity != 7 ||
|
||||
entitySnapshot.CargoContents[0].Items[0].Rotation != "Half" ||
|
||||
entitySnapshot.DockingBayAssignments.Length != 1 ||
|
||||
entitySnapshot.DockingBayAssignments[0] != -1 ||
|
||||
entitySnapshot.Visibility != 12.75 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue