mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
Merge pull request #366 from Hitjack007/track-repair-time
This commit is contained in:
7 files changed
+39
No files matched your search
+8
@@ -24,6 +24,14 @@ export function Survivability({ stats }: StatsAcceptorProps) {
|
||||
decimals={0}
|
||||
value={(stats) => stats.fireChance * 100}
|
||||
/>
|
||||
{stats.trackRepairTime !== undefined && (
|
||||
<InfoWithDelta
|
||||
value="trackRepairTime"
|
||||
stats={stats}
|
||||
deltaType="lowerIsBetter"
|
||||
decimals={2}
|
||||
/>
|
||||
)}
|
||||
<InfoWithDelta value="viewRange" stats={stats} decimals={0} />
|
||||
<ViewRangeVisualizer stats={stats} />
|
||||
<Info
|
||||
|
||||
@@ -119,6 +119,7 @@ export function tankCharacteristics(
|
||||
const hasImprovedVerticalStabilizer = equipment(122);
|
||||
const hasDownImprovedVerticalStabilizer = equipment(124);
|
||||
const hasImprovedSuspension = equipment(123);
|
||||
const hasToolbox = equipment(113);
|
||||
|
||||
const hasTungsten = consumable(45);
|
||||
const hasAdrenaline = consumable(18);
|
||||
@@ -518,6 +519,12 @@ export function tankCharacteristics(
|
||||
}
|
||||
|
||||
const fireChance = engine.fire_chance * fireChanceCoefficient;
|
||||
const trackRepairTime = track.repair_time
|
||||
? track.repair_time /
|
||||
((hasToolbox ? 1.2 : 1) *
|
||||
(1 + (crewSkills.repair ?? 0) * 0.04) *
|
||||
(hasProtectiveKit ? 1.1 : 1))
|
||||
: undefined;
|
||||
const viewRange = turret.view_range * viewRangeCoefficient;
|
||||
const camouflageStill = tank.camouflage_still * camouflageCoefficientStill;
|
||||
const camouflageMoving =
|
||||
@@ -602,6 +609,7 @@ export function tankCharacteristics(
|
||||
hullTraverseSoftTerrain,
|
||||
health,
|
||||
fireChance,
|
||||
trackRepairTime,
|
||||
viewRange,
|
||||
camouflageStill,
|
||||
camouflageMoving,
|
||||
|
||||
Reference in new issue
Block a user