sekai-calculator 0.12.0 → 0.12.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/dist/index.cjs CHANGED
@@ -511,10 +511,10 @@ class CardEventCalculator {
511
511
  const gameCharacterUnit = findOrThrow(gameCharacterUnits, unit => unit.id === eventDeckBonus.gameCharacterUnitId);
512
512
  if (gameCharacterUnit.gameCharacterId !== card.characterId)
513
513
  return v;
514
- if (card.characterId < 21 || card.supportUnit === gameCharacterUnit.unit) {
514
+ if (card.characterId < 21 || card.supportUnit === gameCharacterUnit.unit || card.supportUnit === 'none') {
515
515
  return Math.max(v, eventDeckBonus.bonusRate);
516
516
  }
517
- return Math.max(v, card.supportUnit === 'none' ? eventDeckBonus.bonusRate - 10 : 0);
517
+ return v;
518
518
  }, 0);
519
519
  }
520
520
  async getCardEventBonus(userCard, eventId) {
package/dist/index.mjs CHANGED
@@ -509,10 +509,10 @@ class CardEventCalculator {
509
509
  const gameCharacterUnit = findOrThrow(gameCharacterUnits, unit => unit.id === eventDeckBonus.gameCharacterUnitId);
510
510
  if (gameCharacterUnit.gameCharacterId !== card.characterId)
511
511
  return v;
512
- if (card.characterId < 21 || card.supportUnit === gameCharacterUnit.unit) {
512
+ if (card.characterId < 21 || card.supportUnit === gameCharacterUnit.unit || card.supportUnit === 'none') {
513
513
  return Math.max(v, eventDeckBonus.bonusRate);
514
514
  }
515
- return Math.max(v, card.supportUnit === 'none' ? eventDeckBonus.bonusRate - 10 : 0);
515
+ return v;
516
516
  }, 0);
517
517
  }
518
518
  async getCardEventBonus(userCard, eventId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekai-calculator",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Project SEKAI Calculator for deck power, live score, event point and more.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",