poi-plugin-ship-info
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -135,4 +135,4 @@ { | ||
"soku": "速力", | ||
"Export Data": "デエタ輸出", | ||
"Data": "デエタ", | ||
"Export Data": "データ輸出", | ||
"Data": "データ", | ||
"Current list": "現在のリスト", | ||
@@ -139,0 +139,0 @@ "Separator": "区切り", |
{ | ||
"name": "poi-plugin-ship-info", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Show detailed information of all owned ship girls", | ||
@@ -5,0 +5,0 @@ "main": "index.es", |
@@ -108,3 +108,3 @@ 'use strict'; | ||
const repairFactor = exports.repairFactor = { | ||
1: { api_id: 1, api_name: '海防艦', factor: 0 }, | ||
1: { api_id: 1, api_name: '海防艦', factor: 0.5 }, | ||
2: { api_id: 2, api_name: '駆逐艦', factor: 1 }, | ||
@@ -111,0 +111,0 @@ 3: { api_id: 3, api_name: '軽巡洋艦', factor: 1 }, |
@@ -31,2 +31,4 @@ 'use strict'; | ||
var _tools = require('views/utils/tools'); | ||
var _slotitems = require('./slotitems'); | ||
@@ -48,3 +50,3 @@ | ||
const { __, resolveTime } = window; | ||
const { __ } = window; | ||
@@ -406,3 +408,3 @@ const Id = (_ref) => { | ||
{ id: 'repairtime1hp', className: 'info-tooltip' }, | ||
`1HP : ${resolveTime((0, _utils.getTimePerHP)(lv, typeId) / 1000)}` | ||
`1HP : ${(0, _tools.resolveTime)((0, _utils.getTimePerHP)(lv, typeId) / 1000)}` | ||
) | ||
@@ -414,3 +416,3 @@ }, | ||
inDock && _react2.default.createElement(_reactFontawesome2.default, { name: 'bath' }), | ||
resolveTime(repairtime) | ||
(0, _tools.resolveTime)(repairtime) | ||
) | ||
@@ -417,0 +419,0 @@ ) |
@@ -24,7 +24,11 @@ 'use strict'; | ||
const getTimePerHP = exports.getTimePerHP = (0, _fastMemoize2.default)((api_lv = 1, api_stype = 1) => { | ||
const getTimePerHP = exports.getTimePerHP = (api_lv = 1, api_stype = 1) => { | ||
let factor = 0; | ||
if (_constants.repairFactor[api_stype] != null) factor = _constants.repairFactor[api_stype].factor || 0; | ||
if (_constants.repairFactor[api_stype] != null) { | ||
factor = _constants.repairFactor[api_stype].factor || 0; | ||
} | ||
if (factor === 0) return 0; | ||
if (factor === 0) { | ||
return 0; | ||
} | ||
@@ -36,3 +40,3 @@ if (api_lv < 12) { | ||
return (api_lv * 5 + (Math.floor(Math.sqrt(api_lv - 11)) * 10 + 50)) * factor * 1000; | ||
}); | ||
}; | ||
@@ -136,3 +140,4 @@ const getShipInfoData = exports.getShipInfoData = (ship, $ship, equips, $shipTypes, fleetIdMap, rawValue = false, repairs = []) => { | ||
// Nagato Kai 2 = 541 | ||
if ([200, 487, 418, 434, 435, 464, 470, 199, 468, 490, 147, 469, 541].includes($ship.api_id)) { | ||
// Yura Kai 2 = 488 | ||
if ([200, 487, 418, 434, 435, 464, 470, 199, 468, 490, 147, 469, 541, 488].includes($ship.api_id)) { | ||
daihatsu = true; | ||
@@ -139,0 +144,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
274973
3474