diff --git a/app/modules/analyzer/stats.ts b/app/modules/analyzer/stats.ts index 9301bcefc..01035c895 100644 --- a/app/modules/analyzer/stats.ts +++ b/app/modules/analyzer/stats.ts @@ -149,7 +149,7 @@ function specialSavedAfterDeath({ return { baseValue: specialSavedAfterDeathForDisplay(baseEffect), value: specialSavedAfterDeathForDisplay(effect - extraSpecialLost), - modifiedBy: SPECIAL_SAVED_AFTER_DEATH_ABILITY, + modifiedBy: [SPECIAL_SAVED_AFTER_DEATH_ABILITY, "RP"], }; } @@ -439,7 +439,7 @@ function swimSpeed( return { baseValue: effectToRounded(baseEffect * 10), value: effectToRounded(effect * 10 * ninjaSquidMultiplier), - modifiedBy: SWIM_SPEED_ABILITY, + modifiedBy: [SWIM_SPEED_ABILITY, "NS"], }; } @@ -481,7 +481,7 @@ function quickRespawnTime( value: framesToSeconds( RESPAWN_CHASE_FRAME + chase.effect + around.effect + extraFrames ), - modifiedBy: QUICK_RESPAWN_TIME_ABILITY, + modifiedBy: [QUICK_RESPAWN_TIME_ABILITY, "RP"], }; } diff --git a/app/modules/analyzer/types.ts b/app/modules/analyzer/types.ts index 5b2d2eab8..7b1001282 100644 --- a/app/modules/analyzer/types.ts +++ b/app/modules/analyzer/types.ts @@ -104,7 +104,7 @@ export type ParamsJson = { export interface Stat { value: number; baseValue: number; - modifiedBy: Ability; + modifiedBy: Ability | Array; } export type AbilityPoints = Map< diff --git a/app/routes/analyzer.tsx b/app/routes/analyzer.tsx index 5731676b7..cd42dcc98 100644 --- a/app/routes/analyzer.tsx +++ b/app/routes/analyzer.tsx @@ -563,14 +563,24 @@ function StatCard({ {typeof stat !== "number" && ( -
- -
+ )} ); } +function ModifiedByAbilities({ abilities }: { abilities: Stat["modifiedBy"] }) { + const abilitiesArray = Array.isArray(abilities) ? abilities : [abilities]; + + return ( +
+ {abilitiesArray.map((ability) => ( + + ))} +
+ ); +} + function DamageTable({ values, isTripleShooter,