mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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 provisionsList = availableProvisions(tank, gun, provisionDefinitions);
|
||||||
const { strings } = useLocale();
|
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 (
|
return (
|
||||||
<ConfigurationChildWrapper>
|
<ConfigurationChildWrapper>
|
||||||
<Flex gap="4" align="center">
|
<Flex gap="4" align="center">
|
||||||
|
|||||||
@@ -236,12 +236,11 @@ export function tankCharacteristics(
|
|||||||
[hasImprovedEnginePowerBoost, 0.01],
|
[hasImprovedEnginePowerBoost, 0.01],
|
||||||
[true, crewSkills.virtuoso / 100],
|
[true, crewSkills.virtuoso / 100],
|
||||||
) * coefficient([true, progressiveStat(driverMastery)]);
|
) * coefficient([true, progressiveStat(driverMastery)]);
|
||||||
const resistanceHardCoefficient = coefficient([hasImprovedSuspension, -0.2]);
|
|
||||||
const resistanceMediumCoefficient = coefficient([
|
const resistanceHardCoefficient = coefficient([hasImprovedSuspension, -0.2]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||||
hasImprovedSuspension,
|
const resistanceMediumCoefficient = coefficient([hasImprovedSuspension, -0.15]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||||
-0.15,
|
const resistanceSoftCoefficient = coefficient([hasImprovedSuspension, -0.3]) * coefficient([true, degressiveStat(driverMastery)]);
|
||||||
]);
|
|
||||||
const resistanceSoftCoefficient = coefficient([hasImprovedSuspension, -0.3]);
|
|
||||||
const viewRangeCoefficient =
|
const viewRangeCoefficient =
|
||||||
coefficient([
|
coefficient([
|
||||||
hasImprovedOptics,
|
hasImprovedOptics,
|
||||||
|
|||||||
Reference in new issue
Block a user