clipping potential

This commit is contained in:
tresabhi committed 2026-06-02 20:08:23 -05:00
1 parent 666f44d9e6
commit 168e85d838
2 files changed
+11 -3

No files matched your search

@@ -387,8 +387,16 @@ export const characteristics = {
return tank.compensation!.compensation?.currency_reward?.amount ?? null;
},
clipping_potential() {
return -Infinity;
clipping_potential({ characteristic }) {
const gunType = characteristic("gun_type")!;
if (gunType === GunType.Regular) return null;
const damage = characteristic("damage") as number;
const clipSize = characteristic("clip_size") as number;
const clipPotential = damage * clipSize;
return clipPotential;
},
burst_size() {
@@ -124,7 +124,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
group: "clip",
render: CharacteristicsGroupRender.Statistical,
order: [
{ name: "clipping_potential" },
{ name: "clipping_potential", localize: true, units: "hp" },
{ name: "clip_size" },
{ name: "optimal_shell" },
{ name: "intra_clip", decimals: 2, units: "s" },