feat: spall liner

This commit is contained in:
TrèsAbhi committed 2024-04-10 16:54:16 -05:00
1 parent ab26b346e6
commit d6e96e17ad
4 files changed
+38 -1

No files matched your search

@@ -17,3 +17,5 @@ export interface ProvisionDefinitions {
export const provisionDefinitions = fetchCdonLz4<ProvisionDefinitions>(
asset('definitions/provisions.cdon.lz4'),
);
provisionDefinitions.then(console.log);
+7 -1
View File
@@ -40,6 +40,7 @@ export function tankCharacteristics(
stockGun,
applyReactive,
applyDynamicArmor,
applySpallLiner,
}: {
tank: TankDefinition;
turret: TurretDefinition;
@@ -59,6 +60,7 @@ export function tankCharacteristics(
camouflage: boolean;
applyReactive: boolean;
applyDynamicArmor: boolean;
applySpallLiner: boolean;
},
{
modelDefinitions,
@@ -138,7 +140,11 @@ export function tankCharacteristics(
const intraClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
const damageCoefficient =
coefficient([hasTungsten, 0.15]) *
coefficient([applyReactive, -0.2], [applyDynamicArmor, -0.1]);
coefficient(
[applyReactive, -0.2],
[applyDynamicArmor, -0.1],
[applySpallLiner && shell.type === 'he', -0.2],
);
const reloadCoefficient =
(coefficient([hasRammer, -0.07]) *
coefficient([true, degressiveStat(crewMemberMastery)])) /