• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisionf5a864721d45c2e816bf43d12c99a322da182950 (tree)
Zeit2020-05-10 17:58:40
AutorKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

工作艦「明石」護衛任務のカウンターを実装する

Ändern Zusammenfassung

Diff

--- a/KancolleSniffer.Test/QuestCounterTest.cs
+++ b/KancolleSniffer.Test/QuestCounterTest.cs
@@ -1210,6 +1210,55 @@ namespace KancolleSniffer.Test
12101210 }
12111211
12121212 /// <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>
12131262 /// 280と854以降を同時に遂行していると854以降がカウントされないことがある
12141263 /// </summary>
12151264 [TestMethod]
--- a/KancolleSniffer/Model/QuestCountList.cs
+++ b/KancolleSniffer/Model/QuestCountList.cs
@@ -76,6 +76,7 @@ namespace KancolleSniffer.Model
7676 {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: 拡張「六水戦」、最前線へ!
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: 「海防艦」、海を護る!
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: 工作艦「明石」護衛任務
7980
8081 {303, new QuestPractice {Interval = Daily, Max = 3, Rank = "E", Material = new[] {1, 0, 0, 0}}}, // 303: 「演習」で練度向上!
8182 {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
@@ -319,6 +319,8 @@ namespace KancolleSniffer.Model
319319 return specs.Names.Count("綾波改二", "敷波改二") == 2;
320320 case 905:
321321 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;
322324 case 318:
323325 return specs.Types.Count(type => type == 3) >= 2;
324326 case 330: