poi-plugin-item-improvement2-beta 0.0.32010 → 0.0.32012
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 +2 -2
package/.idea/workspace.xml
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<workItem from="1767265931452" duration="395000" />
|
|
95
95
|
<workItem from="1767266330648" duration="5077000" />
|
|
96
96
|
<workItem from="1767272485923" duration="3120000" />
|
|
97
|
-
<workItem from="1767275985364" duration="
|
|
97
|
+
<workItem from="1767275985364" duration="3580000" />
|
|
98
98
|
</task>
|
|
99
99
|
<servers />
|
|
100
100
|
</component>
|
package/package.json
CHANGED
package/views/selectors.js
CHANGED
|
@@ -93,7 +93,7 @@ exports.equipAvailableSelector = equipAvailableSelector;
|
|
|
93
93
|
const equipLevelStatSelector = (0, _reselect.createSelector)([_selectors.equipsSelector], equips => (0, _lodash.default)(equips).groupBy('api_slotitem_id').mapValues(items => (0, _lodash.default)(items).map(item => item.api_level || 0).value()).value()); // base data is dependent on wctf-db and const
|
|
94
94
|
|
|
95
95
|
exports.equipLevelStatSelector = equipLevelStatSelector;
|
|
96
|
-
const baseImprovementDataSelector = (0, _reselect.createSelector)([
|
|
96
|
+
const baseImprovementDataSelector = (0, _reselect.createSelector)([wctfLocalSelector, _selectors.constSelector, adjustedRemodelChainsSelector, shipUniqueMapSelector], (db, $const, chains, uniqMap) => (0, _lodash.default)(_lodash.default.get(db, 'arsenal_all')).keys().map(itemId => {
|
|
97
97
|
const item = _lodash.default.get(db, ['items', itemId], {});
|
|
98
98
|
|
|
99
99
|
const assistants = (0, _lodash.default)(_lodash.default.range(7).concat(-1)).map(day => [day, (0, _lodash.default)(item.improvement).flatMap(entry => (0, _lodash.default)(entry.req).flatMap(([days, ships]) => day === -1 || days[day] ? ships : []).groupBy(id => uniqMap[id]).mapValues(ids => (0, _lodash.default)(ids).sortBy(id => (chains[id] || []).indexOf(id)).take(1).value()).values().flatten().map(id => window.i18n['poi-plugin-item-improvement'].__(window.i18n.resources.__(_lodash.default.get($const, ['$ships', id, 'api_name'], 'None')))).value()).join('/')]).fromPairs().value();
|
|
@@ -117,7 +117,7 @@ const improvementDataSelector = (0, _reselect.createSelector)([baseImprovementDa
|
|
|
117
117
|
});
|
|
118
118
|
}).value());
|
|
119
119
|
exports.improvementDataSelector = improvementDataSelector;
|
|
120
|
-
const improveItemIdsByDaySelector = (0, _reselect.createSelector)([
|
|
120
|
+
const improveItemIdsByDaySelector = (0, _reselect.createSelector)([wctfLocalSelector], db => (0, _lodash.default)(_lodash.default.get(db, 'arsenal_weekday')).mapValues(day => (0, _lodash.default)(day.improvements).map(([id]) => id).value()).value());
|
|
121
121
|
exports.improveItemIdsByDaySelector = improveItemIdsByDaySelector;
|
|
122
122
|
|
|
123
123
|
const arrayResultWrapper = selector => (0, _selectors.createDeepCompareArraySelector)(selector, result => result);
|