poi-plugin-item-improvement2-beta 1.0.2 → 1.0.3
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 +8 -7
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="79210000" />
|
|
137
137
|
</task>
|
|
138
138
|
<servers />
|
|
139
139
|
</component>
|
package/package.json
CHANGED
package/views/selectors.js
CHANGED
|
@@ -120,19 +120,20 @@ 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
|
|
124
|
-
.map(day => {
|
|
123
|
+
const assistants = (0, _lodash.default)(_lodash.default.range(7).concat(-1)).map(day => {
|
|
125
124
|
const list = (0, _lodash.default)(item.improvementList || []).flatMap(improvement => {
|
|
126
125
|
const shipWeek = improvement.shipWeekList || [];
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
return shipWeek.filter(s => {
|
|
127
|
+
var _s$week;
|
|
128
|
+
|
|
129
|
+
return day === -1 || ((_s$week = s.week) === null || _s$week === void 0 ? void 0 : _s$week[day]);
|
|
130
|
+
}).map(s => s.text);
|
|
131
|
+
}).uniq().value();
|
|
131
132
|
return [day, list.join('/')];
|
|
132
133
|
}).fromPairs().value();
|
|
133
134
|
return _extends({}, _lodash.default.get($const, ['$equips', item.id], {}), item, {
|
|
134
135
|
priority: 0,
|
|
135
|
-
|
|
136
|
+
assistants
|
|
136
137
|
});
|
|
137
138
|
}).value());
|
|
138
139
|
const improvementDataSelector = (0, _reselect.createSelector)([baseImprovementDataSelector, starCraftPlanSelector, equipLevelStatSelector], (data, plans, levels) => (0, _lodash.default)(data).map(item => {
|