Analyzer Ink Recover Up effect

This commit is contained in:
Kalle 2022-09-14 22:18:11 +03:00
parent a6226a215c
commit 263bcbbecb
4 changed files with 34 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export function buildStats({
specialSavedAfterDeath: specialSavedAfterDeath(input),
fullInkTankOptions: fullInkTankOptions(input),
subWeaponWhiteInkFrames: subWeaponParams.InkRecoverStop,
squidFormInkRecoverySeconds: squidFormInkRecoverySeconds(input),
},
};
}
@ -225,3 +226,25 @@ function inkConsumeTypeToParamsKeys(
}
}
}
const framesToSeconds = (frames: number) =>
effectToRounded(Math.ceil(frames) / 60);
function squidFormInkRecoverySeconds(
args: StatFunctionInput
): AnalyzedBuild["stats"]["squidFormInkRecoverySeconds"] {
const SQUID_FORM_INK_RECOVERY_SECONDS_ABILITY = "IRU";
const { baseEffect, effect } = abilityPointsToEffects({
abilityPoints: apFromMap({
abilityPoints: args.abilityPoints,
ability: SQUID_FORM_INK_RECOVERY_SECONDS_ABILITY,
}),
key: "InkRecoverFrm_Stealth",
weapon: args.mainWeaponParams,
});
return {
baseValue: framesToSeconds(baseEffect),
value: framesToSeconds(effect),
modifiedBy: SQUID_FORM_INK_RECOVERY_SECONDS_ABILITY,
};
}

View File

@ -124,5 +124,6 @@ export interface AnalyzedBuild {
specialSavedAfterDeath: Stat;
subWeaponWhiteInkFrames: number;
fullInkTankOptions: Array<FullInkTankOption>;
squidFormInkRecoverySeconds: Stat;
};
}

View File

@ -75,6 +75,13 @@ export default function BuildAnalyzerPage() {
subWeaponId={analyzed.weapon.subWeaponSplId}
/>
</StatCategory>
<StatCategory title={t("stat.category.misc")}>
<StatCard
stat={analyzed.stats.squidFormInkRecoverySeconds}
title={t("stat.squidFormInkRecoverySeconds")}
suffix={t("suffix.seconds")}
/>
</StatCategory>
</div>
</div>
</Main>

View File

@ -3,9 +3,11 @@
"stat.category.sub": "Sub weapon",
"stat.category.special": "Special weapon",
"stat.category.actionsPerInkTank": "Actions per ink tank",
"stat.category.misc": "Miscellaneous",
"stat.specialPoints": "Points to special",
"stat.specialLost": "Special lost when splatted",
"stat.whiteInkFrames": "Frames of no ink recovery after usage",
"stat.squidFormInkRecoverySeconds": "Ink tank full recovery time (squid form)",
"stat.consumption.NORMAL": "Shots",
"stat.consumption.SWING": "Swings",
"stat.consumption.SLOSH": "Sloshes",
@ -16,6 +18,7 @@
"stat.consumption.SPLATLING_CHARGE": "Full charges",
"stat.consumption.SHIELD_LAUNCH": "Shield launches",
"stat.consumption.DUALIE_ROLL": "Dodge Rolls",
"suffix.seconds": "s",
"base": "Base",
"value": "Value",
"build": "Build",