mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: omit ricochet for explosive shells
This commit is contained in:
1 parent
bb561847ad
commit
f002c23e70
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import { EquipmentMatrix } from '../../stores/duel';
|
import { EquipmentMatrix } from '../../stores/duel';
|
||||||
|
import { isExplosive } from '../blitz/isExplosive';
|
||||||
import { resolveNearPenetration } from '../blitz/resolveNearPenetration';
|
import { resolveNearPenetration } from '../blitz/resolveNearPenetration';
|
||||||
import { resolvePenetrationCoefficient } from '../blitz/resolvePenetrationCoefficient';
|
import { resolvePenetrationCoefficient } from '../blitz/resolvePenetrationCoefficient';
|
||||||
import { coefficient } from './coefficient';
|
import { coefficient } from './coefficient';
|
||||||
@@ -459,7 +460,7 @@ export function tankCharacteristics(
|
|||||||
const length = size[1];
|
const length = size[1];
|
||||||
const volume = width * height * length;
|
const volume = width * height * length;
|
||||||
const shellNormalization = shell.normalization ?? 0;
|
const shellNormalization = shell.normalization ?? 0;
|
||||||
const shellRicochet = shell.ricochet;
|
const shellRicochet = isExplosive(shell.type) ? undefined : shell.ricochet;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
shellNormalization,
|
shellNormalization,
|
||||||
|
|||||||
Reference in new issue
Block a user