mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
Feature: track repair time in Tankopedia
Adds track repair time to the Tankopedia survivability stats, matching the value the game lists. - Added a required `repair_time` to track definitions, filled from each chassis's hysteresis health divided by its health regen per second - Applied the toolbox, the repair crew skill and the protective kit as multiplicative repair speed bonuses - Added a Track repair time row under fire chance; it appears once the definitions are regenerated on the next build Fixes #308
This commit is contained in:
1 parent
7234c39ad8
commit
940c3c537b
7 files changed
+39
No files matched your search
@@ -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