poi-plugin-item-improvement2-beta 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +1 -1
- package/package.json +1 -1
- package/views/selectors.js +4 -3
package/.idea/workspace.xml
CHANGED
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
<workItem from="1768548645399" duration="890000" />
|
|
134
134
|
<workItem from="1768577343916" duration="24825000" />
|
|
135
135
|
<workItem from="1777260186359" duration="1000" />
|
|
136
|
-
<workItem from="1780066941937" duration="
|
|
136
|
+
<workItem from="1780066941937" duration="78096000" />
|
|
137
137
|
</task>
|
|
138
138
|
<servers />
|
|
139
139
|
</component>
|
package/package.json
CHANGED
package/views/selectors.js
CHANGED
|
@@ -120,13 +120,14 @@ const equipLevelStatSelector = (0, _reselect.createSelector)([_selectors.equipsS
|
|
|
120
120
|
exports.equipLevelStatSelector = equipLevelStatSelector;
|
|
121
121
|
const baseImprovementDataSelector = (0, _reselect.createSelector)([_selectors.constSelector, adjustedRemodelChainsSelector, shipUniqueMapSelector], $const => (0, _lodash.default)(LOCAL_ARSENAL).keys().map(itemId => {
|
|
122
122
|
const item = LOCAL_ITEMS[itemId] || {};
|
|
123
|
-
const assistantsTextByDay = (0, _lodash.default)(_lodash.default.range(7).concat(-1))
|
|
123
|
+
const assistantsTextByDay = (0, _lodash.default)(_lodash.default.range(7).concat(-1)) //[0,1,2,3,4,5,6,-1]
|
|
124
|
+
.map(day => {
|
|
124
125
|
const list = (0, _lodash.default)(item.improvementList || []).flatMap(improvement => {
|
|
125
126
|
const shipWeek = improvement.shipWeekList || [];
|
|
126
|
-
const matchDay = day === -1 ||
|
|
127
|
+
const matchDay = day === -1 || improvement.weekdays[day];
|
|
127
128
|
if (!matchDay) return [];
|
|
128
129
|
return shipWeek.map(s => s.text);
|
|
129
|
-
}).
|
|
130
|
+
}).value();
|
|
130
131
|
return [day, list.join('/')];
|
|
131
132
|
}).fromPairs().value();
|
|
132
133
|
return _extends({}, _lodash.default.get($const, ['$equips', item.id], {}), item, {
|