mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-26 13:22:50 -05:00
Add Splattercolor Screen movement speed stat
This commit is contained in:
@@ -277,6 +277,7 @@ export interface AnalyzedBuild {
|
||||
specialInkConsumptionPerSecondPercentage?: Stat;
|
||||
specialReticleRadius?: Stat;
|
||||
specialThrowDistance?: Stat;
|
||||
specialMoveSpeed?: Stat;
|
||||
specialAutoChargeRate?: Stat;
|
||||
specialMaxRadius?: Stat;
|
||||
specialRadiusRange?: Stat<string>;
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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"] {
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user