コミットメタ情報

リビジョン18921c1d396d12d8f1d1a348491a8de4c1cff84f (tree)
日時2017-08-15 21:08:05
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

海戦報告書の行の高さを低くする

変更サマリ

差分

--- a/KancolleSniffer/LogServer.cs
+++ b/KancolleSniffer/LogServer.cs
@@ -227,9 +227,37 @@ namespace KancolleSniffer
227227 data = data.Concat(Enumerable.Repeat("", 3)).ToArray();
228228 if (data.Length != 38)
229229 return data;
230+ if (data[5] == "T字戦(有利)")
231+ data[5] = "T字有利";
232+ if (data[5] == "T字戦(不利)")
233+ data[5] = "T字不利";
234+ if (data[6].EndsWith("航行序列"))
235+ data[6] = data[6].Substring(0, 4);
236+ if (data[7].EndsWith("航行序列"))
237+ data[7] = data[7].Substring(0, 4);
238+ data[37] = ShortenAirBattleResult(data[37]);
230239 return AddDamagedShip(data);
231240 }
232241
242+ private static string ShortenAirBattleResult(string result)
243+ {
244+ switch (result)
245+ {
246+ case "制空均衡":
247+ return "均衡";
248+ case "制空権確保":
249+ return "確保";
250+ case "航空優勢":
251+ return "優勢";
252+ case "航空劣勢":
253+ return "劣勢";
254+ case "制空権喪失":
255+ return "喪失";
256+ default:
257+ return "";
258+ }
259+ }
260+
233261 private static IEnumerable<string> AddDamagedShip(string[] data)
234262 {
235263 var damaged = new List<string>();
--- a/LogViewer/tags.html
+++ b/LogViewer/tags.html
@@ -62,7 +62,7 @@ opts.observable.on("mainTabChanged", function(idx) {
6262 <script>
6363 this.tables = [
6464 "<th>日付</th><th>海域</th><th>マス</th><th>ボス</th><th>ランク</th><th>ドロップ艦種</th><th>ドロップ艦娘", // ドロップ
65-"<th>日付</th><th>海域</th><th>マス</th><th>ボス</th><th>ランク</th><th>艦隊行動</th><th>味方陣形</th><th>敵陣形</th><th>敵艦隊</th><th>味方艦1</th><th>味方艦1HP</th><th>味方艦2</th><th>味方艦2HP</th><th>味方艦3</th><th>味方艦3HP</th><th>味方艦4</th><th>味方艦4HP</th><th>味方艦5</th><th>味方艦5HP</th><th>味方艦6</th><th>味方艦6HP</th><th>大破艦</ht><th>敵艦1</th><th>敵艦1HP</th><th>敵艦2</th><th>敵艦2HP</th><th>敵艦3</th><th>敵艦3HP</th><th>敵艦4</th><th>敵艦4HP</th><th>敵艦5</th><th>敵艦5HP</th><th>敵艦6</th><th>敵艦6HP</th><th>味方制空値</th><th>敵制空値</th><th>制空状態</th>", // 海戦
65+"<th>日付</th><th style=\"min-width: 3.2em;\">海域</th><th>マス</th><th>ボス</th><th>ランク</th><th>艦隊行動</th><th>味方陣形</th><th>敵陣形</th><th style=\"min-width: 3.2em;\">敵艦隊</th><th>味方艦1</th><th>味方艦1HP</th><th>味方艦2</th><th>味方艦2HP</th><th>味方艦3</th><th>味方艦3HP</th><th>味方艦4</th><th>味方艦4HP</th><th>味方艦5</th><th>味方艦5HP</th><th>味方艦6</th><th>味方艦6HP</th><th>大破艦</ht><th style=\"min-width: 2.2em;\">敵艦1</th><th>敵艦1HP</th><th style=\"min-width: 2.2em;\">敵艦2</th><th>敵艦2HP</th><th style=\"min-width: 2.2em;\">敵艦3</th><th>敵艦3HP</th><th style=\"min-width: 2.2em;\">敵艦4</th><th>敵艦4HP</th><th style=\"min-width: 2.2em;\">敵艦5</th><th>敵艦5HP</th><th style=\"min-width: 2.2em;\">敵艦6</th><th>敵艦6HP</th><th>味方制空値</th><th>敵制空値</th><th>制空状態</th>", // 海戦
6666 "<th>日付</th><th>結果</th><th>遠征</th><th>燃料</th><th>弾薬</th><th>鋼材</th><th>ボーキ</th><th>開発資材</th><th>高速修復材</th><th>高速建造材</th>", // 遠征
6767 "<th>日付</th><th>開発装備</th><th>種別</th><th>燃料</th><th>弾薬</th><th>鋼材</th><th>ボーキ</th><th>秘書艦</th><th>司令部Lv</th>", // 開発
6868 "<th>日付</th><th>種類</th><th>名前</th><th>艦種</th><th>燃料</th><th>弾薬</th><th>鋼材</th><th>ボーキ</th><th>開発資材</th><th>空きドック</th><th>秘書艦</th><th>司令部Lv</th>", // 建造
@@ -812,7 +812,7 @@ this.calcResult = function(data) {
812812 }
813813 if (isNewMonth) {
814814 endOfMonth = date.clone().endOf('month');
815- if (date.date() == endOfMonth.date())
815+ if (date.date() === endOfMonth.date())
816816 endOfMonth.add(1, 'months').endOf('month');
817817 endOfMonth.hour(22).startOf('hour');
818818 monthExp = lastExp === -1 ? exp : lastExp;
旧リポジトリブラウザで表示