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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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
|
|
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
|
|
515
|
+
return v;
|
|
516
516
|
}, 0);
|
|
517
517
|
}
|
|
518
518
|
async getCardEventBonus(userCard, eventId) {
|