diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index 3fc029b2d..491abf6c7 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -10,7 +10,7 @@
"rollForward": false
},
"csharpier": {
- "version": "0.28.2",
+ "version": "0.29.1",
"commands": [
"dotnet-csharpier"
],
diff --git a/Directory.Packages.props b/Directory.Packages.props
index c8f08b852..3642c3c47 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -4,7 +4,7 @@
-
+
@@ -31,7 +31,8 @@
-
+
+
@@ -40,7 +41,7 @@
-
+
@@ -59,7 +60,7 @@
-
+
@@ -80,7 +81,7 @@
-
+
\ No newline at end of file
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/DragaliaAPI.Database.Test.csproj b/DragaliaAPI/DragaliaAPI.Database.Test/DragaliaAPI.Database.Test.csproj
index 761e97d52..f20c806b7 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/DragaliaAPI.Database.Test.csproj
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/DragaliaAPI.Database.Test.csproj
@@ -5,6 +5,7 @@
+
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbFortBuildTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbFortBuildTest.cs
index 746408adb..825eda51a 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbFortBuildTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbFortBuildTest.cs
@@ -20,7 +20,7 @@ public void FortPlantDetailId_IsCorrect(FortPlants plantId, int level, int expec
{
ViewerId = 1,
PlantId = plantId,
- Level = level
+ Level = level,
};
entity.FortPlantDetailId.Should().Be(expectedDetailId);
@@ -34,7 +34,7 @@ public void BuildStatus_BothDatesEpoch_IsNeutral()
{
ViewerId = 1,
BuildStartDate = DateTimeOffset.UnixEpoch,
- BuildEndDate = DateTimeOffset.UnixEpoch
+ BuildEndDate = DateTimeOffset.UnixEpoch,
};
entity.BuildStatus.Should().Be(FortBuildStatus.Neutral);
@@ -56,7 +56,7 @@ FortBuildStatus expected
ViewerId = 1,
Level = level,
BuildStartDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(startOffsetSec),
- BuildEndDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(endOffsetSec)
+ BuildEndDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(endOffsetSec),
};
entity.BuildStatus.Should().Be(expected);
@@ -73,7 +73,7 @@ public void RemainTime_CalculatedCorrectly(int endOffsetSec, int expectedSec)
new()
{
ViewerId = 1,
- BuildEndDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(endOffsetSec)
+ BuildEndDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(endOffsetSec),
};
entity.RemainTime.Should().BeCloseTo(TimeSpan.FromSeconds(expectedSec), AssertionTolerance);
@@ -89,7 +89,7 @@ public void LastIncomeTime_CalculatedCorrectly(int incomeOffsetSec)
new()
{
ViewerId = 1,
- LastIncomeDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(incomeOffsetSec)
+ LastIncomeDate = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(incomeOffsetSec),
};
entity
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbWeaponBodyTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbWeaponBodyTest.cs
index 44cbda856..c763c9c70 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbWeaponBodyTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Entities/DbWeaponBodyTest.cs
@@ -21,7 +21,7 @@ public void AbilityOneResolver_ReturnsExpectedLevel(
int expectedLevel
)
{
- DbWeaponBody weapon = new() { WeaponBodyId = id, LimitOverCount = limitOverCount, };
+ DbWeaponBody weapon = new() { WeaponBodyId = id, LimitOverCount = limitOverCount };
weapon.Ability1Level.Should().Be(expectedLevel);
}
@@ -42,7 +42,7 @@ public void AbilityTwoResolver_ReturnsExpectedLevel(
int expectedLevel
)
{
- DbWeaponBody weapon = new() { WeaponBodyId = id, LimitOverCount = limitOverCount, };
+ DbWeaponBody weapon = new() { WeaponBodyId = id, LimitOverCount = limitOverCount };
weapon.Ability2Level.Should().Be(expectedLevel);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/FortRepositoryTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/FortRepositoryTest.cs
index 6d7e92591..39d040bcf 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/FortRepositoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/FortRepositoryTest.cs
@@ -42,7 +42,7 @@ await this.fixture.AddToDatabase(
{
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.Dragonata,
- Level = 10
+ Level = 10,
}
);
@@ -57,7 +57,7 @@ await this.fixture.AddToDatabase(
{
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.BroadleafTree,
- Level = 3
+ Level = 3,
}
);
@@ -124,7 +124,7 @@ public async Task GetBuilding_GetsBuilding()
BuildStartDate = DateTimeOffset.MinValue,
LastIncomeDate = DateTimeOffset.UnixEpoch,
PositionX = 3,
- PositionZ = 4
+ PositionZ = 4,
};
await this.fixture.AddToDatabase(build);
@@ -147,7 +147,7 @@ public async Task GetBuilding_NotFound_Throws()
BuildStartDate = DateTimeOffset.MinValue,
LastIncomeDate = DateTimeOffset.UnixEpoch,
PositionX = 3,
- PositionZ = 4
+ PositionZ = 4,
};
await this.fixture.AddToDatabase(build);
@@ -199,36 +199,36 @@ await this.fixture.AddRangeToDatabase(
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.PalmTree,
BuildStartDate = DateTimeOffset.MinValue,
- BuildEndDate = DateTimeOffset.MaxValue
+ BuildEndDate = DateTimeOffset.MaxValue,
},
new()
{
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.Lectern,
BuildStartDate = DateTimeOffset.MinValue,
- BuildEndDate = DateTimeOffset.MaxValue
+ BuildEndDate = DateTimeOffset.MaxValue,
},
new()
{
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.Snowdrake,
BuildStartDate = DateTimeOffset.MinValue,
- BuildEndDate = DateTimeOffset.UtcNow - TimeSpan.FromSeconds(22)
+ BuildEndDate = DateTimeOffset.UtcNow - TimeSpan.FromSeconds(22),
},
new()
{
ViewerId = DbTestFixture.ViewerId,
PlantId = FortPlants.Wishmill,
BuildStartDate = DateTimeOffset.UnixEpoch,
- BuildEndDate = DateTimeOffset.UnixEpoch
+ BuildEndDate = DateTimeOffset.UnixEpoch,
},
new()
{
ViewerId = DbTestFixture.ViewerId + 1,
PlantId = FortPlants.FafnirStatueFlame,
BuildStartDate = DateTimeOffset.UnixEpoch,
- BuildEndDate = DateTimeOffset.MaxValue
- }
+ BuildEndDate = DateTimeOffset.MaxValue,
+ },
}
);
@@ -281,7 +281,7 @@ public async Task AddDojos_AddsDojos()
FortPlants.LanceDojo,
FortPlants.ManacasterDojo,
FortPlants.StaffDojo,
- FortPlants.WandDojo
+ FortPlants.WandDojo,
};
foreach (FortPlants plant in plants)
@@ -309,7 +309,7 @@ public async Task AddToStorage_IsTotalQuantity_AddsBuilds()
{
ViewerId = DbTestFixture.ViewerId + 1,
PlantId = FortPlants.FlameDracolith,
- }
+ },
}
);
await this.fixture.ApiContext.SaveChangesAsync();
@@ -337,7 +337,7 @@ public async Task AddToStorage_IsTotalQuantity_AlreadyOwned_DoesNotAddBuilds()
this.fixture.ApiContext.PlayerFortBuilds.AddRange(
new List()
{
- new() { ViewerId = DbTestFixture.ViewerId, PlantId = FortPlants.WindDracolith, }
+ new() { ViewerId = DbTestFixture.ViewerId, PlantId = FortPlants.WindDracolith },
}
);
await this.fixture.ApiContext.SaveChangesAsync();
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/InventoryRepositoryTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/InventoryRepositoryTest.cs
index 73b986bf0..652c6596d 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/InventoryRepositoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/InventoryRepositoryTest.cs
@@ -48,7 +48,7 @@ await this.fixture.ApiContext.AddAsync(
{
ViewerId = ViewerId,
MaterialId = Materials.FirestormPrism,
- Quantity = 0
+ Quantity = 0,
}
);
@@ -98,14 +98,14 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
{
ViewerId = ViewerId + 2,
MaterialId = Materials.AbaddonOrb,
- Quantity = 5
+ Quantity = 5,
},
new()
{
ViewerId = ViewerId,
MaterialId = Materials.AbaddonOrb,
Quantity = 50,
- }
+ },
}
);
@@ -119,7 +119,7 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
{
ViewerId = ViewerId,
MaterialId = Materials.AbaddonOrb,
- Quantity = 50
+ Quantity = 50,
},
opts => opts.Excluding(x => x.Owner)
);
@@ -135,7 +135,7 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
{
ViewerId = ViewerId + 4,
MaterialId = Materials.AbaddonOrb,
- Quantity = 5
+ Quantity = 5,
},
new()
{
@@ -148,7 +148,7 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
ViewerId = ViewerId,
MaterialId = Materials.InfernoOrb,
Quantity = 50,
- }
+ },
}
);
@@ -161,7 +161,7 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
{
ViewerId = ViewerId,
MaterialId = Materials.TsunamiOrb,
- Quantity = 50
+ Quantity = 50,
},
opts => opts.Excluding(x => x.Owner)
)
@@ -170,7 +170,7 @@ await this.fixture.ApiContext.PlayerMaterials.AddRangeAsync(
{
ViewerId = ViewerId,
MaterialId = Materials.InfernoOrb,
- Quantity = 50
+ Quantity = 50,
},
opts => opts.Excluding(x => x.Owner)
)
@@ -187,14 +187,14 @@ await this.fixture.AddRangeToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.Valor,
- Quantity = 5
+ Quantity = 5,
},
new()
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.Acclaim,
- Quantity = 5
- }
+ Quantity = 5,
+ },
}
);
@@ -227,7 +227,7 @@ await this.fixture.AddRangeToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.SummerEstelleSkin,
- Quantity = 5
+ Quantity = 5,
},
}
);
@@ -259,7 +259,7 @@ await this.fixture.AddToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
Quantity = 5,
- MaterialId = Materials.Dragonfruit
+ MaterialId = Materials.Dragonfruit,
}
);
@@ -274,7 +274,7 @@ await this.fixture.AddToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
Quantity = 5,
- MaterialId = Materials.FafnirMedal
+ MaterialId = Materials.FafnirMedal,
}
);
@@ -291,14 +291,14 @@ await this.fixture.AddRangeToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.ValentinesGift,
- Quantity = 5
+ Quantity = 5,
},
new()
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.QuantumCog,
- Quantity = 5
- }
+ Quantity = 5,
+ },
}
);
@@ -307,7 +307,7 @@ await this.inventoryRepository.CheckQuantity(
new Dictionary()
{
{ Materials.ValentinesGift, 5 },
- { Materials.QuantumCog, 5 }
+ { Materials.QuantumCog, 5 },
}
)
)
@@ -325,8 +325,8 @@ await this.fixture.AddRangeToDatabase(
{
ViewerId = IdentityTestUtils.ViewerId,
MaterialId = Materials.ValeriosConviction,
- Quantity = 5
- }
+ Quantity = 5,
+ },
}
);
@@ -335,7 +335,7 @@ await this.inventoryRepository.CheckQuantity(
new Dictionary()
{
{ Materials.ValeriosConviction, 5 },
- { Materials.ValeriosDevotion, 5 }
+ { Materials.ValeriosDevotion, 5 },
}
)
)
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/PartyRepositoryTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/PartyRepositoryTest.cs
index 9cbecc740..5530012a5 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/PartyRepositoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/PartyRepositoryTest.cs
@@ -48,8 +48,8 @@ public async Task SetParty_UpdatesDatabase()
PartyNo = 3,
Units = new List()
{
- new() { UnitNo = 1, CharaId = Charas.Ieyasu }
- }
+ new() { UnitNo = 1, CharaId = Charas.Ieyasu },
+ },
};
await this.partyRepository.SetParty(toAdd);
@@ -84,7 +84,7 @@ public async Task SetParty_HandlesOverfilledUnitList()
new() { UnitNo = 3, CharaId = Charas.Nobunaga },
new() { UnitNo = 4, CharaId = Charas.Chitose },
new() { UnitNo = 4, CharaId = Charas.Hanabusa },
- }
+ },
};
await this.partyRepository.SetParty(toAdd);
@@ -104,7 +104,7 @@ public async Task SetParty_HandlesOverfilledUnitList()
new(1, Charas.Ieyasu),
new(2, Charas.Botan),
new(3, Charas.Mitsuhide),
- new(4, Charas.Chitose)
+ new(4, Charas.Chitose),
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/QuestRepositoryTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/QuestRepositoryTest.cs
index 70af47cd8..8b8385440 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/QuestRepositoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/QuestRepositoryTest.cs
@@ -30,7 +30,7 @@ await this.fixture.AddRangeToDatabase(
new List()
{
new() { ViewerId = ViewerId, QuestId = 1 },
- new() { ViewerId = ViewerId + 1, QuestId = 2 }
+ new() { ViewerId = ViewerId + 1, QuestId = 2 },
}
);
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/WeaponRepositoryTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/WeaponRepositoryTest.cs
index d8d1b8732..4addc06aa 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/WeaponRepositoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Repositories/WeaponRepositoryTest.cs
@@ -34,7 +34,7 @@ await this.fixture.AddRangeToDatabase(
new List()
{
new() { ViewerId = 2, WeaponBodyId = WeaponBodies.SoldiersBrand },
- new() { ViewerId = 1, WeaponBodyId = WeaponBodies.AbsoluteAqua }
+ new() { ViewerId = 1, WeaponBodyId = WeaponBodies.AbsoluteAqua },
}
);
@@ -50,7 +50,7 @@ await this.fixture.AddRangeToDatabase(
new List()
{
new() { ViewerId = 1, WeaponPassiveAbilityId = 1010107 },
- new() { ViewerId = 1, WeaponPassiveAbilityId = 1010108 }
+ new() { ViewerId = 1, WeaponPassiveAbilityId = 1010108 },
}
);
@@ -73,7 +73,7 @@ public async Task Add_AddsToDatabase()
new DbWeaponBody()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponBodyId = WeaponBodies.Arondight
+ WeaponBodyId = WeaponBodies.Arondight,
}
);
}
@@ -86,11 +86,11 @@ await this.fixture.AddRangeToDatabase(
{
WeaponBodies.Abyssbringer,
WeaponBodies.Blitzfang,
- WeaponBodies.Camelot
+ WeaponBodies.Camelot,
}.Select(x => new DbWeaponBody()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponBodyId = x
+ WeaponBodyId = x,
})
);
@@ -112,7 +112,7 @@ await this.fixture.AddToDatabase(
new DbWeaponBody()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponBodyId = WeaponBodies.Nothung
+ WeaponBodyId = WeaponBodies.Nothung,
}
);
@@ -134,7 +134,7 @@ await this.fixture.AddToDatabase(
new DbWeaponBody()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponBodyId = WeaponBodies.InfernoApogee
+ WeaponBodyId = WeaponBodies.InfernoApogee,
}
);
@@ -156,7 +156,7 @@ await this.fixture.AddToDatabase(
new DbWeaponPassiveAbility()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponPassiveAbilityId = passiveId
+ WeaponPassiveAbilityId = passiveId,
}
);
}
@@ -168,7 +168,7 @@ await this.fixture.AddToDatabase(
new DbWeaponBody()
{
ViewerId = IdentityTestUtils.ViewerId,
- WeaponBodyId = WeaponBodies.RoaringWeald
+ WeaponBodyId = WeaponBodies.RoaringWeald,
}
);
@@ -198,7 +198,7 @@ public async Task AddSkin_AddsSkin()
ViewerId = IdentityTestUtils.ViewerId,
WeaponSkinId = 4,
IsNew = false,
- GetTime = DateTimeOffset.UtcNow
+ GetTime = DateTimeOffset.UtcNow,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database.Test/Utils/TutorialFlagUtilTest.cs b/DragaliaAPI/DragaliaAPI.Database.Test/Utils/TutorialFlagUtilTest.cs
index e5d57c19e..bd00c429d 100644
--- a/DragaliaAPI/DragaliaAPI.Database.Test/Utils/TutorialFlagUtilTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Database.Test/Utils/TutorialFlagUtilTest.cs
@@ -17,7 +17,7 @@ public void ConvertIntToFlagList()
{
(int)TutorialFlags.GrowthDragon,
(int)TutorialFlags.GuildTutorial,
- (int)TutorialFlags.SagaTutorial
+ (int)TutorialFlags.SagaTutorial,
}
);
}
@@ -31,7 +31,7 @@ public void ConvertFlagIntListToInt()
{
(int)TutorialFlags.GrowthDragon,
(int)TutorialFlags.GuildTutorial,
- (int)TutorialFlags.SagaTutorial
+ (int)TutorialFlags.SagaTutorial,
}
)
.Should()
@@ -47,7 +47,7 @@ public void ConvertFlagIntListToInt_AddOverload()
{
(int)TutorialFlags.GrowthDragon,
(int)TutorialFlags.GuildTutorial,
- (int)TutorialFlags.SagaTutorial
+ (int)TutorialFlags.SagaTutorial,
},
1 << 3
)
diff --git a/DragaliaAPI/DragaliaAPI.Database/Entities/DbNewsItem.cs b/DragaliaAPI/DragaliaAPI.Database/Entities/DbNewsItem.cs
index f7a202820..7f67910f9 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Entities/DbNewsItem.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Entities/DbNewsItem.cs
@@ -73,7 +73,7 @@ public void Configure(EntityTypeBuilder builder)
Description =
"The below infographic shows the endeavour rewards available for the progressing the Mercurial Gauntlet.",
BodyImagePath = "/dawnshard/news/mg-endeavours.webp",
- Date = new DateTimeOffset(2024, 06, 02, 16, 07, 00, TimeSpan.FromHours(1))
+ Date = new DateTimeOffset(2024, 06, 02, 16, 07, 00, TimeSpan.FromHours(1)),
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Entities/DbWeaponBody.cs b/DragaliaAPI/DragaliaAPI.Database/Entities/DbWeaponBody.cs
index 1ebc3513a..e4a701dcc 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Entities/DbWeaponBody.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Entities/DbWeaponBody.cs
@@ -126,7 +126,7 @@ public int SkillNo
{
weaponData.ChangeSkillId1,
weaponData.ChangeSkillId2,
- weaponData.ChangeSkillId3
+ weaponData.ChangeSkillId3,
};
return GetCurrentSkillNo(skillIds);
diff --git a/DragaliaAPI/DragaliaAPI.Database/Repositories/InventoryRepository.cs b/DragaliaAPI/DragaliaAPI.Database/Repositories/InventoryRepository.cs
index 47a9141ae..f8b059133 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Repositories/InventoryRepository.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Repositories/InventoryRepository.cs
@@ -36,7 +36,7 @@ public DbPlayerMaterial AddMaterial(Materials type)
{
ViewerId = this.playerIdentityService.ViewerId,
MaterialId = type,
- Quantity = 0
+ Quantity = 0,
}
)
.Entity;
@@ -72,7 +72,7 @@ await this.apiContext.AddAsync(
{
ViewerId = this.playerIdentityService.ViewerId,
MaterialId = item,
- Quantity = 0
+ Quantity = 0,
}
)
).Entity;
diff --git a/DragaliaAPI/DragaliaAPI.Database/Repositories/PartyRepository.cs b/DragaliaAPI/DragaliaAPI.Database/Repositories/PartyRepository.cs
index 7fc332bd2..16e735ec8 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Repositories/PartyRepository.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Repositories/PartyRepository.cs
@@ -84,7 +84,7 @@ private static List CleanUnitList(ICollection original
ViewerId = original.First().ViewerId,
PartyNo = original.First().PartyNo,
UnitNo = i,
- CharaId = 0
+ CharaId = 0,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Repositories/QuestRepository.cs b/DragaliaAPI/DragaliaAPI.Database/Repositories/QuestRepository.cs
index 4973dfea0..0ea2d9f8b 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Repositories/QuestRepository.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Repositories/QuestRepository.cs
@@ -55,7 +55,7 @@ public async Task GetQuestEventAsync(int questEventId)
new DbQuestEvent
{
ViewerId = playerIdentityService.ViewerId,
- QuestEventId = questEventId
+ QuestEventId = questEventId,
}
)
.Entity;
diff --git a/DragaliaAPI/DragaliaAPI.Database/Repositories/UnitRepository.cs b/DragaliaAPI/DragaliaAPI.Database/Repositories/UnitRepository.cs
index ab2649caa..b76e034ac 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Repositories/UnitRepository.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Repositories/UnitRepository.cs
@@ -83,7 +83,7 @@ public DbSetUnit AddCharaSetData(Charas charaId, int setNo)
ViewerId = this.playerIdentityService.ViewerId,
CharaId = charaId,
UnitSetNo = setNo,
- UnitSetName = $"Set {setNo}"
+ UnitSetName = $"Set {setNo}",
}
)
.Entity;
@@ -128,7 +128,7 @@ int additionalAttack
TalismanAbilityId3 = abilityId3,
AdditionalHp = additionalHp,
AdditionalAttack = additionalAttack,
- GetTime = DateTimeOffset.UtcNow
+ GetTime = DateTimeOffset.UtcNow,
}
)
.Entity;
diff --git a/DragaliaAPI/DragaliaAPI.Database/Repositories/WeaponRepository.cs b/DragaliaAPI/DragaliaAPI.Database/Repositories/WeaponRepository.cs
index 8ffef53b8..50d316c0d 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Repositories/WeaponRepository.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Repositories/WeaponRepository.cs
@@ -73,7 +73,7 @@ await this.apiContext.PlayerWeapons.AddAsync(
new DbWeaponBody()
{
ViewerId = this.playerIdentityService.ViewerId,
- WeaponBodyId = weaponBodyId
+ WeaponBodyId = weaponBodyId,
}
);
}
@@ -99,7 +99,7 @@ await this.apiContext.PlayerWeaponSkins.AddAsync(
{
ViewerId = this.playerIdentityService.ViewerId,
WeaponSkinId = weaponSkinId,
- GetTime = DateTimeOffset.UtcNow
+ GetTime = DateTimeOffset.UtcNow,
}
);
}
@@ -142,7 +142,7 @@ await this.apiContext.PlayerPassiveAbilities.AddAsync(
new()
{
ViewerId = this.playerIdentityService.ViewerId,
- WeaponPassiveAbilityId = passiveAbility.Id
+ WeaponPassiveAbilityId = passiveAbility.Id,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Utils/CharaConstants.cs b/DragaliaAPI/DragaliaAPI.Database/Utils/CharaConstants.cs
index 6dddbbcf0..6ba6b2567 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Utils/CharaConstants.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Utils/CharaConstants.cs
@@ -121,6 +121,6 @@ public static byte GetMaxLevelFor(int rarity)
6961950,
7551950,
8186950,
- 8866950
+ 8866950,
}.ToImmutableList();
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Utils/CharaUtils.cs b/DragaliaAPI/DragaliaAPI.Database/Utils/CharaUtils.cs
index aa222430a..444d0ee9f 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Utils/CharaUtils.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Utils/CharaUtils.cs
@@ -31,7 +31,7 @@ public static int CalculateBaseHp(CharaData adventurer, int level, int rarity)
3 => adventurer.MinHp3,
4 => adventurer.MinHp4,
5 => adventurer.MinHp5,
- _ => throw new ArgumentException("Invalid rarity!")
+ _ => throw new ArgumentException("Invalid rarity!"),
};
lvlBase = MinLevel;
}
@@ -59,7 +59,7 @@ public static int CalculateBaseAttack(CharaData adventurer, int level, int rarit
3 => adventurer.MinAtk3,
4 => adventurer.MinAtk4,
5 => adventurer.MinAtk5,
- _ => throw new ArgumentException("Invalid rarity!")
+ _ => throw new ArgumentException("Invalid rarity!"),
};
lvlBase = MinLevel;
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Utils/DragonConstants.cs b/DragaliaAPI/DragaliaAPI.Database/Utils/DragonConstants.cs
index c94443a93..2799cf0c1 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Utils/DragonConstants.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Utils/DragonConstants.cs
@@ -158,7 +158,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
2732280,
2925060,
3135840,
- 3365620
+ 3365620,
}.ToImmutableArray();
public const int MaxRelLevel = 30;
@@ -171,7 +171,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
DragonGifts.FloralCirclet,
DragonGifts.CompellingBook,
DragonGifts.ManaEssence,
- DragonGifts.GoldenChalice
+ DragonGifts.GoldenChalice,
}.ToImmutableArray();
public static readonly ImmutableDictionary FavorVals = new Dictionary<
@@ -192,7 +192,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
{ DragonGifts.FourLeafClover, 1000 },
{ DragonGifts.DragonyuleCake, 1000 },
{ DragonGifts.ValentinesCard, 1000 },
- { DragonGifts.PupGrub, 200 }
+ { DragonGifts.PupGrub, 200 },
}.ToImmutableDictionary();
public static readonly ImmutableDictionary BuyGiftPrices = new Dictionary<
@@ -209,7 +209,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
{ DragonGifts.FloralCirclet, 12000 },
{ DragonGifts.CompellingBook, 12000 },
{ DragonGifts.ManaEssence, 12000 },
- { DragonGifts.GoldenChalice, 15000 }
+ { DragonGifts.GoldenChalice, 15000 },
}.ToImmutableDictionary();
public const float FavMulti = 1.5f;
@@ -245,7 +245,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
27300,
30100,
33100,
- 36300
+ 36300,
}.ToImmutableArray();
public static readonly ImmutableArray BondXpLimitsPuppy = new[]
@@ -279,7 +279,7 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
2600,
2700,
2800,
- 2900
+ 2900,
}.ToImmutableArray();
public static readonly IImmutableSet UnsummonableDragons = new HashSet
@@ -297,6 +297,6 @@ public static byte GetMaxLevelFor(int rarity, int limitBreak)
Dragons.MiniMercs,
Dragons.MiniJupi,
Dragons.MiniZodi,
- Dragons.Puppy
+ Dragons.Puppy,
}.ToImmutableHashSet();
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Utils/MissionState.cs b/DragaliaAPI/DragaliaAPI.Database/Utils/MissionState.cs
index c6e3687bf..80266e574 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Utils/MissionState.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Utils/MissionState.cs
@@ -5,5 +5,5 @@ public enum MissionState
Invalid = -1,
InProgress,
Completed,
- Claimed
+ Claimed,
}
diff --git a/DragaliaAPI/DragaliaAPI.Database/Utils/TutorialFlagUtil.cs b/DragaliaAPI/DragaliaAPI.Database/Utils/TutorialFlagUtil.cs
index 5f04ad749..15f5b86d7 100644
--- a/DragaliaAPI/DragaliaAPI.Database/Utils/TutorialFlagUtil.cs
+++ b/DragaliaAPI/DragaliaAPI.Database/Utils/TutorialFlagUtil.cs
@@ -33,7 +33,7 @@ public enum TutorialFlags
AlbumTutorial = 1027,
ServerMostDefinitelyDiabolos = 1028,
SagaTutorial = 1029,
- ServerClearSixteenthChapter = 1030
+ ServerClearSixteenthChapter = 1030,
}
public static class TutorialFlagUtil
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/CustomWebApplicationFactory.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/CustomWebApplicationFactory.cs
index cb130b10e..2d6defc7f 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/CustomWebApplicationFactory.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/CustomWebApplicationFactory.cs
@@ -67,8 +67,8 @@ public async Task InitializeAsync()
{
EndPoints = new EndPointCollection
{
- { this.testContainersHelper.RedisHost, this.testContainersHelper.RedisPort }
- }
+ { this.testContainersHelper.RedisHost, this.testContainersHelper.RedisPort },
+ },
}
);
}
@@ -104,8 +104,11 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
{
EndPoints = new()
{
- { this.testContainersHelper.RedisHost, this.testContainersHelper.RedisPort }
- }
+ {
+ this.testContainersHelper.RedisHost,
+ this.testContainersHelper.RedisPort
+ },
+ },
};
options.InstanceName = "RedisInstance";
});
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CastleStoryTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CastleStoryTest.cs
index 92657c7c8..97c303495 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CastleStoryTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CastleStoryTest.cs
@@ -29,8 +29,8 @@ await this.Client.PostMsgpack(
{
EntityType = EntityTypes.Wyrmite,
EntityQuantity = 50,
- EntityId = 0
- }
+ EntityId = 0,
+ },
}
);
@@ -39,7 +39,7 @@ await this.Client.PostMsgpack(
.BeEquivalentTo(
new List()
{
- new() { CastleStoryId = 1, IsRead = true, }
+ new() { CastleStoryId = 1, IsRead = true },
}
);
}
@@ -53,7 +53,7 @@ public async Task ReadStory_StoryRead_ResponseHasNoRewards()
ViewerId = ViewerId,
State = StoryState.Read,
StoryId = 2,
- StoryType = StoryTypes.Castle
+ StoryType = StoryTypes.Castle,
}
);
await this.ApiContext.SaveChangesAsync();
@@ -107,7 +107,7 @@ await this.Client.PostMsgpack(
ViewerId = ViewerId,
State = StoryState.Read,
StoryId = 3,
- StoryType = StoryTypes.Castle
+ StoryType = StoryTypes.Castle,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CharaTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CharaTest.cs
index 5e0b41a39..09f108c7c 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CharaTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/CharaTest.cs
@@ -86,7 +86,7 @@ await this.Client.PostMsgpack(
Charas.Celliera,
new List()
{
- new AtgenEnemyPiece() { Id = Materials.GoldCrystal, Quantity = 300 }
+ new AtgenEnemyPiece() { Id = Materials.GoldCrystal, Quantity = 300 },
}
)
)
@@ -199,7 +199,7 @@ await this.AddToDatabase(
ViewerId = ViewerId,
StoryId = storyId,
State = StoryState.Read,
- StoryType = StoryTypes.Chara
+ StoryType = StoryTypes.Chara,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DragonTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DragonTest.cs
index ed1d3573c..be11334c5 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DragonTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DragonTest.cs
@@ -34,7 +34,7 @@ public DragonBuildUpTheoryData()
#region GarudaDragonSacrifice
List setupDragons = new List
{
- new DbPlayerDragonData(0, Dragons.Garuda)
+ new DbPlayerDragonData(0, Dragons.Garuda),
};
DbPlayerDragonData dragon = new DbPlayerDragonData(0, Dragons.Garuda);
dragon.AttackPlusCount = 25;
@@ -83,9 +83,9 @@ public async Task DragonBuildUp_ReturnsUpgradedDragonData(DragonBuildUpTestCase
testCase.MatType == EntityTypes.Dragon
? (int)dbDragonSacrifice.DragonKeyId
: testCase.UpgradeMat,
- Quantity = testCase.UsedQuantity
- }
- }
+ Quantity = testCase.UsedQuantity,
+ },
+ },
};
DragonBuildupResponse response = (
@@ -125,9 +125,9 @@ public async Task DragonBuildUp_ReturnsDragonDataWithAugments()
{
Type = EntityTypes.Material,
Id = (int)Materials.AmplifyingDragonscale,
- Quantity = 25
- }
- }
+ Quantity = 25,
+ },
+ },
};
DragonBuildupResponse? response = (
@@ -169,7 +169,7 @@ await this.ApiContext.PlayerMaterials.FindAsync(
DragonResetPlusCountRequest request = new DragonResetPlusCountRequest()
{
DragonKeyId = (ulong)dragon.DragonKeyId,
- PlusCountType = PlusCountType.Atk
+ PlusCountType = PlusCountType.Atk,
};
DragonSetLockResponse? response = (
@@ -228,8 +228,8 @@ public async Task DragonBuyGiftToSendMultiple_IncreasesReliabilityAndReturnsGift
DragonGiftIdList = new List()
{
DragonGifts.FreshBread,
- DragonGifts.TastyMilk
- }
+ DragonGifts.TastyMilk,
+ },
};
DragonBuyGiftToSendMultipleResponse? response = (
@@ -270,7 +270,7 @@ await this.AddToDatabase(
DragonBuyGiftToSendRequest request = new DragonBuyGiftToSendRequest()
{
DragonId = Dragons.HighJupiter,
- DragonGiftId = DragonGifts.HeartyStew
+ DragonGiftId = DragonGifts.HeartyStew,
};
DragonBuyGiftToSendResponse? response = (
@@ -307,7 +307,7 @@ public async Task DragonSendGiftMultiple_IncreasesReliabilityAndReturnsGifts()
{
DragonId = Dragons.HighMercury,
DragonGiftId = DragonGifts.FourLeafClover,
- Quantity = 10
+ Quantity = 10,
};
DragonSendGiftMultipleResponse? response = (
@@ -335,7 +335,7 @@ public async Task DragonGiftSendMultiple_ReachLevel5_ReturnsExpectedRewardReliab
{
DragonId = Dragons.HighMercury,
DragonGiftId = DragonGifts.FourLeafClover,
- Quantity = 1
+ Quantity = 1,
};
DragonSendGiftMultipleResponse? response = (
@@ -354,8 +354,8 @@ await this.Client.PostMsgpack(
{
Level = 5,
IsReleaseStory = true,
- LevelupEntityList = []
- }
+ LevelupEntityList = [],
+ },
}
);
}
@@ -370,14 +370,14 @@ await this.AddToDatabase(
{
Type = MissionType.Drill,
Id = missionId,
- State = MissionState.InProgress
+ State = MissionState.InProgress,
}
);
await this.AddRangeToDatabase(
[
- new DbPlayerDragonReliability() { DragonId = Dragons.Apollo, },
- new DbPlayerDragonReliability() { DragonId = Dragons.Kagutsuchi }
+ new DbPlayerDragonReliability() { DragonId = Dragons.Apollo },
+ new DbPlayerDragonReliability() { DragonId = Dragons.Kagutsuchi },
]
);
@@ -437,7 +437,7 @@ await this.Client.PostMsgpack(
Id = missionId,
Type = MissionType.Drill,
Progress = 30,
- State = MissionState.Completed
+ State = MissionState.Completed,
}
);
}
@@ -450,7 +450,7 @@ public async Task DragonSendGift_IncreasesReliabilityAndReturnsGifts()
DragonSendGiftRequest request = new DragonSendGiftRequest()
{
DragonId = Dragons.Puppy,
- DragonGiftId = DragonGifts.PupGrub
+ DragonGiftId = DragonGifts.PupGrub,
};
DragonSendGiftResponse? response = (
@@ -478,7 +478,7 @@ await this.AddToDatabase(
ViewerId = ViewerId,
StoryId = storyId,
State = StoryState.Read,
- StoryType = StoryTypes.Dragon
+ StoryType = StoryTypes.Dragon,
}
);
}
@@ -488,7 +488,7 @@ await this.AddToDatabase(
{
DragonId = Dragons.MidgardsormrZero,
DragonGiftId = DragonGifts.FourLeafClover,
- Quantity = 100
+ Quantity = 100,
};
DragaliaResponse? response = (
@@ -517,7 +517,7 @@ public DragonLimitBreakTheoryData()
new List()
{
new DbPlayerDragonData(0, Dragons.Juggernaut),
- new DbPlayerDragonData(0, Dragons.Juggernaut)
+ new DbPlayerDragonData(0, Dragons.Juggernaut),
},
1,
DragonLimitBreakMatTypes.Dupe
@@ -529,7 +529,7 @@ public DragonLimitBreakTheoryData()
new DragonLimitBreakTestCase(
new List()
{
- new DbPlayerDragonData(0, Dragons.Midgardsormr)
+ new DbPlayerDragonData(0, Dragons.Midgardsormr),
},
1,
DragonLimitBreakMatTypes.Stone
@@ -550,7 +550,7 @@ public DragonLimitBreakTheoryData()
new DragonLimitBreakTestCase(
new List()
{
- new DbPlayerDragonData(0, Dragons.HighBrunhilda)
+ new DbPlayerDragonData(0, Dragons.HighBrunhilda),
},
5,
DragonLimitBreakMatTypes.SpheresLB5
@@ -584,9 +584,9 @@ public async Task DragonLimitBreak_LimitBreaks(DragonLimitBreakTestCase testCase
TargetId =
testCase.LbMatType == DragonLimitBreakMatTypes.Dupe
? (ulong)dbDragonSacrifice!.DragonKeyId
- : 0
- }
- }
+ : 0,
+ },
+ },
};
DragonBuildupResponse? response = (
@@ -624,7 +624,7 @@ public async Task DragonSetLock_ReturnsLockDragonData()
DragonSetLockRequest request = new DragonSetLockRequest()
{
DragonKeyId = (ulong)dragon.DragonKeyId,
- IsLock = true
+ IsLock = true,
};
DragonSetLockResponse? response = (
@@ -659,7 +659,7 @@ public async Task DragonSell_SuccessfulSale()
DragonSellRequest request = new DragonSellRequest()
{
- DragonKeyIdList = new List() { (ulong)dragon.DragonKeyId }
+ DragonKeyIdList = new List() { (ulong)dragon.DragonKeyId },
};
DragonSellResponse? response = (
@@ -705,8 +705,8 @@ public async Task DragonSell_Multi_SuccessfulSale()
DragonKeyIdList = new List()
{
(ulong)dragonSimurgh.DragonKeyId,
- (ulong)dragonStribog.DragonKeyId
- }
+ (ulong)dragonStribog.DragonKeyId,
+ },
};
DragonSellResponse? response = (
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DungeonTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DungeonTest.cs
index ef4058ceb..e5ceef28c 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DungeonTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/DungeonTest.cs
@@ -14,7 +14,7 @@ await this.Client.PostMsgpack(
new DungeonStartStartRequest()
{
PartyNoList = new List() { 2 },
- QuestId = 100010306
+ QuestId = 100010306,
}
)
).Data.IngameData.DungeonKey;
@@ -39,7 +39,7 @@ await this.Client.PostMsgpack(
new DungeonStartStartRequest()
{
PartyNoList = new List() { 1 },
- QuestId = 100010207
+ QuestId = 100010207,
}
)
).Data.IngameData.DungeonKey;
@@ -59,7 +59,7 @@ await this.Client.PostMsgpack(
IsHost = true,
QuestId = 100010207,
WallId = 0,
- WallLevel = 0
+ WallLevel = 0,
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/EulaTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/EulaTest.cs
index a4a303f3e..420137ec2 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/EulaTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/EulaTest.cs
@@ -23,7 +23,7 @@ await this.Client.PostMsgpack("eula/get_version_list
new("gb", "en_us", 1, 1),
new("gb", "en_eu", 1, 1),
new("us", "en_us", 1, 6),
- new("us", "en_eu", 1, 6)
+ new("us", "en_eu", 1, 6),
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/FriendTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/FriendTest.cs
index 351e9f88e..ef5e5a36e 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/FriendTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/FriendTest.cs
@@ -50,7 +50,7 @@ await this.Client.PostMsgpack(
ExAbility2Level = 5,
Skill1Level = 3,
Skill2Level = 2,
- IsUnlockEditSkill = true
+ IsUnlockEditSkill = true,
},
SupportDragon = new()
{
@@ -64,7 +64,7 @@ await this.Client.PostMsgpack(
Ability2Level = 5,
HpPlusCount = 50,
AttackPlusCount = 50,
- LimitBreakCount = 4
+ LimitBreakCount = 4,
},
SupportWeaponBody = new()
{
@@ -75,14 +75,14 @@ await this.Client.PostMsgpack(
EquipableCount = 4,
AdditionalCrestSlotType1Count = 1,
AdditionalCrestSlotType2Count = 0,
- AdditionalCrestSlotType3Count = 2
+ AdditionalCrestSlotType3Count = 2,
},
SupportTalisman = new()
{
TalismanKeyId = 0,
TalismanId = Talismans.GalaEmile,
AdditionalAttack = 100,
- AdditionalHp = 100
+ AdditionalHp = 100,
},
SupportCrestSlotType1List = new List()
{
@@ -93,7 +93,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 50,
AttackPlusCount = 50,
- EquipableCount = 4
+ EquipableCount = 4,
},
new()
{
@@ -102,7 +102,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 50,
AttackPlusCount = 50,
- EquipableCount = 4
+ EquipableCount = 4,
},
new()
{
@@ -111,7 +111,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 50,
AttackPlusCount = 50,
- EquipableCount = 4
+ EquipableCount = 4,
},
},
SupportCrestSlotType2List = new List()
@@ -123,7 +123,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 50,
AttackPlusCount = 50,
- EquipableCount = 4
+ EquipableCount = 4,
},
new()
{
@@ -132,7 +132,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 50,
AttackPlusCount = 50,
- EquipableCount = 4
+ EquipableCount = 4,
},
},
SupportCrestSlotType3List = new List()
@@ -144,7 +144,7 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 40,
AttackPlusCount = 40,
- EquipableCount = 4
+ EquipableCount = 4,
},
new()
{
@@ -153,10 +153,10 @@ await this.Client.PostMsgpack(
LimitBreakCount = 4,
HpPlusCount = 40,
AttackPlusCount = 40,
- EquipableCount = 4
- }
+ EquipableCount = 4,
+ },
},
- Guild = new() { GuildId = 0, GuildName = "Guild" }
+ Guild = new() { GuildId = 0, GuildName = "Guild" },
},
o => o.Excluding(x => x.LastLoginDate)
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/MatchingTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/MatchingTest.cs
index e59ed9f9e..7fe50001a 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/MatchingTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/MatchingTest.cs
@@ -30,8 +30,8 @@ public async Task GetRoomList_ReturnsRoomList()
{
ActorNr = 1,
ViewerId = ViewerId,
- PartyNoList = new List() { 1 }
- }
+ PartyNoList = new List() { 1 },
+ },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -42,7 +42,7 @@ public async Task GetRoomList_ReturnsRoomList()
ObjectiveTextId = 2,
},
MatchingCompatibleId = 36,
- }
+ },
}
);
@@ -79,7 +79,7 @@ await this.Client.PostMsgpack(
QuestType = QuestTypes.Dungeon,
RoomMemberList = new List()
{
- new() { ViewerId = (ulong)ViewerId, }
+ new() { ViewerId = (ulong)ViewerId },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -87,12 +87,12 @@ await this.Client.PostMsgpack(
UnacceptedElementTypeList = new List() { 1, 2, 3, 4, 5 },
UnacceptedWeaponTypeList = new List() { 1, 2 },
RequiredPartyPower = 100,
- ObjectiveTextId = 2
+ ObjectiveTextId = 2,
},
CompatibleId = 36,
MemberNum = 1,
- }
- }
+ },
+ },
}
);
}
@@ -115,8 +115,8 @@ public async Task GetRoomListByQuestId_ReturnsRoomList()
{
ActorNr = 1,
ViewerId = ViewerId,
- PartyNoList = new List() { 1 }
- }
+ PartyNoList = new List() { 1 },
+ },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -127,7 +127,7 @@ public async Task GetRoomListByQuestId_ReturnsRoomList()
ObjectiveTextId = 2,
},
MatchingCompatibleId = 36,
- }
+ },
}
);
@@ -164,7 +164,7 @@ await this.Client.PostMsgpack(
QuestType = QuestTypes.Dungeon,
RoomMemberList = new List()
{
- new() { ViewerId = (ulong)ViewerId, }
+ new() { ViewerId = (ulong)ViewerId },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -172,12 +172,12 @@ await this.Client.PostMsgpack(
UnacceptedElementTypeList = new List() { 1, 2, 3, 4, 5 },
UnacceptedWeaponTypeList = new List() { 1, 2 },
RequiredPartyPower = 100,
- ObjectiveTextId = 2
+ ObjectiveTextId = 2,
},
CompatibleId = 36,
MemberNum = 1,
- }
- }
+ },
+ },
}
);
}
@@ -198,8 +198,8 @@ public async Task GetRoomName_ReturnsRoom()
{
ActorNr = 1,
ViewerId = ViewerId,
- PartyNoList = new List() { 1 }
- }
+ PartyNoList = new List() { 1 },
+ },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -244,7 +244,7 @@ await this.Client.PostMsgpack(
QuestType = QuestTypes.Dungeon,
RoomMemberList = new List()
{
- new() { ViewerId = (ulong)ViewerId, }
+ new() { ViewerId = (ulong)ViewerId },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -252,7 +252,7 @@ await this.Client.PostMsgpack(
UnacceptedElementTypeList = new List() { 1, 2, 3, 4, 5 },
UnacceptedWeaponTypeList = new List() { 1, 2 },
RequiredPartyPower = 100,
- ObjectiveTextId = 2
+ ObjectiveTextId = 2,
},
CompatibleId = 36,
MemberNum = 1,
@@ -260,7 +260,7 @@ await this.Client.PostMsgpack(
ClusterName = "jp",
IsFriend = false,
QuestId = 204550501,
- RoomName = "7942ce2a-c0ac-4e41-8472-0cf5918f3953"
+ RoomName = "7942ce2a-c0ac-4e41-8472-0cf5918f3953",
}
);
}
@@ -281,8 +281,8 @@ public async Task GetRoomName_UnrecognizedViewerId_UsesDefault()
{
ActorNr = 1,
ViewerId = 40000,
- PartyNoList = new List() { 1 }
- }
+ PartyNoList = new List() { 1 },
+ },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -327,7 +327,7 @@ await this.Client.PostMsgpack(
QuestType = QuestTypes.Dungeon,
RoomMemberList = new List()
{
- new() { ViewerId = 40000, }
+ new() { ViewerId = 40000 },
},
StartEntryTime = DateTimeOffset.FromUnixTimeSeconds(1662160789),
EntryConditions = new()
@@ -335,7 +335,7 @@ await this.Client.PostMsgpack(
UnacceptedElementTypeList = new List() { 1, 2, 3, 4, 5 },
UnacceptedWeaponTypeList = new List() { 1, 2 },
RequiredPartyPower = 100,
- ObjectiveTextId = 2
+ ObjectiveTextId = 2,
},
CompatibleId = 36,
MemberNum = 1,
@@ -343,7 +343,7 @@ await this.Client.PostMsgpack(
ClusterName = "jp",
IsFriend = false,
QuestId = 204550501,
- RoomName = "7942ce2a-c0ac-4e41-8472-0cf5918f3953"
+ RoomName = "7942ce2a-c0ac-4e41-8472-0cf5918f3953",
}
);
}
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/PartyTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/PartyTest.cs
index 15470d2c2..81516da78 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/PartyTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/PartyTest.cs
@@ -34,8 +34,8 @@ await this.Client.PostMsgpack(
UnitNo = 1,
CharaId = Charas.Ilia,
EquipWeaponBodyId = WeaponBodies.DivineTrigger,
- EquipCrestSlotType1CrestId1 = AbilityCrestId.ADragonyuleforIlia
- }
+ EquipCrestSlotType1CrestId1 = AbilityCrestId.ADragonyuleforIlia,
+ },
},
"My New Party",
false,
@@ -118,7 +118,7 @@ await this.Client.PostMsgpack(
1,
new List()
{
- new() { UnitNo = 1, CharaId = storyZethia, }
+ new() { UnitNo = 1, CharaId = storyZethia },
},
"My New Party",
false,
@@ -136,7 +136,7 @@ public async Task SetPartySetting_InvalidRequest_NotOwnedCharacter_ReturnsResult
1,
new List()
{
- new(1, Charas.GalaGatov, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
+ new(1, Charas.GalaGatov, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
},
"My New Party",
false,
@@ -167,7 +167,7 @@ public async Task SetPartySetting_InvalidRequest_NotOwnedDragonKeyId_ReturnsResu
1,
new List()
{
- new(1, Charas.ThePrince, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
+ new(1, Charas.ThePrince, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
},
"My New Party",
false,
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UpdateTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UpdateTest.cs
index 686198a1f..61c0d1c2e 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UpdateTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UpdateTest.cs
@@ -46,8 +46,8 @@ await this.Client.PostMsgpack(
{
TargetList = new List()
{
- new AtgenTargetList() { TargetName = "emblem", TargetIdList = null, }
- }
+ new AtgenTargetList() { TargetName = "emblem", TargetIdList = null },
+ },
}
)
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UserTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UserTest.cs
index ea4d42a39..14661f7fd 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UserTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/UserTest.cs
@@ -24,7 +24,7 @@ public async Task LinkedNAccount_ReturnsExpectedResponse()
.BeEquivalentTo(
new UserLinkedNAccountResponse()
{
- UpdateDataList = new() { UserData = expectedUserData }
+ UpdateDataList = new() { UserData = expectedUserData },
},
opts => opts.Excluding(x => x.UpdateDataList.UserData.Crystal)
);
@@ -41,9 +41,9 @@ public async Task GetNAccountInfo_ReturnsExpectedResponse()
NAccountInfo = new()
{
Email = "placeholder@email.com",
- Nickname = "placeholder nickname"
+ Nickname = "placeholder nickname",
},
- UpdateDataList = new()
+ UpdateDataList = new(),
},
opts => opts.Excluding(x => x.UpdateDataList.UserData.Crystal)
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/WeaponBodyTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/WeaponBodyTest.cs
index db443c97e..233360294 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/WeaponBodyTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Dragalia/WeaponBodyTest.cs
@@ -54,7 +54,7 @@ await this.Client.PostMsgpack(
UnlockWeaponPassiveAbilityNoList = Enumerable.Repeat(0, 15),
IsNew = false,
GetTime = DateTimeOffset.UtcNow,
- }
+ },
}
);
@@ -114,7 +114,7 @@ WeaponUpgradeTestCase testCase
new()
{
WeaponBodyId = testCase.InitialState.WeaponBodyId,
- BuildupWeaponBodyPieceList = testCase.StepList
+ BuildupWeaponBodyPieceList = testCase.StepList,
};
WeaponBodyBuildupPieceResponse response = (
@@ -225,7 +225,7 @@ await this.AddToDatabase(
{
ViewerId = 0,
WeaponBodyId = WeaponBodies.ChanzelianCaster,
- BuildupCount = 4
+ BuildupCount = 4,
}
);
@@ -237,8 +237,8 @@ await this.Client.PostMsgpack(
WeaponBodyId = WeaponBodies.ChanzelianCaster,
BuildupWeaponBodyPieceList = new List()
{
- new() { BuildupPieceType = BuildupPieceTypes.Stats, Step = 40 }
- }
+ new() { BuildupPieceType = BuildupPieceTypes.Stats, Step = 40 },
+ },
},
ensureSuccessHeader: false
)
@@ -279,7 +279,7 @@ public WeaponUpgradeTheoryData()
{
{ Materials.PrimalWaterwyrmsSphere, 40 },
{ Materials.PrimalWaterwyrmsGreatsphere, 30 },
- { Materials.TwinklingSand, 2 }
+ { Materials.TwinklingSand, 2 },
},
4_000_000,
new()
@@ -307,16 +307,16 @@ public WeaponUpgradeTheoryData()
{
BuildupPieceType = BuildupPieceTypes.Unbind,
Step = 1,
- IsUseDedicatedMaterial = true
+ IsUseDedicatedMaterial = true,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Unbind,
Step = 2,
- IsUseDedicatedMaterial = true
+ IsUseDedicatedMaterial = true,
},
},
- new() { { Materials.AdamantiteIngot, 2 }, },
+ new() { { Materials.AdamantiteIngot, 2 } },
0,
new()
{
@@ -335,14 +335,14 @@ public WeaponUpgradeTheoryData()
{
ViewerId = 0,
WeaponBodyId = WeaponBodies.ChimeratechAnomalocaris,
- BuildupCount = 0
+ BuildupCount = 0,
},
Enumerable
.Range(1, 55)
.Select(x => new AtgenBuildupWeaponBodyPieceList()
{
BuildupPieceType = BuildupPieceTypes.Stats,
- Step = x
+ Step = x,
})
.ToList(),
new() { { Materials.BronzeWhetstone, 275 }, { Materials.GoldWhetstone, 5 } },
@@ -390,7 +390,7 @@ public WeaponUpgradeTheoryData()
{ Materials.StreamOrb, 16 },
{ Materials.OldCloth, 30 },
{ Materials.FloatingYellowCloth, 7 },
- { Materials.UnearthlyLantern, 1 }
+ { Materials.UnearthlyLantern, 1 },
},
160_000,
new DbWeaponBody()
@@ -415,16 +415,16 @@ public WeaponUpgradeTheoryData()
0,
0,
0,
- }
+ },
},
ExpPassiveAbilities: new List()
{
new() { ViewerId = 0, WeaponPassiveAbilityId = 1060203 },
- new() { ViewerId = 0, WeaponPassiveAbilityId = 1060204 }
+ new() { ViewerId = 0, WeaponPassiveAbilityId = 1060204 },
},
ExpNewSkins: new List()
{
- new() { ViewerId = 0, WeaponSkinId = 30640203 }
+ new() { ViewerId = 0, WeaponSkinId = 30640203 },
}
)
);
@@ -437,11 +437,11 @@ public WeaponUpgradeTheoryData()
{
ViewerId = 0,
WeaponBodyId = WeaponBodies.Ydalir,
- LimitOverCount = 1
+ LimitOverCount = 1,
},
new()
{
- new() { BuildupPieceType = BuildupPieceTypes.Refine, Step = 2, }
+ new() { BuildupPieceType = BuildupPieceTypes.Refine, Step = 2 },
},
new()
{
@@ -449,7 +449,7 @@ public WeaponUpgradeTheoryData()
{ Materials.PlaguedOnesMaskFragment, 30 },
{ Materials.RebelliousOnesInsanity, 10 },
{ Materials.RebelliousWolfsGale, 10 },
- { Materials.Orichalcum, 10 }
+ { Materials.Orichalcum, 10 },
},
2_500_000,
new()
@@ -460,7 +460,7 @@ public WeaponUpgradeTheoryData()
},
ExpNewSkins: new()
{
- new() { ViewerId = 0, WeaponSkinId = 30660103 }
+ new() { ViewerId = 0, WeaponSkinId = 30660103 },
}
)
);
@@ -475,7 +475,7 @@ public WeaponUpgradeTheoryData()
WeaponBodyId = WeaponBodies.ChimeratechProcyon,
EquipableCount = 1,
LimitBreakCount = 8,
- LimitOverCount = 1
+ LimitOverCount = 1,
},
new()
{
@@ -489,7 +489,7 @@ public WeaponUpgradeTheoryData()
{ Materials.BewitchingWings, 30 },
{ Materials.LuminousMane, 750 },
{ Materials.LuminousClaw, 200 },
- { Materials.LuminousHorn, 30 }
+ { Materials.LuminousHorn, 30 },
},
10_000_000,
new()
@@ -498,7 +498,7 @@ public WeaponUpgradeTheoryData()
WeaponBodyId = WeaponBodies.ChimeratechProcyon,
EquipableCount = 3,
LimitBreakCount = 8,
- LimitOverCount = 1
+ LimitOverCount = 1,
}
)
);
@@ -525,7 +525,7 @@ public WeaponUpgradeTheoryData()
{ Materials.UprootingOnesMaskFragment, 10 },
{ Materials.Orichalcum, 1 },
{ Materials.BlindingShard, 50 },
- { Materials.BlindingPrism, 30 }
+ { Materials.BlindingPrism, 30 },
},
4_500_000,
new()
@@ -534,7 +534,7 @@ public WeaponUpgradeTheoryData()
WeaponBodyId = WeaponBodies.QinghongJian,
LimitBreakCount = 8,
AdditionalCrestSlotType1Count = 1,
- AdditionalCrestSlotType3Count = 2
+ AdditionalCrestSlotType3Count = 2,
}
)
);
@@ -559,7 +559,7 @@ public WeaponUpgradeTheoryData()
{ Materials.PrimalWindwyrmsSphere, 25 },
{ Materials.PrimalWindwyrmsGreatsphere, 25 },
{ Materials.PrimalWindwyrmsEmerald, 14 },
- { Materials.Orichalcum, 15 }
+ { Materials.Orichalcum, 15 },
},
5_000_000,
new()
@@ -568,7 +568,7 @@ public WeaponUpgradeTheoryData()
WeaponBodyId = WeaponBodies.WindrulersFang,
LimitBreakCount = 8,
LimitOverCount = 1,
- FortPassiveCharaWeaponBuildupCount = 1
+ FortPassiveCharaWeaponBuildupCount = 1,
}
)
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/AbilityCrests/AbilityCrestTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/AbilityCrests/AbilityCrestTest.cs
index e157dea53..21e6677fd 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/AbilityCrests/AbilityCrestTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/AbilityCrests/AbilityCrestTest.cs
@@ -19,7 +19,7 @@ public async Task SetFavorite_SetsCorrespondingAbilityCrestToFavorite()
new DbAbilityCrest()
{
ViewerId = ViewerId,
- AbilityCrestId = AbilityCrestId.FromWhenceHeComes
+ AbilityCrestId = AbilityCrestId.FromWhenceHeComes,
}
);
@@ -31,7 +31,7 @@ await this.Client.PostMsgpack(
new AbilityCrestSetFavoriteRequest()
{
AbilityCrestId = AbilityCrestId.FromWhenceHeComes,
- IsFavorite = true
+ IsFavorite = true,
}
)
).Data;
@@ -58,7 +58,7 @@ await this.Client.PostMsgpack(
new AbilityCrestSetFavoriteRequest()
{
AbilityCrestId = AbilityCrestId.SweetSurprise,
- IsFavorite = true
+ IsFavorite = true,
},
ensureSuccessHeader: false
)
@@ -82,9 +82,9 @@ await this.Client.PostMsgpack(
{
BuildupPieceType = BuildupPieceTypes.Unbind,
IsUseDedicatedMaterial = true,
- Step = 1
- }
- }
+ Step = 1,
+ },
+ },
},
ensureSuccessHeader: false
)
@@ -102,7 +102,7 @@ public async Task BuildupPiece_InvalidStepsReturnsErrorAndDoesntAffectDatabase()
new DbAbilityCrest()
{
ViewerId = ViewerId,
- AbilityCrestId = AbilityCrestId.HappyNewYear
+ AbilityCrestId = AbilityCrestId.HappyNewYear,
}
);
@@ -120,15 +120,15 @@ await this.Client.PostMsgpack(
{
BuildupPieceType = BuildupPieceTypes.Unbind,
IsUseDedicatedMaterial = true,
- Step = 1
+ Step = 1,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Unbind,
IsUseDedicatedMaterial = true,
- Step = 4
- }
- }
+ Step = 4,
+ },
+ },
},
ensureSuccessHeader: false
)
@@ -154,7 +154,7 @@ public async Task BuildupPiece_SuccessDecreasesMaterialsAndUpdatesDatabase()
new DbAbilityCrest()
{
ViewerId = ViewerId,
- AbilityCrestId = AbilityCrestId.WorthyRivals
+ AbilityCrestId = AbilityCrestId.WorthyRivals,
}
);
@@ -177,33 +177,33 @@ await this.Client.PostMsgpack(
{
BuildupPieceType = BuildupPieceTypes.Unbind,
IsUseDedicatedMaterial = true,
- Step = 2
+ Step = 2,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Unbind,
IsUseDedicatedMaterial = false,
- Step = 1
+ Step = 1,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Stats,
IsUseDedicatedMaterial = false,
- Step = 3
+ Step = 3,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Stats,
IsUseDedicatedMaterial = false,
- Step = 2
+ Step = 2,
},
new()
{
BuildupPieceType = BuildupPieceTypes.Copies,
IsUseDedicatedMaterial = false,
- Step = 2
- }
- }
+ Step = 2,
+ },
+ },
}
);
@@ -241,7 +241,7 @@ public async Task BuildupPiece_DoesNotMutateGlobalProperty()
new DbAbilityCrest()
{
ViewerId = ViewerId,
- AbilityCrestId = AbilityCrestId.MaskofDeterminationLancesBoon
+ AbilityCrestId = AbilityCrestId.MaskofDeterminationLancesBoon,
}
);
@@ -258,9 +258,9 @@ await this.Client.PostMsgpack(
{
BuildupPieceType = BuildupPieceTypes.Stats,
IsUseDedicatedMaterial = false,
- Step = 2
+ Step = 2,
},
- ]
+ ],
}
);
@@ -280,9 +280,9 @@ await this.Client.PostMsgpack(
{
BuildupPieceType = BuildupPieceTypes.Stats,
IsUseDedicatedMaterial = false,
- Step = 2
+ Step = 2,
},
- ]
+ ],
}
);
}
@@ -298,8 +298,8 @@ await this.Client.PostMsgpack(
AbilityCrestId = AbilityCrestId.InanUnendingWorld,
PlusCountParamsList = new List()
{
- new() { PlusCount = 50, PlusCountType = PlusCountType.Hp, }
- }
+ new() { PlusCount = 50, PlusCountType = PlusCountType.Hp },
+ },
},
ensureSuccessHeader: false
)
@@ -319,7 +319,7 @@ public async Task BuildupPlusCount_InvalidStepsReturnsErrorAndDoesntAffectDataba
{
ViewerId = ViewerId,
AbilityCrestId = AbilityCrestId.TwinfoldBonds,
- AttackPlusCount = 26
+ AttackPlusCount = 26,
}
);
@@ -334,8 +334,8 @@ await this.Client.PostMsgpack(
PlusCountParamsList = new List()
{
new() { PlusCount = 50, PlusCountType = PlusCountType.Hp },
- new() { PlusCount = 25, PlusCountType = PlusCountType.Atk }
- }
+ new() { PlusCount = 25, PlusCountType = PlusCountType.Atk },
+ },
},
ensureSuccessHeader: false
)
@@ -367,7 +367,7 @@ public async Task BuildupPlusCount_SuccessDecreasesMaterialsAndUpdatesDatabase()
{
ViewerId = ViewerId,
AbilityCrestId = AbilityCrestId.EndlessWaltz,
- AttackPlusCount = 26
+ AttackPlusCount = 26,
}
);
@@ -381,8 +381,8 @@ await this.Client.PostMsgpack(
PlusCountParamsList = new List()
{
new() { PlusCount = 1, PlusCountType = PlusCountType.Hp },
- new() { PlusCount = 50, PlusCountType = PlusCountType.Atk, }
- }
+ new() { PlusCount = 50, PlusCountType = PlusCountType.Atk },
+ },
}
);
@@ -412,8 +412,8 @@ await this.Client.PostMsgpack(
PlusCountTypeList = new List()
{
PlusCountType.Hp,
- PlusCountType.Atk
- }
+ PlusCountType.Atk,
+ },
},
ensureSuccessHeader: false
)
@@ -432,7 +432,7 @@ public async Task ResetPlusCount_InvalidStepsReturnsErrorAndDoesntAffectDatabase
{
ViewerId = ViewerId,
AbilityCrestId = AbilityCrestId.TutelarysDestinyWolfsBoon,
- HpPlusCount = 40
+ HpPlusCount = 40,
}
);
@@ -444,7 +444,7 @@ await this.Client.PostMsgpack(
new AbilityCrestResetPlusCountRequest()
{
AbilityCrestId = AbilityCrestId.TutelarysDestinyWolfsBoon,
- PlusCountTypeList = new List() { PlusCountType.Hp, 0 }
+ PlusCountTypeList = new List() { PlusCountType.Hp, 0 },
},
ensureSuccessHeader: false
)
@@ -477,7 +477,7 @@ public async Task ResetPlusCount_SuccessRefundsMaterialsAndUpdatesDatabase()
ViewerId = ViewerId,
AbilityCrestId = AbilityCrestId.TheGeniusTacticianBowsBoon,
HpPlusCount = 40,
- AttackPlusCount = 1
+ AttackPlusCount = 1,
}
);
@@ -491,8 +491,8 @@ await this.Client.PostMsgpack(
PlusCountTypeList = new List()
{
PlusCountType.Hp,
- PlusCountType.Atk
- }
+ PlusCountType.Atk,
+ },
}
);
@@ -526,7 +526,7 @@ public async Task GetAbilityCrestSetList_SuccessfullyReturnsAbilityCrestSets()
ViewerId = ViewerId,
AbilityCrestSetNo = setNo,
AbilityCrestSetName = "test",
- CrestSlotType1CrestId1 = AbilityCrestId.WorthyRivals
+ CrestSlotType1CrestId1 = AbilityCrestId.WorthyRivals,
}
);
@@ -553,7 +553,7 @@ await this.Client.PostMsgpack(
ViewerId = ViewerId,
AbilityCrestSetNo = setNo,
AbilityCrestSetName = "test",
- CrestSlotType1CrestId1 = AbilityCrestId.WorthyRivals
+ CrestSlotType1CrestId1 = AbilityCrestId.WorthyRivals,
}
)
);
@@ -605,7 +605,7 @@ await this.Client.PostMsgpack(
{
AbilityCrestSetNo = setNo,
AbilityCrestSetName = "",
- RequestAbilityCrestSetData = new() { TalismanKeyId = 1 }
+ RequestAbilityCrestSetData = new() { TalismanKeyId = 1 },
}
);
@@ -638,8 +638,8 @@ await this.Client.PostMsgpack(
AbilityCrestSetName = "",
RequestAbilityCrestSetData = new()
{
- CrestSlotType2CrestId2 = AbilityCrestId.DragonsNest
- }
+ CrestSlotType2CrestId2 = AbilityCrestId.DragonsNest,
+ },
}
);
@@ -659,7 +659,7 @@ await this.Client.PostMsgpack(
new AbilityCrestUpdateAbilityCrestSetNameRequest()
{
AbilityCrestSetNo = setNo,
- AbilityCrestSetName = "test"
+ AbilityCrestSetName = "test",
}
);
@@ -689,7 +689,7 @@ await this.Client.PostMsgpack(
new AbilityCrestUpdateAbilityCrestSetNameRequest()
{
AbilityCrestSetNo = setNo,
- AbilityCrestSetName = "test"
+ AbilityCrestSetName = "test",
}
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dmode/DmodeTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dmode/DmodeTest.cs
index ee7e0cfca..4ee7826a7 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dmode/DmodeTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dmode/DmodeTest.cs
@@ -48,7 +48,7 @@ await Client.PostMsgpack(
{
EntityType = EntityTypes.Wyrmite,
EntityId = 0,
- EntityQuantity = 25
+ EntityQuantity = 25,
},
new()
{
@@ -61,7 +61,7 @@ await Client.PostMsgpack(
EntityType = EntityTypes.DmodePoint,
EntityId = (int)DmodePoint.Point2,
EntityQuantity = 1000,
- }
+ },
}
);
resp.Data.UpdateDataList.UserData.Crystal.Should().Be(oldWyrmite + 25);
@@ -82,19 +82,19 @@ await Client.PostMsgpack(
new()
{
PassiveNo = DmodeServitorPassiveType.BurstDamage,
- PassiveLevel = 2
+ PassiveLevel = 2,
},
new()
{
PassiveNo = DmodeServitorPassiveType.ResistUndead,
- PassiveLevel = 10
+ PassiveLevel = 10,
},
new()
{
PassiveNo = DmodeServitorPassiveType.ResistNatural,
- PassiveLevel = 2
- }
- }
+ PassiveLevel = 2,
+ },
+ },
}
);
@@ -119,7 +119,7 @@ await Client.PostMsgpack(
{
ViewerId = ViewerId,
PassiveId = DmodeServitorPassiveType.ResistNatural,
- Level = 2
+ Level = 2,
}
);
ApiContext
@@ -130,7 +130,7 @@ await Client.PostMsgpack(
{
ViewerId = ViewerId,
PassiveId = DmodeServitorPassiveType.ResistUndead,
- Level = 10
+ Level = 10,
}
);
ApiContext
@@ -141,7 +141,7 @@ await Client.PostMsgpack(
{
ViewerId = ViewerId,
PassiveId = DmodeServitorPassiveType.BurstDamage,
- Level = 2
+ Level = 2,
}
);
}
@@ -159,9 +159,9 @@ await this.Client.PostMsgpack(
Charas.HunterBerserker,
Charas.Empty,
Charas.Empty,
- Charas.Empty
+ Charas.Empty,
},
- TargetFloorNum = 30
+ TargetFloorNum = 30,
}
);
@@ -175,7 +175,7 @@ await this.Client.PostMsgpack(
CharaId4 = Charas.Empty,
TargetFloorNum = 30,
State = ExpeditionState.Playing,
- StartTime = DateTimeOffset.UtcNow
+ StartTime = DateTimeOffset.UtcNow,
}
);
@@ -195,7 +195,7 @@ await this.Client.PostMsgpack(
CharaId4 = Charas.Empty,
TargetFloorNum = 30,
State = ExpeditionState.Waiting,
- StartTime = resp.Data.DmodeExpedition.StartTime
+ StartTime = resp.Data.DmodeExpedition.StartTime,
}
);
finishResp
@@ -223,9 +223,9 @@ await this.Client.PostMsgpack(
Charas.HunterBerserker,
Charas.Chrom,
Charas.Cassandra,
- Charas.GalaMym
+ Charas.GalaMym,
},
- TargetFloorNum = 30
+ TargetFloorNum = 30,
}
);
@@ -239,7 +239,7 @@ await this.Client.PostMsgpack(
CharaId4 = Charas.GalaMym,
TargetFloorNum = 30,
State = ExpeditionState.Playing,
- StartTime = startTime
+ StartTime = startTime,
}
);
@@ -259,7 +259,7 @@ await this.Client.PostMsgpack(
CharaId4 = Charas.GalaMym,
TargetFloorNum = 30,
State = ExpeditionState.Waiting,
- StartTime = startTime
+ StartTime = startTime,
}
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/DmodeDungeon/DmodeDungeonTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/DmodeDungeon/DmodeDungeonTest.cs
index 376c857d4..fe8d7bb55 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/DmodeDungeon/DmodeDungeonTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/DmodeDungeon/DmodeDungeonTest.cs
@@ -24,8 +24,8 @@ await this.Client.PostMsgpack(
BringEditSkillCharaIdList = new List()
{
Charas.Ranzal,
- Charas.GalaCleo
- }
+ Charas.GalaCleo,
+ },
}
);
@@ -59,7 +59,7 @@ await this.Client.PostMsgpack(
CharaId = Charas.Shingen,
StartFloorNum = 30,
ServitorId = 1,
- BringEditSkillCharaIdList = new List() { Charas.Ranzal, Charas.GalaCleo }
+ BringEditSkillCharaIdList = new List() { Charas.Ranzal, Charas.GalaCleo },
}
);
@@ -107,7 +107,7 @@ await this.Client.PostMsgpack(
CharaId = Charas.Shingen,
StartFloorNum = 1,
ServitorId = 1,
- BringEditSkillCharaIdList = new List() { Charas.Ranzal, Charas.GalaCleo }
+ BringEditSkillCharaIdList = new List() { Charas.Ranzal, Charas.GalaCleo },
}
);
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/AutoRepeatTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/AutoRepeatTest.cs
index c37b19ce8..f748ecf1a 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/AutoRepeatTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/AutoRepeatTest.cs
@@ -23,8 +23,8 @@ await Client.PostMsgpack(
{
RepeatCount = 45,
RepeatType = RepeatSettingType.Specified,
- UseItemList = [UseItem.Honey]
- }
+ UseItemList = [UseItem.Honey],
+ },
}
)
).Data;
@@ -93,8 +93,8 @@ await Client.PostMsgpack(
{
RepeatCount = 45,
RepeatType = RepeatSettingType.Specified,
- UseItemList = [UseItem.Honey]
- }
+ UseItemList = [UseItem.Honey],
+ },
}
)
).Data;
@@ -138,8 +138,8 @@ await Client.PostMsgpack(
{
RepeatCount = 45,
RepeatType = RepeatSettingType.Specified,
- UseItemList = [UseItem.Honey]
- }
+ UseItemList = [UseItem.Honey],
+ },
}
)
).Data;
@@ -216,7 +216,7 @@ await AddToDatabase(
{
QuestId = questId,
State = 0,
- ViewerId = ViewerId
+ ViewerId = ViewerId,
}
);
@@ -235,8 +235,8 @@ await Client.PostMsgpack(
{
RepeatCount = 45,
RepeatType = RepeatSettingType.Specified,
- UseItemList = [UseItem.Honey]
- }
+ UseItemList = [UseItem.Honey],
+ },
}
)
).Data;
@@ -308,7 +308,7 @@ await Client.PostMsgpack("repeat/end")
new AtgenUserBuildEventItemList()
{
UserBuildEventItem = (int)BuildEventItemType.BuildEventPoint,
- EventItemValue = expectedPoints + expectedBoostPoints
+ EventItemValue = expectedPoints + expectedBoostPoints,
}
);
}
@@ -327,8 +327,8 @@ await Client.PostMsgpack(
{
RepeatCount = 45,
RepeatType = RepeatSettingType.Specified,
- UseItemList = [UseItem.Honey]
- }
+ UseItemList = [UseItem.Honey],
+ },
}
)
).Data;
diff --git a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/DungeonRecordTest.cs b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/DungeonRecordTest.cs
index a8f82c95c..85ff1c764 100644
--- a/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/DungeonRecordTest.cs
+++ b/DragaliaAPI/DragaliaAPI.Integration.Test/Features/Dungeon/DungeonRecordTest.cs
@@ -39,7 +39,7 @@ await AddToDatabase(
{
QuestId = questId,
State = 0,
- ViewerId = ViewerId
+ ViewerId = ViewerId,
}
);
@@ -73,11 +73,11 @@ await AddToDatabase(
{
Type = EntityTypes.Material,
Id = (int)Materials.Squishums,
- Quantity = 1
- }
- }
- }
- }
+ Quantity = 1,
+ },
+ },
+ },
+ },
},
new()
{
@@ -94,15 +94,15 @@ await AddToDatabase(
{
Type = EntityTypes.Material,
Id = (int)Materials.ImitationSquish,
- Quantity = 1
- }
- }
- }
- }
- }
+ Quantity = 1,
+ },
+ },
+ },
+ },
+ },
}
- }
- }
+ },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -121,14 +121,14 @@ await Client.PostMsgpack(
new()
{
AreaIdx = 1,
- Enemy = new List() { 1, 0 }
- }
+ Enemy = new List() { 1, 0 },
+ },
},
LiveUnitNoList = new List(),
DamageRecord = new List(),
DragonDamageRecord = new List(),
- BattleRoyalRecord = new AtgenBattleRoyalRecord()
- }
+ BattleRoyalRecord = new AtgenBattleRoyalRecord(),
+ },
}
)
).Data;
@@ -145,8 +145,8 @@ await Client.PostMsgpack(
{
Type = EntityTypes.Material,
Id = (int)Materials.Squishums,
- Quantity = 1
- }
+ Quantity = 1,
+ },
}
);
response.IngameResultData.RewardRecord.TakeCoin.Should().Be(10);
@@ -178,7 +178,7 @@ await Client.PostMsgpack(
IsMissionClear3 = true,
BestClearTime = 10,
LastDailyResetTime = DateTimeOffset.UtcNow,
- LastWeeklyResetTime = DateTimeOffset.UtcNow
+ LastWeeklyResetTime = DateTimeOffset.UtcNow,
}
);
@@ -196,7 +196,7 @@ await AddToDatabase(
{
QuestId = questId,
State = 0,
- ViewerId = ViewerId
+ ViewerId = ViewerId,
}
);
@@ -221,14 +221,14 @@ await Client.PostMsgpack(
new()
{
CharaId = Charas.ThePrince,
- EquipCrestSlotType1CrestId1 = AbilityCrestId.SistersDayOut
- }
+ EquipCrestSlotType1CrestId1 = AbilityCrestId.SistersDayOut,
+ },
},
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -247,8 +247,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -264,7 +264,7 @@ await Client.PostMsgpack(
[InlineData(22223, 222230404, 5)] // Shadow of the Mukuroshu - Defensive Battle EX
public async Task Record_CombatEvent_GrantsScore(int eventId, int questId, int wave)
{
- await AddToDatabase(new DbQuest() { QuestId = questId, State = 0, });
+ await AddToDatabase(new DbQuest() { QuestId = questId, State = 0 });
await Client.PostMsgpack(
"/memory_event/activate",
@@ -278,8 +278,8 @@ await Client.PostMsgpack(
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -298,7 +298,7 @@ await Client.PostMsgpack(
DamageRecord = [],
DragonDamageRecord = [],
Wave = wave,
- }
+ },
}
)
).Data;
@@ -316,7 +316,7 @@ public async Task Record_Event_BossBattle_CompletesMissions()
await this.AddRangeToDatabase(
[
new DbAbilityCrest() { AbilityCrestId = AbilityCrestId.HavingaSummerBall },
- new DbAbilityCrest() { AbilityCrestId = AbilityCrestId.SuperSoakingAndroids }
+ new DbAbilityCrest() { AbilityCrestId = AbilityCrestId.SuperSoakingAndroids },
]
);
@@ -335,13 +335,13 @@ await Client.PostMsgpack(
CharaId = Charas.ThePrince,
EquipCrestSlotType1CrestId1 = AbilityCrestId.SuperSoakingAndroids,
EquipCrestSlotType2CrestId1 = AbilityCrestId.HavingaSummerBall,
- }
+ },
},
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -360,8 +360,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -400,12 +400,12 @@ await Client.PostMsgpack(
DungeonSession mockSession =
new()
{
- Party = new List() { new() { CharaId = Charas.ThePrince, } },
+ Party = new List() { new() { CharaId = Charas.ThePrince } },
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -424,8 +424,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -433,7 +433,7 @@ await Client.PostMsgpack(
response
.UpdateDataList.QuestList!.Should()
.ContainEquivalentOf(
- new QuestList() { QuestId = exQuestId, IsAppear = true, },
+ new QuestList() { QuestId = exQuestId, IsAppear = true },
opts => opts.Including(x => x.QuestId).Including(x => x.IsAppear)
);
}
@@ -445,7 +445,7 @@ public async Task Record_Event_BossBattle_NoExBattleForEvent_DoesNotUnlockExBatt
int exQuestId = 208450401; // Not a valid quest
int eventId = 20845; // Toll of the Deep
- await this.AddToDatabase(new DbQuest() { QuestId = questId, PlayCount = 2, });
+ await this.AddToDatabase(new DbQuest() { QuestId = questId, PlayCount = 2 });
await Client.PostMsgpack(
"/memory_event/activate",
@@ -455,12 +455,12 @@ await Client.PostMsgpack(
DungeonSession mockSession =
new()
{
- Party = new List() { new() { CharaId = Charas.ThePrince, } },
+ Party = new List() { new() { CharaId = Charas.ThePrince } },
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -479,8 +479,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -502,12 +502,12 @@ await Client.PostMsgpack(
DungeonSession mockSession =
new()
{
- Party = new List() { new() { CharaId = Charas.ThePrince, } },
+ Party = new List() { new() { CharaId = Charas.ThePrince } },
QuestData = MasterAsset.QuestData.Get(exQuestId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -526,8 +526,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -535,7 +535,7 @@ await Client.PostMsgpack(
response
.UpdateDataList.QuestList!.Should()
.ContainEquivalentOf(
- new QuestList() { QuestId = exQuestId, IsAppear = false, },
+ new QuestList() { QuestId = exQuestId, IsAppear = false },
opts => opts.Including(x => x.QuestId).Including(x => x.IsAppear)
);
}
@@ -558,8 +558,8 @@ await Client.PostMsgpack(
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -578,8 +578,10 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 5 // Final wave
- }
+ Wave =
+ 5 // Final wave
+ ,
+ },
}
)
).Data;
@@ -611,8 +613,8 @@ await Client.PostMsgpack(
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -632,15 +634,15 @@ await Client.PostMsgpack(
{
AreaIdx = 0,
Enemy = [],
- EnemySmash = []
- }
+ EnemySmash = [],
+ },
],
LiveUnitNoList = new List(),
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 2
- }
+ Wave = 2,
+ },
}
)
).Data;
@@ -672,8 +674,8 @@ await Client.PostMsgpack(
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -692,8 +694,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -721,8 +723,8 @@ await Client.PostMsgpack(
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -743,15 +745,15 @@ await Client.PostMsgpack(
AreaIdx = 0,
DropObj = [],
Enemy = [],
- EnemySmash = []
- }
+ EnemySmash = [],
+ },
],
LiveUnitNoList = new List(),
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -791,23 +793,23 @@ await Client.PostMsgpack(
{
ParamId = 229030211,
EnemyIdx = 0, // Meadow Rat (10 points)
- EnemyDropList = []
+ EnemyDropList = [],
},
new()
{
ParamId = 229030217,
EnemyIdx = 1, // Wind Manticore (200 points)
- EnemyDropList = []
+ EnemyDropList = [],
},
new()
{
ParamId = 229030215,
EnemyIdx = 2, // Arrow Raptor (40 points)
- EnemyDropList = []
- }
+ EnemyDropList = [],
+ },
]
- }
- }
+ },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -830,16 +832,16 @@ await Client.PostMsgpack(
[
new() { Count = 1 },
new() { Count = 2 },
- new() { Count = 3 }
- ]
- }
+ new() { Count = 3 },
+ ],
+ },
],
LiveUnitNoList = new List(),
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
)
).Data;
@@ -858,12 +860,12 @@ public async Task Record_HandlesNonExistentQuestData()
DungeonSession mockSession =
new()
{
- Party = new List() { new() { CharaId = Charas.ThePrince, } },
+ Party = new List() { new() { CharaId = Charas.ThePrince } },
QuestData = MasterAsset.QuestData.Get(questId),
EnemyList = new Dictionary>()
{
- { 1, Enumerable.Empty() }
- }
+ { 1, Enumerable.Empty() },
+ },
};
string key = await this.StartDungeon(mockSession);
@@ -882,8 +884,8 @@ await Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
);
@@ -909,7 +911,7 @@ await this.AddToDatabase(
{
QuestId = questId,
State = 0,
- ViewerId = ViewerId
+ ViewerId = ViewerId,
}
);
@@ -919,7 +921,7 @@ await this.Client.PostMsgpack(
new DungeonStartStartMultiRequest()
{
PartyNoList = new[] { 4 }, // Flame team
- QuestId = questId
+ QuestId = questId,
}
)
).Data;
@@ -940,8 +942,8 @@ await this.Client.PostMsgpack(
DamageRecord = new List(),
DragonDamageRecord = new List(),
BattleRoyalRecord = new AtgenBattleRoyalRecord(),
- Wave = 3
- }
+ Wave = 3,
+ },
}
);
@@ -971,7 +973,7 @@ await AddToDatabase(
{
QuestId = questId,
State = 3,
- ViewerId = ViewerId
+ ViewerId = ViewerId,
}
);
@@ -984,7 +986,7 @@ await AddToDatabase(
{
Party = new List() { new() { CharaId = Charas.ThePrince } },
QuestData = MasterAsset.QuestData.Get(questId),
- EnemyList = new Dictionary>()
+ EnemyList = new Dictionary>(),
};
string key = await this.StartDungeon(mockSession);
@@ -1003,14 +1005,14 @@ await Client.PostMsgpack(
new()
{
AreaIdx = 1,
- Enemy = new List