poi-plugin-item-improvement2-beta 1.0.1 → 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 +7 -5
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,18 +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
|
|
123
|
+
const assistants = (0, _lodash.default)(_lodash.default.range(7).concat(-1)).map(day => {
|
|
124
124
|
const list = (0, _lodash.default)(item.improvementList || []).flatMap(improvement => {
|
|
125
125
|
const shipWeek = improvement.shipWeekList || [];
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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);
|
|
129
131
|
}).uniq().value();
|
|
130
132
|
return [day, list.join('/')];
|
|
131
133
|
}).fromPairs().value();
|
|
132
134
|
return _extends({}, _lodash.default.get($const, ['$equips', item.id], {}), item, {
|
|
133
135
|
priority: 0,
|
|
134
|
-
|
|
136
|
+
assistants
|
|
135
137
|
});
|
|
136
138
|
}).value());
|
|
137
139
|
const improvementDataSelector = (0, _reselect.createSelector)([baseImprovementDataSelector, starCraftPlanSelector, equipLevelStatSelector], (data, plans, levels) => (0, _lodash.default)(data).map(item => {
|