mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: dynamic armor
This commit is contained in:
1 parent
69040dc453
commit
12e2793c92
3 files changed
+10
-1
No files matched your search
@@ -89,6 +89,11 @@ export default function Page() {
|
||||
member.key !== thisMember.key &&
|
||||
member.consumables.includes(33),
|
||||
),
|
||||
applyDynamicArmor: members.some(
|
||||
(member) =>
|
||||
member.key !== thisMember.key &&
|
||||
member.consumables.includes(73),
|
||||
),
|
||||
},
|
||||
{
|
||||
equipmentDefinitions: awaitedEquipmentDefinitions,
|
||||
|
||||
@@ -87,6 +87,7 @@ export function Characteristics() {
|
||||
stockTrack,
|
||||
stockTurret,
|
||||
applyReactive: false,
|
||||
applyDynamicArmor: false,
|
||||
},
|
||||
{
|
||||
equipmentDefinitions: awaitedEquipmentDefinitions,
|
||||
|
||||
@@ -39,6 +39,7 @@ export function tankCharacteristics(
|
||||
stockTurret,
|
||||
stockGun,
|
||||
applyReactive,
|
||||
applyDynamicArmor,
|
||||
}: {
|
||||
tank: TankDefinition;
|
||||
turret: TurretDefinition;
|
||||
@@ -57,6 +58,7 @@ export function tankCharacteristics(
|
||||
crewSkills: Record<string, number>;
|
||||
camouflage: boolean;
|
||||
applyReactive: boolean;
|
||||
applyDynamicArmor: boolean;
|
||||
},
|
||||
{
|
||||
modelDefinitions,
|
||||
@@ -135,7 +137,8 @@ export function tankCharacteristics(
|
||||
|
||||
const intraClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
|
||||
const damageCoefficient =
|
||||
coefficient([hasTungsten, 0.15]) * coefficient([applyReactive, -0.2]);
|
||||
coefficient([hasTungsten, 0.15]) *
|
||||
coefficient([applyReactive, -0.2], [applyDynamicArmor, -0.1]);
|
||||
const reloadCoefficient =
|
||||
(coefficient([hasRammer, -0.07]) *
|
||||
coefficient([true, degressiveStat(crewMemberMastery)])) /
|
||||
|
||||
Reference in new issue
Block a user