コミットメタ情報

リビジョンdf69404bbe6afe9f35e9485e1366a34ec94eadee (tree)
日時2018-04-07 18:53:04
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

春季大演習のカウンタを実装する

変更サマリ

差分

--- a/KancolleSniffer.Test/QuestInfoTest.cs
+++ b/KancolleSniffer.Test/QuestInfoTest.cs
@@ -845,11 +845,11 @@ namespace KancolleSniffer.Test
845845 /// 318: 給糧艦「伊良湖」の支援
846846 /// </summary>
847847 [TestMethod]
848- public void PracticeResult_303_304_302_311_318()
848+ public void PracticeResult_303_304_302_311_315_318()
849849 {
850850 var battleInfo = new BattleInfo(null, null);
851- var questInfo = new QuestInfo(null, battleInfo, () => new DateTime(2015, 1, 1));
852- questInfo.InspectQuestList(CreateQuestList(new[] {302, 303, 304, 311, 318}));
851+ var questInfo = new QuestInfo(null, battleInfo, () => new DateTime(2015, 1, 1)) {AcceptMax = 6};
852+ questInfo.InspectQuestList(CreateQuestList(new[] {302, 303, 304, 311, 315, 318}));
853853
854854 battleInfo.InjectResultStatus(new[]
855855 {
@@ -862,15 +862,16 @@ namespace KancolleSniffer.Test
862862 .SequenceEqual(new[]
863863 {
864864 new {Id = 302, Now = 1}, new {Id = 303, Now = 2}, new {Id = 304, Now = 1},
865- new {Id = 311, Now = 1}, new {Id = 318, Now = 0}
865+ new {Id = 311, Now = 1}, new {Id = 315, Now = 1}, new {Id = 318, Now = 0}
866866 }));
867867 // 318
868868 battleInfo.Result.Friend.Main[0] = ShipStatus(3, 200);
869869 questInfo.InspectPracticeResult(Js(new {api_win_rank = "A"}));
870- PAssert.That(() => questInfo.Quests[4].Count.Now == 1);
871- questInfo.Quests[4].Count.Now = 3;
870+ var q318 = questInfo.Quests[5];
871+ PAssert.That(() => q318.Count.Now == 1);
872+ q318.Count.Now = 3;
872873 questInfo.InspectQuestList(CreateQuestList(new[] {318}));
873- PAssert.That(() => questInfo.Quests[4].Count.Now == 3, "進捗調節しない");
874+ PAssert.That(() => q318.Count.Now == 3, "進捗調節しない");
874875 }
875876
876877 /// <summary>
--- a/KancolleSniffer/QuestInfo.cs
+++ b/KancolleSniffer/QuestInfo.cs
@@ -281,6 +281,7 @@ namespace KancolleSniffer
281281 {304, new QuestPractice {Interval = Daily, Max = 5, Win = true, Material = new[] {0, 0, 1, 0}}}, // 304: 「演習」で他提督を圧倒せよ!
282282 {302, new QuestPractice {Interval = Weekly, Max = 20, Win = true, Material = new[] {0, 0, 2, 1}}}, // 302: 大規模演習
283283 {311, new QuestPractice {Interval = Daily, Max = 7, Win = true, Material = new[] {0, 2, 0, 0}}}, // 311: 精鋭艦隊演習
284+ {315, new QuestPractice {Interval = Daily, Max = 8, Win = true, Material = new[] {0, 0, 0, 0}}}, // 315: 春季大演習
284285 {318, new QuestSpec {Interval = Daily, Max = 3, Material = new[] {0, 2, 2, 0}, AdjustCount = false}}, // 318: 給糧艦「伊良湖」の支援
285286
286287 {402, new QuestMission {Interval = Daily, Max = 3, Material = new[] {0, 0, 1, 0}}}, // 402: 「遠征」を3回成功させよう!
旧リポジトリブラウザで表示