Merge pull request #120 from tresabhi/main

This commit is contained in:
TrèsAbhi authored and GitHub committed 2024-05-22 13:31:39 -05:00
commit 5f47218f16
4 files changed
+16 -16

No files matched your search

@@ -108,12 +108,12 @@ export function CoreArmorSceneComponent({
material.uniforms.penetration.value = hasCalibratedShells material.uniforms.penetration.value = hasCalibratedShells
? penetration * ? penetration *
(duel.antagonist!.shell.type === 'ap' (duel.antagonist!.shell.type === 'ap'
? 0.08 ? 1.08
: duel.antagonist!.shell.type === 'ap_cr' : duel.antagonist!.shell.type === 'ap_cr'
? 0.05 ? 1.05
: duel.antagonist!.shell.type === 'hc' : duel.antagonist!.shell.type === 'hc'
? 0.13 ? 1.13
: 0.8) : 1.8)
: penetration; : penetration;
} }
@@ -77,12 +77,12 @@ export function SpacedArmorSubExternal({
material.uniforms.penetration.value = hasCalibratedShells material.uniforms.penetration.value = hasCalibratedShells
? penetration * ? penetration *
(duel.antagonist!.shell.type === 'ap' (duel.antagonist!.shell.type === 'ap'
? 0.08 ? 1.08
: duel.antagonist!.shell.type === 'ap_cr' : duel.antagonist!.shell.type === 'ap_cr'
? 0.05 ? 1.05
: duel.antagonist!.shell.type === 'hc' : duel.antagonist!.shell.type === 'hc'
? 0.13 ? 1.13
: 0.8) : 1.8)
: penetration; : penetration;
} }
@@ -83,12 +83,12 @@ export function SpacedArmorSubSpaced({
material.uniforms.penetration.value = hasCalibratedShells material.uniforms.penetration.value = hasCalibratedShells
? penetration * ? penetration *
(duel.antagonist!.shell.type === 'ap' (duel.antagonist!.shell.type === 'ap'
? 0.08 ? 1.08
: duel.antagonist!.shell.type === 'ap_cr' : duel.antagonist!.shell.type === 'ap_cr'
? 0.05 ? 1.05
: duel.antagonist!.shell.type === 'hc' : duel.antagonist!.shell.type === 'hc'
? 0.13 ? 1.13
: 0.8) : 1.8)
: penetration; : penetration;
} }
@@ -113,12 +113,12 @@ export function SpacedArmorSceneComponent({
resolveNearPenetration(shell.penetration) * resolveNearPenetration(shell.penetration) *
(hasCalibratedShells (hasCalibratedShells
? duel.antagonist!.shell.type === 'ap' ? duel.antagonist!.shell.type === 'ap'
? 0.08 ? 1.08
: duel.antagonist!.shell.type === 'ap_cr' : duel.antagonist!.shell.type === 'ap_cr'
? 0.05 ? 1.05
: duel.antagonist!.shell.type === 'hc' : duel.antagonist!.shell.type === 'hc'
? 0.13 ? 1.13
: 0.8 : 1.8
: 1); : 1);
const shot: Shot = { const shot: Shot = {
layers: [], layers: [],