OSDN Git Service

出撃統計で単独でドロップしたアイテムが計上されないのを直す
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Mon, 28 May 2018 11:10:57 +0000 (20:10 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Mon, 28 May 2018 11:10:57 +0000 (20:10 +0900)
LogViewer/tags.tag

index 7682478..202a2de 100644 (file)
@@ -1225,9 +1225,7 @@ this.gatherData = function(data) {
             if (/^輸送/.test(row[j]) && /^0\x2f/.test(row[j + 1]))
                 resR++;
         }
-        var item = /\+(.*)/.exec(row[10]);
-        if (item)
-            item = item[1];
+        var item = /アイテム/.test(row[9]) ? /[^+]+$/.exec(row[10])[0] : null;
         var res = row[4];
         if (res === "E")
             res = "D";
@@ -1305,7 +1303,7 @@ this.setupTable = function(r) {
             columns.pop();
         }
         var items = [];
-        for (col in r[term].stat["合計"]) {
+        for (var col in r[term].stat["合計"]) {
             if (this.isItemColumn(col))
                 items.push(col);
         }