mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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="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="Caliber" value="caliber" decimals={0} />
|
||||
<Row
|
||||
|
||||
@@ -297,6 +297,11 @@ export function Characteristics() {
|
||||
<InfoWithDelta name="Damage" unit="hp" decimals={0}>
|
||||
{stats.damage}
|
||||
</InfoWithDelta>
|
||||
{gun.type !== 'regular' && (
|
||||
<InfoWithDelta name="Clipping potential" indent>
|
||||
{stats.clipDamage!}
|
||||
</InfoWithDelta>
|
||||
)}
|
||||
<InfoWithDelta name="Module damage" unit="hp" decimals={0}>
|
||||
{stats.moduleDamage}
|
||||
</InfoWithDelta>
|
||||
|
||||
@@ -359,6 +359,7 @@ export function tankCharacteristics(
|
||||
const penetration =
|
||||
resolveNearPenetration(shell.penetration) * penetrationCoefficient;
|
||||
const damage = shell.damage.armor * damageCoefficient;
|
||||
const clipDamage = gun.type === 'regular' ? undefined : gun.count * damage;
|
||||
const moduleDamage = shell.damage.module * damageCoefficient;
|
||||
const explosionRadius = shell.explosionRadius;
|
||||
const shellVelocity = shell.speed * shellVelocityCoefficient;
|
||||
@@ -477,6 +478,7 @@ export function tankCharacteristics(
|
||||
caliber,
|
||||
penetration,
|
||||
damage,
|
||||
clipDamage,
|
||||
moduleDamage,
|
||||
explosionRadius,
|
||||
shellVelocity,
|
||||
|
||||
Reference in new issue
Block a user