コミットメタ情報

リビジョンb79ad2b44d11f685249f9e96c4aeede10f68d7d9 (tree)
日時2018-12-27 22:45:26
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

レーダー射撃戦で戦況が表示されないのを直す

変更サマリ

差分

--- a/KancolleSniffer.Test/BattleTest.cs
+++ b/KancolleSniffer.Test/BattleTest.cs
@@ -277,5 +277,16 @@ namespace KancolleSniffer.Test
277277 PAssert.That(() => sniffer.Battle.Result.Friend.Main[0].SpecialAttack == ShipStatus.Attack.Fire);
278278 PAssert.That(() => sniffer.Fleets[0].Ships[0].SpecialAttack == ShipStatus.Attack.Fired);
279279 }
280+
281+ /// <summary>
282+ /// レーザー射撃戦に対応する
283+ /// </summary>
284+ [TestMethod]
285+ public void LdShooting()
286+ {
287+ var sniffer = new Sniffer();
288+ SniffLogFile(sniffer, "ld_shooting_001");
289+ PAssert.That(() => sniffer.Battle.Result.Friend.Main[0].NowHp == 44);
290+ }
280291 }
281292 }
\ No newline at end of file
--- a/KancolleSniffer.Test/logs
+++ b/KancolleSniffer.Test/logs
@@ -1 +1 @@
1-Subproject commit f4075f057ca8d554bc12cb76bf9785f6bfa14072
1+Subproject commit a1e70eb79b837ee58b8a1867aa1120dc3a5b8330
--- a/KancolleSniffer/Sniffer.cs
+++ b/KancolleSniffer/Sniffer.cs
@@ -426,6 +426,7 @@ namespace KancolleSniffer
426426 return url.EndsWith("api_req_sortie/battle") ||
427427 url.EndsWith("api_req_sortie/airbattle") ||
428428 url.EndsWith("api_req_sortie/ld_airbattle") ||
429+ url.EndsWith("api_req_sortie/ld_shooting") ||
429430 url.EndsWith("api_req_battle_midnight/battle") ||
430431 url.EndsWith("api_req_battle_midnight/sp_midnight");
431432 }
旧リポジトリブラウザで表示