Add Splattercolor Screen movement speed stat

This commit is contained in:
Kalle
2023-12-03 12:58:47 +02:00
parent c03b4559df
commit 0439222c82
5 changed files with 44 additions and 0 deletions

View File

@@ -277,6 +277,7 @@ export interface AnalyzedBuild {
specialInkConsumptionPerSecondPercentage?: Stat;
specialReticleRadius?: Stat;
specialThrowDistance?: Stat;
specialMoveSpeed?: Stat;
specialAutoChargeRate?: Stat;
specialMaxRadius?: Stat;
specialRadiusRange?: Stat<string>;

View File

@@ -41,6 +41,7 @@
"WallJumpChargeFrm": [5.0, 18.0, 45.0],
"ReduceJumpSwerveRate": [1.0, 0.75, 0.0],
"SpawnSpeedZSpecUp": [0.0, 0.0, 0.0],
"MoveSpeed": [0.0, 0.0, 0.0],
"SubSpecUpParam": [0.0, 0.0, 0.0],
"PeriodFirst": [0.0, 0.0, 0.0],
"PeriodSecond": [0.0, 0.0, 0.0],

View File

@@ -170,6 +170,7 @@ export function buildStats({
specialInkConsumptionPerSecondPercentage(input),
specialReticleRadius: specialReticleRadius(input),
specialThrowDistance: specialThrowDistance(input),
specialMoveSpeed: specialMoveSpeed(input),
specialAutoChargeRate: specialAutoChargeRate(input),
specialMaxRadius: specialMaxRadius(input),
specialRadiusRange: specialRadiusRange(input),
@@ -1654,6 +1655,35 @@ function specialThrowDistance(
};
}
function specialMoveSpeed(
args: StatFunctionInput,
): AnalyzedBuild["stats"]["specialMoveSpeed"] {
if (
!hasEffect({
key: "MoveSpeed",
weapon: args.specialWeaponParams,
})
) {
return;
}
const SPECIAL_MOVE_SPEED_KEY = "SPU";
const { baseEffect, effect } = abilityPointsToEffects({
abilityPoints: apFromMap({
abilityPoints: args.abilityPoints,
ability: SPECIAL_MOVE_SPEED_KEY,
}),
key: "MoveSpeed",
weapon: args.specialWeaponParams,
});
return {
baseValue: roundToNDecimalPlaces(baseEffect, 4),
value: roundToNDecimalPlaces(effect, 4),
modifiedBy: SPECIAL_MOVE_SPEED_KEY,
};
}
function specialAutoChargeRate(
args: StatFunctionInput,
): AnalyzedBuild["stats"]["specialAutoChargeRate"] {

View File

@@ -594,6 +594,17 @@ export default function BuildAnalyzerPage() {
})}
/>
)}
{analyzed.stats.specialMoveSpeed && (
<StatCard
context={context}
stat={statKeyToTuple("specialMoveSpeed")}
title={t("analyzer:stat.special.moveSpeed", {
weapon: t(
`weapons:SPECIAL_${analyzed.weapon.specialWeaponSplId}`,
),
})}
/>
)}
{analyzed.stats.specialAutoChargeRate && (
<StatCard
context={context}

View File

@@ -78,6 +78,7 @@
"stat.special.inkConsumptionPerSecond": "{{weapon}} ink consumption per sec",
"stat.special.reticleRadius": "{{weapon}} reticle radius",
"stat.special.throwDistance": "{{weapon}} throw distance",
"stat.special.moveSpeed": "{{weapon}} movement speed",
"stat.special.autoChargeRate": "{{weapon}} auto charge rate",
"stat.special.maxRadius": "{{weapon}} wave max radius",
"stat.special.maxRadius.explanation": "Travel speed of the wave is always the same despite the increased radius.",