コミットメタ情報

リビジョンa7c60828c60138c0cb2d2cf371346d9bd9cdb6fa (tree)
日時2018-04-03 22:21:37
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

主力「陸攻」の調達と「洋上補給」物資の調達のカウンターを実装する

変更サマリ

差分

--- a/KancolleSniffer.Test/QuestInfoTest.cs
+++ b/KancolleSniffer.Test/QuestInfoTest.cs
@@ -968,6 +968,8 @@ namespace KancolleSniffer.Test
968968 /// <summary>
969969 /// 613: 資源の再利用
970970 /// 638: 対空機銃量産
971+ /// 643: 主力「陸攻」の調達
972+ /// 645: 「洋上補給」物資の調達
971973 /// 663: 新型艤装の継続研究
972974 /// 673: 装備開発力の整備
973975 /// 674: 工廠環境の整備
@@ -978,10 +980,10 @@ namespace KancolleSniffer.Test
978980 /// 680: 対空兵装の整備拡充
979981 /// </summary>
980982 [TestMethod]
981- public void DestroyItem_613_638_663_673_674_675_676_677_678()
983+ public void DestroyItem_613_638_643_645_663_673_674_675_676_677_678()
982984 {
983985 var itemInfo = new ItemInfo();
984- var questInfo = new QuestInfo(itemInfo, null, () => new DateTime(2015, 1, 1)) {AcceptMax = 10};
986+ var questInfo = new QuestInfo(itemInfo, null, () => new DateTime(2015, 1, 1)) {AcceptMax = 12};
985987
986988 itemInfo.InjectItemSpec(new[]
987989 {
@@ -996,17 +998,19 @@ namespace KancolleSniffer.Test
996998 new ItemSpec {Id = 13, Name = "61cm三連装魚雷", Type = 5},
997999 new ItemSpec {Id = 20, Name = "零式艦戦21型", Type = 6},
9981000 new ItemSpec {Id = 28, Name = "22号水上電探", Type = 12},
999- new ItemSpec {Id = 31, Name = "32号水上電探", Type = 13}
1001+ new ItemSpec {Id = 31, Name = "32号水上電探", Type = 13},
1002+ new ItemSpec {Id = 35, Name = "三式弾", Type = 18}
10001003 });
1001- var items = new[] {1, 37, 19, 4, 11, 75, 7, 25, 13, 20, 28, 31};
1004+ var items = new[] {1, 37, 19, 4, 11, 75, 7, 25, 13, 20, 28, 31, 35};
10021005 itemInfo.InjectItems(items);
10031006 questInfo.InspectQuestList(CreateQuestList(new[]
1004- {613, 638, 663, 673, 674, 675, 676, 677, 678, 680}));
1007+ {613, 638, 643, 645, 663, 673, 674, 675, 676, 677, 678, 680}));
10051008 questInfo.InspectDestroyItem(
10061009 $"api%5Fslotitem%5Fids={string.Join("%2C", Enumerable.Range(1, items.Length))}&api%5Fverno=1", null);
10071010 var scalar = new[]
10081011 {
1009- new {Id = 613, Now = 1}, new {Id = 638, Now = 1},
1012+
1013+ new {Id = 613, Now = 1}, new {Id = 638, Now = 1}, new {Id = 643, Now = 1}, new {Id = 645, Now = 1},
10101014 new {Id = 663, Now = 1}, new {Id = 673, Now = 1}, new {Id = 674, Now = 1}
10111015 };
10121016 foreach (var e in scalar)
--- a/KancolleSniffer/QuestInfo.cs
+++ b/KancolleSniffer/QuestInfo.cs
@@ -303,6 +303,8 @@ namespace KancolleSniffer
303303
304304 {613, new QuestSpec {Interval = Weekly, Max = 24, Material = new[] {0, 0, 0, 0}}}, // 613: 資源の再利用
305305 {638, new QuestDestroyItem {Interval = Weekly, Max = 6, Types = new[] {21}, Material = new[] {0, 0, 2, 1}}}, // 638: 対空機銃量産
306+ {643, new QuestDestroyItem {Interval = Quarterly, Max = 2, Ids = new[] {20}, Material = new[] {0, 0, 2, 0}, AdjustCount = false}}, // 643: 主力「陸攻」の調達
307+ {645, new QuestDestroyItem {Interval = Monthly, Max = 1, Ids = new[] {35}, Material = new[] {0, 0, 0, 0}, AdjustCount = false}}, // 645: 「洋上補給」物資の調達
306308 {663, new QuestDestroyItem {Interval = Quarterly, Max = 10, Types = new[] {3}, Material = new[] {0, 0, 3, 0}}}, // 663: 新型艤装の継続研究
307309 {673, new QuestDestroyItem {Interval = Daily, Max = 4, Types = new[] {1}, Shift = 1, Material = new[] {0, 0, 1, 0}}}, // 673: 装備開発力の整備
308310 {674, new QuestDestroyItem {Interval = Daily, Max = 3, Types = new[] {21}, Shift = 2, Material = new[] {0, 1, 1, 0}}}, // 674: 工廠環境の整備
旧リポジトリブラウザで表示