mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
clipping potential
This commit is contained in:
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;
|
return tank.compensation!.compensation?.currency_reward?.amount ?? null;
|
||||||
},
|
},
|
||||||
|
|
||||||
clipping_potential() {
|
clipping_potential({ characteristic }) {
|
||||||
return -Infinity;
|
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() {
|
burst_size() {
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
group: "clip",
|
group: "clip",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "clipping_potential" },
|
{ name: "clipping_potential", localize: true, units: "hp" },
|
||||||
{ name: "clip_size" },
|
{ name: "clip_size" },
|
||||||
{ name: "optimal_shell" },
|
{ name: "optimal_shell" },
|
||||||
{ name: "intra_clip", decimals: 2, units: "s" },
|
{ name: "intra_clip", decimals: 2, units: "s" },
|
||||||
|
|||||||
Reference in new issue
Block a user