Fix Brella for consumption table

This commit is contained in:
Kalle
2022-09-15 15:38:30 +03:00
parent 67d3299e82
commit 30159be6f7
4 changed files with 15 additions and 12 deletions

View File

@@ -217,7 +217,7 @@ function inkConsumeTypeToParamsKeys(
): Array<keyof MainWeaponParams> {
switch (type) {
case "NORMAL":
return ["InkConsume"];
return ["InkConsume", "InkConsume_WeaponShelterShotgunParam"];
case "SWING":
return ["InkConsume_SwingParam", "InkConsume_WeaponSwingParam"];
case "SLOSH":

View File

@@ -597,7 +597,6 @@
"WeaponSpeedType": "Fast",
"DamageParam_ValueMax": 400,
"CanopyHP": 2000,
"InkConsumeUmbrella_WeaponShelterCanopyParam": 0,
"InkConsume_WeaponShelterShotgunParam": 0.04
},
"7010": {

View File

@@ -94,15 +94,17 @@ export default function BuildAnalyzerPage() {
/>
</StatCategory>
)}
<StatCategory
title={t("stat.category.actionsPerInkTank")}
containerClassName="analyzer__table-container"
>
<ConsumptionTable
options={analyzed.stats.fullInkTankOptions}
subWeaponId={analyzed.weapon.subWeaponSplId}
/>
</StatCategory>
{analyzed.stats.fullInkTankOptions.length > 0 && (
<StatCategory
title={t("stat.category.actionsPerInkTank")}
containerClassName="analyzer__table-container"
>
<ConsumptionTable
options={analyzed.stats.fullInkTankOptions}
subWeaponId={analyzed.weapon.subWeaponSplId}
/>
</StatCategory>
)}
<StatCategory title={t("stat.category.movement")}>
<StatCard
stat={analyzed.stats.swimSpeed}

View File

@@ -159,7 +159,9 @@ function parametersToMainWeaponResult(
InkConsume_WeaponWideSwingParam:
params["WeaponWideSwingParam"]?.["InkConsume"],
InkConsumeUmbrella_WeaponShelterCanopyParam:
params["spl__WeaponShelterCanopyParam"]?.["InkConsumeUmbrella"],
params["spl__WeaponShelterCanopyParam"]?.["InkConsumeUmbrella"] !== 0
? params["spl__WeaponShelterCanopyParam"]?.["InkConsumeUmbrella"]
: undefined,
InkConsume_WeaponShelterShotgunParam:
params["spl__WeaponShelterShotgunParam"]?.["InkConsume"],
InkConsume_SideStepParam: params["SideStepParam"]?.["InkConsume"],