mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +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 { 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,
|
||||
|
||||
Reference in new issue
Block a user