• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision867323a9e115498d0446225d75b2960c26e8745b (tree)
l'heure2020-05-10 17:58:44
AuteurKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Message de Log

重巡戦隊、西へ!のカウンターを実装する

Change Summary

Modification

--- a/KancolleSniffer.Test/QuestCounterTest.cs
+++ b/KancolleSniffer.Test/QuestCounterTest.cs
@@ -1259,6 +1259,50 @@ namespace KancolleSniffer.Test
12591259 }
12601260
12611261 /// <summary>
1262+ /// 912: 重巡戦隊、西へ!
1263+ /// </summary>
1264+ [TestMethod]
1265+ public void BattleResult_914()
1266+ {
1267+ var count = InjectQuest(914);
1268+ _battleInfo.InjectResultStatus(
1269+ new []{ShipStatus(5), ShipStatus(5), ShipStatus(5), ShipStatus(1)},
1270+ new ShipStatus[0], new ShipStatus[0], new ShipStatus[0]);
1271+
1272+ InjectMapNext(41, 5);
1273+ InjectBattleResult("A");
1274+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {0, 0, 0, 0}), "駆逐艦なしはカウントしない");
1275+
1276+ _battleInfo.Result.Friend.Main[3] = ShipStatus(2);
1277+ InjectBattleResult("B");
1278+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {0, 0, 0, 0}), "B勝利はカウントしない");
1279+
1280+ InjectBattleResult("A");
1281+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0}), "4-1");
1282+
1283+ InjectMapNext(42, 4);
1284+ InjectBattleResult("A");
1285+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0}), "ボス以外はカウントしない");
1286+
1287+ InjectMapNext(42, 5);
1288+ _battleInfo.Result.Friend.Main[0] = ShipStatus(6);
1289+ InjectBattleResult("A");
1290+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0}), "重巡2隻はカウントしない");
1291+
1292+ _battleInfo.Result.Friend.Main[0] = ShipStatus(5);
1293+ InjectBattleResult("A");
1294+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 0, 0}), "4-2");
1295+
1296+ InjectMapNext(43, 5);
1297+ InjectBattleResult("A");
1298+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1, 0}), "4-3");
1299+
1300+ InjectMapNext(44, 5);
1301+ InjectBattleResult("A");
1302+ PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1, 1}), "4-3");
1303+ }
1304+
1305+ /// <summary>
12621306 /// 280と854以降を同時に遂行していると854以降がカウントされないことがある
12631307 /// </summary>
12641308 [TestMethod]
--- a/KancolleSniffer/Model/QuestCountList.cs
+++ b/KancolleSniffer/Model/QuestCountList.cs
@@ -77,6 +77,7 @@ namespace KancolleSniffer.Model
7777 {904, new QuestSortie {Interval = Yearly2, MaxArray = new[] {1, 1, 1, 1}, Rank = "S", Maps = new[] {25, 34, 45, 53}, Material = new[] {0, 8, 10, 4}}}, // 904: 精鋭「十九駆」、躍り出る!
7878 {905, new QuestSortie {Interval = Yearly2, MaxArray = new[] {1, 1, 1, 1, 1}, Rank = "A", Maps = new[] {11, 12, 13, 15, 16}, Material = new[] {0, 6, 8, 0}}}, // 905: 「海防艦」、海を護る!
7979 {912, new QuestSortie {Interval = Yearly3, MaxArray = new[] {1, 1, 1, 1, 1}, Rank = "A", Maps = new[] {13, 21, 22, 23, 16}, Material = new[] {0, 5, 6, 0}}}, // 912: 工作艦「明石」護衛任務
80+ {914, new QuestSortie {Interval = Yearly3, MaxArray = new[] {1, 1, 1, 1}, Rank = "A", Maps = new[] {41, 42, 43, 44}, Material = new[] {0, 5, 0, 4}}}, // 914: 重巡戦隊、西へ!
8081
8182 {303, new QuestPractice {Interval = Daily, Max = 3, Rank = "E", Material = new[] {1, 0, 0, 0}}}, // 303: 「演習」で練度向上!
8283 {304, new QuestPractice {Interval = Daily, Max = 5, Rank = "B", Material = new[] {0, 0, 1, 0}}}, // 304: 「演習」で他提督を圧倒せよ!
--- a/KancolleSniffer/Model/QuestCounter.cs
+++ b/KancolleSniffer/Model/QuestCounter.cs
@@ -321,6 +321,8 @@ namespace KancolleSniffer.Model
321321 return specs.Types.Count(type => type == 1) >= 3 && specs.Types.Length <= 5;
322322 case 912:
323323 return specs.Flagship.Name.StartsWith("明石") && specs.Types.Count(type => type == 2) >= 3;
324+ case 914:
325+ return specs.Types.Count(type => type == 5) >= 3 && specs.Types.Count(type => type == 2) >= 1;
324326 case 318:
325327 return specs.Types.Count(type => type == 3) >= 2;
326328 case 330: