mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 07:06:14 -05:00
Support Super Chump paint stat Closes #1288
This commit is contained in:
@@ -65,5 +65,6 @@
|
||||
"SplashAroundVelocityMax": [0.0, 0.0, 0.0],
|
||||
"SplashAroundPaintRadius": [0.0, 0.0, 0.0],
|
||||
"SpecialTotalFrame": [0.0, 0.0, 0.0],
|
||||
"PowerUpFrame": [0.0, 0.0, 0.0]
|
||||
"PowerUpFrame": [0.0, 0.0, 0.0],
|
||||
"CrossPaintRadius": [0.0, 0.0, 0.0]
|
||||
}
|
||||
|
||||
@@ -1218,25 +1218,29 @@ function specialDamageDistance(
|
||||
function specialPaintRadius(
|
||||
args: StatFunctionInput
|
||||
): AnalyzedBuild["stats"]["specialPaintRadius"] {
|
||||
if (!hasEffect({ key: "PaintRadius", weapon: args.specialWeaponParams })) {
|
||||
return;
|
||||
for (const key of ["PaintRadius", "CrossPaintRadius"] as const) {
|
||||
if (!hasEffect({ key, weapon: args.specialWeaponParams })) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const SPECIAL_PAINT_RADIUS_KEY = "SPU";
|
||||
const { baseEffect, effect } = abilityPointsToEffects({
|
||||
abilityPoints: apFromMap({
|
||||
abilityPoints: args.abilityPoints,
|
||||
ability: SPECIAL_PAINT_RADIUS_KEY,
|
||||
}),
|
||||
key,
|
||||
weapon: args.specialWeaponParams,
|
||||
});
|
||||
|
||||
return {
|
||||
baseValue: roundToNDecimalPlaces(baseEffect),
|
||||
value: roundToNDecimalPlaces(effect),
|
||||
modifiedBy: SPECIAL_PAINT_RADIUS_KEY,
|
||||
};
|
||||
}
|
||||
|
||||
const SPECIAL_PAINT_RADIUS_KEY = "SPU";
|
||||
const { baseEffect, effect } = abilityPointsToEffects({
|
||||
abilityPoints: apFromMap({
|
||||
abilityPoints: args.abilityPoints,
|
||||
ability: SPECIAL_PAINT_RADIUS_KEY,
|
||||
}),
|
||||
key: "PaintRadius",
|
||||
weapon: args.specialWeaponParams,
|
||||
});
|
||||
|
||||
return {
|
||||
baseValue: roundToNDecimalPlaces(baseEffect),
|
||||
value: roundToNDecimalPlaces(effect),
|
||||
modifiedBy: SPECIAL_PAINT_RADIUS_KEY,
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
export function specialFieldHp(
|
||||
|
||||
Reference in New Issue
Block a user