Revision | 867323a9e115498d0446225d75b2960c26e8745b (tree) |
---|---|
Zeit | 2020-05-10 17:58:44 |
Autor | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
重巡戦隊、西へ!のカウンターを実装する
@@ -1259,6 +1259,50 @@ namespace KancolleSniffer.Test | ||
1259 | 1259 | } |
1260 | 1260 | |
1261 | 1261 | /// <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> | |
1262 | 1306 | /// 280と854以降を同時に遂行していると854以降がカウントされないことがある |
1263 | 1307 | /// </summary> |
1264 | 1308 | [TestMethod] |
@@ -77,6 +77,7 @@ namespace KancolleSniffer.Model | ||
77 | 77 | {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: 精鋭「十九駆」、躍り出る! |
78 | 78 | {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: 「海防艦」、海を護る! |
79 | 79 | {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: 重巡戦隊、西へ! | |
80 | 81 | |
81 | 82 | {303, new QuestPractice {Interval = Daily, Max = 3, Rank = "E", Material = new[] {1, 0, 0, 0}}}, // 303: 「演習」で練度向上! |
82 | 83 | {304, new QuestPractice {Interval = Daily, Max = 5, Rank = "B", Material = new[] {0, 0, 1, 0}}}, // 304: 「演習」で他提督を圧倒せよ! |
@@ -321,6 +321,8 @@ namespace KancolleSniffer.Model | ||
321 | 321 | return specs.Types.Count(type => type == 1) >= 3 && specs.Types.Length <= 5; |
322 | 322 | case 912: |
323 | 323 | 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; | |
324 | 326 | case 318: |
325 | 327 | return specs.Types.Count(type => type == 3) >= 2; |
326 | 328 | case 330: |