mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-26 04:57:08 -05:00
Bomb Heavy/Light damage
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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", {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user