mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-23 13:04:44 -05:00
Analyzer Ink Recover Up effect
This commit is contained in:
parent
a6226a215c
commit
263bcbbecb
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,5 +124,6 @@ export interface AnalyzedBuild {
|
|||
specialSavedAfterDeath: Stat;
|
||||
subWeaponWhiteInkFrames: number;
|
||||
fullInkTankOptions: Array<FullInkTankOption>;
|
||||
squidFormInkRecoverySeconds: Stat;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user