mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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.key !== thisMember.key &&
|
||||||
member.consumables.includes(33),
|
member.consumables.includes(33),
|
||||||
),
|
),
|
||||||
|
applyDynamicArmor: members.some(
|
||||||
|
(member) =>
|
||||||
|
member.key !== thisMember.key &&
|
||||||
|
member.consumables.includes(73),
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
equipmentDefinitions: awaitedEquipmentDefinitions,
|
equipmentDefinitions: awaitedEquipmentDefinitions,
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ export function Characteristics() {
|
|||||||
stockTrack,
|
stockTrack,
|
||||||
stockTurret,
|
stockTurret,
|
||||||
applyReactive: false,
|
applyReactive: false,
|
||||||
|
applyDynamicArmor: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
equipmentDefinitions: awaitedEquipmentDefinitions,
|
equipmentDefinitions: awaitedEquipmentDefinitions,
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export function tankCharacteristics(
|
|||||||
stockTurret,
|
stockTurret,
|
||||||
stockGun,
|
stockGun,
|
||||||
applyReactive,
|
applyReactive,
|
||||||
|
applyDynamicArmor,
|
||||||
}: {
|
}: {
|
||||||
tank: TankDefinition;
|
tank: TankDefinition;
|
||||||
turret: TurretDefinition;
|
turret: TurretDefinition;
|
||||||
@@ -57,6 +58,7 @@ export function tankCharacteristics(
|
|||||||
crewSkills: Record<string, number>;
|
crewSkills: Record<string, number>;
|
||||||
camouflage: boolean;
|
camouflage: boolean;
|
||||||
applyReactive: boolean;
|
applyReactive: boolean;
|
||||||
|
applyDynamicArmor: boolean;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
modelDefinitions,
|
modelDefinitions,
|
||||||
@@ -135,7 +137,8 @@ export function tankCharacteristics(
|
|||||||
|
|
||||||
const intraClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
|
const intraClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
|
||||||
const damageCoefficient =
|
const damageCoefficient =
|
||||||
coefficient([hasTungsten, 0.15]) * coefficient([applyReactive, -0.2]);
|
coefficient([hasTungsten, 0.15]) *
|
||||||
|
coefficient([applyReactive, -0.2], [applyDynamicArmor, -0.1]);
|
||||||
const reloadCoefficient =
|
const reloadCoefficient =
|
||||||
(coefficient([hasRammer, -0.07]) *
|
(coefficient([hasRammer, -0.07]) *
|
||||||
coefficient([true, degressiveStat(crewMemberMastery)])) /
|
coefficient([true, degressiveStat(crewMemberMastery)])) /
|
||||||
|
|||||||
Reference in new issue
Block a user