fix: omit ricochet for explosive shells

This commit is contained in:
TrèsAbhi committed 2024-06-29 13:32:57 -05:00
1 parent bb561847ad
commit f002c23e70
1 file changed
+2 -1
+2 -1
View File
@@ -1,4 +1,5 @@
import { EquipmentMatrix } from '../../stores/duel';
import { isExplosive } from '../blitz/isExplosive';
import { resolveNearPenetration } from '../blitz/resolveNearPenetration';
import { resolvePenetrationCoefficient } from '../blitz/resolvePenetrationCoefficient';
import { coefficient } from './coefficient';
@@ -459,7 +460,7 @@ export function tankCharacteristics(
const length = size[1];
const volume = width * height * length;
const shellNormalization = shell.normalization ?? 0;
const shellRicochet = shell.ricochet;
const shellRicochet = isExplosive(shell.type) ? undefined : shell.ricochet;
return {
shellNormalization,