mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: clipping potential
This commit is contained in:
1 parent
9f89903a6e
commit
6ef0610331
3 files changed
+15
No files matched your search
@@ -1261,6 +1261,14 @@ export default function Page() {
|
|||||||
)}
|
)}
|
||||||
<Row name="Penetration" value="penetration" decimals={0} />
|
<Row name="Penetration" value="penetration" decimals={0} />
|
||||||
<Row name="Damage" value="damage" decimals={0} />
|
<Row name="Damage" value="damage" decimals={0} />
|
||||||
|
{hasNonRegularGun && (
|
||||||
|
<Row
|
||||||
|
name="clipping potential"
|
||||||
|
indent
|
||||||
|
value="clipDamage"
|
||||||
|
decimals={0}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Row name="Module damage" value="moduleDamage" decimals={0} />
|
<Row name="Module damage" value="moduleDamage" decimals={0} />
|
||||||
<Row name="Caliber" value="caliber" decimals={0} />
|
<Row name="Caliber" value="caliber" decimals={0} />
|
||||||
<Row
|
<Row
|
||||||
|
|||||||
@@ -297,6 +297,11 @@ export function Characteristics() {
|
|||||||
<InfoWithDelta name="Damage" unit="hp" decimals={0}>
|
<InfoWithDelta name="Damage" unit="hp" decimals={0}>
|
||||||
{stats.damage}
|
{stats.damage}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
|
{gun.type !== 'regular' && (
|
||||||
|
<InfoWithDelta name="Clipping potential" indent>
|
||||||
|
{stats.clipDamage!}
|
||||||
|
</InfoWithDelta>
|
||||||
|
)}
|
||||||
<InfoWithDelta name="Module damage" unit="hp" decimals={0}>
|
<InfoWithDelta name="Module damage" unit="hp" decimals={0}>
|
||||||
{stats.moduleDamage}
|
{stats.moduleDamage}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
|
|||||||
@@ -359,6 +359,7 @@ export function tankCharacteristics(
|
|||||||
const penetration =
|
const penetration =
|
||||||
resolveNearPenetration(shell.penetration) * penetrationCoefficient;
|
resolveNearPenetration(shell.penetration) * penetrationCoefficient;
|
||||||
const damage = shell.damage.armor * damageCoefficient;
|
const damage = shell.damage.armor * damageCoefficient;
|
||||||
|
const clipDamage = gun.type === 'regular' ? undefined : gun.count * damage;
|
||||||
const moduleDamage = shell.damage.module * damageCoefficient;
|
const moduleDamage = shell.damage.module * damageCoefficient;
|
||||||
const explosionRadius = shell.explosionRadius;
|
const explosionRadius = shell.explosionRadius;
|
||||||
const shellVelocity = shell.speed * shellVelocityCoefficient;
|
const shellVelocity = shell.speed * shellVelocityCoefficient;
|
||||||
@@ -477,6 +478,7 @@ export function tankCharacteristics(
|
|||||||
caliber,
|
caliber,
|
||||||
penetration,
|
penetration,
|
||||||
damage,
|
damage,
|
||||||
|
clipDamage,
|
||||||
moduleDamage,
|
moduleDamage,
|
||||||
explosionRadius,
|
explosionRadius,
|
||||||
shellVelocity,
|
shellVelocity,
|
||||||
|
|||||||
Reference in new issue
Block a user