mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-20 18:15:35 -05:00
Tenta Missiles SPU effect
This commit is contained in:
@@ -116,6 +116,7 @@ export function buildStats({
|
||||
specialHookInkConsumptionPercentage(input),
|
||||
specialInkConsumptionPerSecondPercentage:
|
||||
specialInkConsumptionPerSecondPercentage(input),
|
||||
specialReticleRadius: specialReticleRadius(input),
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -1125,3 +1126,32 @@ function specialInkConsumptionPerSecondPercentage(
|
||||
modifiedBy: SPECIAL_INK_CONSUMPTION_PER_SECOND_PERCENTAGE_KEY,
|
||||
};
|
||||
}
|
||||
|
||||
function specialReticleRadius(
|
||||
args: StatFunctionInput
|
||||
): AnalyzedBuild["stats"]["specialReticleRadius"] {
|
||||
if (
|
||||
!hasEffect({
|
||||
key: "TargetInCircleRadius",
|
||||
weapon: args.specialWeaponParams,
|
||||
})
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const SPECIAL_RETICLE_RADIUS_KEY = "SPU";
|
||||
const { baseEffect, effect } = abilityPointsToEffects({
|
||||
abilityPoints: apFromMap({
|
||||
abilityPoints: args.abilityPoints,
|
||||
ability: SPECIAL_RETICLE_RADIUS_KEY,
|
||||
}),
|
||||
key: "TargetInCircleRadius",
|
||||
weapon: args.specialWeaponParams,
|
||||
});
|
||||
|
||||
return {
|
||||
baseValue: roundToTwoDecimalPlaces(baseEffect),
|
||||
value: roundToTwoDecimalPlaces(effect),
|
||||
modifiedBy: SPECIAL_RETICLE_RADIUS_KEY,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -233,6 +233,7 @@ export interface AnalyzedBuild {
|
||||
specialDeviceHp?: Stat;
|
||||
specialHookInkConsumptionPercentage?: Stat;
|
||||
specialInkConsumptionPerSecondPercentage?: Stat;
|
||||
specialReticleRadius?: Stat;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -330,6 +330,16 @@ export default function BuildAnalyzerPage() {
|
||||
suffix="%"
|
||||
/>
|
||||
)}
|
||||
{analyzed.stats.specialReticleRadius && (
|
||||
<StatCard
|
||||
stat={analyzed.stats.specialReticleRadius}
|
||||
title={t("analyzer:stat.special.reticleRadius", {
|
||||
weapon: t(
|
||||
`weapons:SPECIAL_${analyzed.weapon.specialWeaponSplId}`
|
||||
),
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
</StatCategory>
|
||||
<StatCategory title={t("analyzer:stat.category.subDef")}>
|
||||
<StatCard
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
"stat.special.deviceHp": "{{weapon}} device durability",
|
||||
"stat.special.inkConsumptionHook": "{{weapon}} hook ink consumption",
|
||||
"stat.special.inkConsumptionPerSecond": "{{weapon}} ink consumption per sec",
|
||||
"stat.special.reticleRadius": "{{weapon}} reticle radius",
|
||||
"damage.header.type": "Type",
|
||||
"damage.header.damage": "Damage",
|
||||
"damage.header.distance": "Distance",
|
||||
|
||||
Reference in New Issue
Block a user