Révision | f5a864721d45c2e816bf43d12c99a322da182950 (tree) |
---|---|
l'heure | 2020-05-10 17:58:40 |
Auteur | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
@@ -1210,6 +1210,55 @@ namespace KancolleSniffer.Test | ||
1210 | 1210 | } |
1211 | 1211 | |
1212 | 1212 | /// <summary> |
1213 | + /// 912: 工作艦「明石」護衛任務 | |
1214 | + /// </summary> | |
1215 | + [TestMethod] | |
1216 | + public void BattleResult_912() | |
1217 | + { | |
1218 | + var count = InjectQuest(912); | |
1219 | + _battleInfo.InjectResultStatus( | |
1220 | + new []{ShipStatus("明石"), ShipStatus(2), ShipStatus(2), ShipStatus(1)}, | |
1221 | + new ShipStatus[0], new ShipStatus[0], new ShipStatus[0]); | |
1222 | + | |
1223 | + InjectMapNext(13, 5); | |
1224 | + InjectBattleResult("A"); | |
1225 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {0, 0, 0, 0, 0}), "駆逐艦2隻はカウントしない"); | |
1226 | + | |
1227 | + _battleInfo.Result.Friend.Main[3] = ShipStatus(2); | |
1228 | + InjectBattleResult("B"); | |
1229 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {0, 0, 0, 0, 0}), "B勝利はカウントしない"); | |
1230 | + | |
1231 | + InjectBattleResult("A"); | |
1232 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0, 0}), "1-3"); | |
1233 | + | |
1234 | + InjectMapNext(21, 4); | |
1235 | + InjectBattleResult("A"); | |
1236 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0, 0}), "ボス以外はカウントしない"); | |
1237 | + | |
1238 | + _battleInfo.Result.Friend.Main[0] = ShipStatus(2); | |
1239 | + _battleInfo.Result.Friend.Main[1] = ShipStatus("明石"); | |
1240 | + InjectMapNext(21, 5); | |
1241 | + InjectBattleResult("A"); | |
1242 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 0, 0, 0, 0}), "旗艦明石以外はカウントしない"); | |
1243 | + | |
1244 | + _battleInfo.Result.Friend.Main[0] = ShipStatus("明石"); | |
1245 | + _battleInfo.Result.Friend.Main[1] = ShipStatus(2); | |
1246 | + InjectBattleResult("A"); | |
1247 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 0, 0, 0}), "2-1"); | |
1248 | + | |
1249 | + InjectMapNext(22, 5); | |
1250 | + InjectBattleResult("A"); | |
1251 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1, 0, 0}), "2-2"); | |
1252 | + | |
1253 | + InjectMapNext(23, 5); | |
1254 | + InjectBattleResult("A"); | |
1255 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1, 1, 0}), "2-3"); | |
1256 | + | |
1257 | + InjectMapNext(16, 8); | |
1258 | + PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1, 1, 1}), "1-6"); | |
1259 | + } | |
1260 | + | |
1261 | + /// <summary> | |
1213 | 1262 | /// 280と854以降を同時に遂行していると854以降がカウントされないことがある |
1214 | 1263 | /// </summary> |
1215 | 1264 | [TestMethod] |
@@ -76,6 +76,7 @@ namespace KancolleSniffer.Model | ||
76 | 76 | {903, new QuestSortie {Interval = Quarterly, MaxArray = new[] {1, 1, 1, 1}, Rank = "S", Maps = new[] {51, 54, 64, 65}, Material = new[] {0, 10, 0, 0}}}, // 903: 拡張「六水戦」、最前線へ! |
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 | + {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: 工作艦「明石」護衛任務 | |
79 | 80 | |
80 | 81 | {303, new QuestPractice {Interval = Daily, Max = 3, Rank = "E", Material = new[] {1, 0, 0, 0}}}, // 303: 「演習」で練度向上! |
81 | 82 | {304, new QuestPractice {Interval = Daily, Max = 5, Rank = "B", Material = new[] {0, 0, 1, 0}}}, // 304: 「演習」で他提督を圧倒せよ! |
@@ -319,6 +319,8 @@ namespace KancolleSniffer.Model | ||
319 | 319 | return specs.Names.Count("綾波改二", "敷波改二") == 2; |
320 | 320 | case 905: |
321 | 321 | return specs.Types.Count(type => type == 1) >= 3 && specs.Types.Length <= 5; |
322 | + case 912: | |
323 | + return specs.Flagship.Name.StartsWith("明石") && specs.Types.Count(type => type == 2) >= 3; | |
322 | 324 | case 318: |
323 | 325 | return specs.Types.Count(type => type == 3) >= 2; |
324 | 326 | case 330: |