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.
@@ -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="77194000" />
136
+ <workItem from="1780066941937" duration="78096000" />
137
137
  </task>
138
138
  <servers />
139
139
  </component>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poi-plugin-item-improvement2-beta",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "use new data source",
5
5
  "main": "index.es",
6
6
  "scripts": {
@@ -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)).map(day => {
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 || (improvement.weekdays || []).includes(day);
127
+ const matchDay = day === -1 || improvement.weekdays[day];
127
128
  if (!matchDay) return [];
128
129
  return shipWeek.map(s => s.text);
129
- }).uniq().value();
130
+ }).value();
130
131
  return [day, list.join('/')];
131
132
  }).fromPairs().value();
132
133
  return _extends({}, _lodash.default.get($const, ['$equips', item.id], {}), item, {