mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
Fixed Provisions not affecting terrain resistances and added commented-out helper function to log provisions later if needed.
This commit is contained in:
1 parent
45c7d74160
commit
5e4c5fc230
2 files changed
+14
-6
No files matched your search
+9
@@ -14,6 +14,15 @@ export function Provisions() {
|
||||
const provisionsList = availableProvisions(tank, gun, provisionDefinitions);
|
||||
const { strings } = useLocale();
|
||||
|
||||
// FOR PROVISION LOGGING PURPOSES
|
||||
//
|
||||
// console.log('ALL PROVISIONS:', Object.entries(provisionDefinitions.provisions).map(([id, p]) => ({
|
||||
// id: Number(id),
|
||||
// name: p.name,
|
||||
// crew: p.crew,
|
||||
// hasCrewBonus: !!p.crew
|
||||
// })));
|
||||
|
||||
return (
|
||||
<ConfigurationChildWrapper>
|
||||
<Flex gap="4" align="center">
|
||||
|
||||
@@ -236,12 +236,11 @@ export function tankCharacteristics(
|
||||
[hasImprovedEnginePowerBoost, 0.01],
|
||||
[true, crewSkills.virtuoso / 100],
|
||||
) * coefficient([true, progressiveStat(driverMastery)]);
|
||||
const resistanceHardCoefficient = coefficient([hasImprovedSuspension, -0.2]);
|
||||
const resistanceMediumCoefficient = coefficient([
|
||||
hasImprovedSuspension,
|
||||
-0.15,
|
||||
]);
|
||||
const resistanceSoftCoefficient = coefficient([hasImprovedSuspension, -0.3]);
|
||||
|
||||
const resistanceHardCoefficient = coefficient([hasImprovedSuspension, -0.2]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||
const resistanceMediumCoefficient = coefficient([hasImprovedSuspension, -0.15]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||
const resistanceSoftCoefficient = coefficient([hasImprovedSuspension, -0.3]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||
|
||||
const viewRangeCoefficient =
|
||||
coefficient([
|
||||
hasImprovedOptics,
|
||||
|
||||
Reference in new issue
Block a user