Bomb Heavy/Light damage

This commit is contained in:
Kalle
2022-09-18 13:22:05 +03:00
parent 40679764a9
commit 8539205f71
4 changed files with 56 additions and 6 deletions

View File

@@ -94,6 +94,8 @@ export function buildStats({
subDefAngleShooterDamage: subDefAngleShooterDamage(input),
subDefSplashWallDamagePercentage: subDefSplashWallDamagePercentage(input),
subDefSprinklerDamagePercentage: subDefSprinklerDamagePercentage(input),
subDefBombDamageLightPercentage: subDefBombDamageLightPercentage(input),
subDefBombDamageHeavyPercentage: subDefBombDamageHeavyPercentage(input),
...subStats(input),
},
};
@@ -843,3 +845,43 @@ function subDefSprinklerDamagePercentage(
modifiedBy: SUB_DEF_SPRINKLER_DAMAGE_PERCENTAGE_KEY,
};
}
function subDefBombDamageLightPercentage(
args: StatFunctionInput
): AnalyzedBuild["stats"]["subDefBombDamageLightPercentage"] {
const SUB_DEF_BOMB_DAMAGE_LIGHT_PERCENTAGE_KEY = "SRU";
const { baseEffect, effect } = abilityPointsToEffects({
abilityPoints: apFromMap({
abilityPoints: args.abilityPoints,
ability: SUB_DEF_BOMB_DAMAGE_LIGHT_PERCENTAGE_KEY,
}),
key: "DamageRt_BombL",
weapon: args.mainWeaponParams,
});
return {
baseValue: roundToTwoDecimalPlaces(baseEffect * 100),
value: roundToTwoDecimalPlaces(effect * 100),
modifiedBy: SUB_DEF_BOMB_DAMAGE_LIGHT_PERCENTAGE_KEY,
};
}
function subDefBombDamageHeavyPercentage(
args: StatFunctionInput
): AnalyzedBuild["stats"]["subDefBombDamageHeavyPercentage"] {
const SUB_DEF_BOMB_DAMAGE_HEAVY_PERCENTAGE_KEY = "SRU";
const { baseEffect, effect } = abilityPointsToEffects({
abilityPoints: apFromMap({
abilityPoints: args.abilityPoints,
ability: SUB_DEF_BOMB_DAMAGE_HEAVY_PERCENTAGE_KEY,
}),
key: "DamageRt_BombH",
weapon: args.mainWeaponParams,
});
return {
baseValue: roundToTwoDecimalPlaces(baseEffect * 100),
value: roundToTwoDecimalPlaces(effect * 100),
modifiedBy: SUB_DEF_BOMB_DAMAGE_HEAVY_PERCENTAGE_KEY,
};
}

View File

@@ -198,12 +198,8 @@ export interface AnalyzedBuild {
subDefAngleShooterDamage: Stat;
subDefSplashWallDamagePercentage: Stat;
subDefSprinklerDamagePercentage: Stat;
// subDefBombDamageLight: Stat;
// subDefBombDamageHeavy: Stat;
// subDefAngleShooterDamage: Stat;
// subDefSplashWallDamage: Stat;
// subDefSprinklerDamage: Stat;
// subDefToxicMistMoveReduction: Stat;
subDefBombDamageLightPercentage: Stat;
subDefBombDamageHeavyPercentage: Stat;
subVelocity?: Stat;
subFirstPhaseDuration?: Stat;

View File

@@ -230,6 +230,16 @@ export default function BuildAnalyzerPage() {
/>
</StatCategory>
<StatCategory title={t("analyzer:stat.category.subDef")}>
<StatCard
stat={analyzed.stats.subDefBombDamageLightPercentage}
title={t("analyzer:stat.bombLdamage")}
suffix="%"
/>
<StatCard
stat={analyzed.stats.subDefBombDamageHeavyPercentage}
title={t("analyzer:stat.bombHdamage")}
suffix="%"
/>
<StatCard
stat={analyzed.stats.subDefAngleShooterDamage}
title={t("analyzer:stat.damage", {

View File

@@ -30,6 +30,8 @@
"stat.markedTime": "{{weapon}} tracking time",
"stat.movementReduction": "{{weapon}} movement reduction",
"stat.damage": "{{weapon}} damage",
"stat.bombHdamage": "Heavy bomb damage",
"stat.bombLdamage": "Light bomb damage",
"stat.consumption.NORMAL": "Shots",
"stat.consumption.SWING": "Swings",
"stat.consumption.SLOSH": "Sloshes",