Commit Graph
1775 Commits
Author SHA1 Message Date
Mark Greene 6fb14d5544 Fix: footer game version and CDN label
The footer showed the game's full version with its build number and labelled the environment as "CDN".

Show only the part of the game version before the underscore (e.g. 11.20), and rename the "CDN" label to "Branch" since it shows the environment/branch the site was built from.
2026-10-04 14:36:18 +13:00
Mark Greene 2e46ba79cf Fix: reload times show one decimal from a shared constant
The reload visualizer and the Firepower reload rows showed two decimals.

Add an exported `RELOAD_PRECISION` (1) in the reload visualizer and use it for the visualizer's times and placeholders and for the Firepower reload rows (per-shell reloads, reload and intra-clip).
2026-10-04 14:33:24 +13:00
Mark Greene 6153beced6 Fix: search redirecting early and missing full tank names
**Enter key**
- Enter redirected to the previous results' first tank while a search was still buffering, because the key handler captured a stale `searching` value.
- Enter on an empty field redirected to the first tank of the unfiltered list (Sheridan).
- The handler now reads live filter state and only acts when there is a settled search, matching the quick-link button.

**Full names in search**
- Search only knew short tank names, so queries like "super pershing" found nothing when the game stores a short form.
- Add an optional `name_full` to `TankDefinition`, filled from the game's full name when a short name exists, and index it (plus an accent-stripped copy) in `fetchTankNames` / `SEARCH_KEYS`.
- Displayed names are unchanged. Full names become searchable once the definitions are regenerated on the next build.
2026-10-04 14:24:02 +13:00
Mark Greene 90006dfd2a Fix: loading bar too close to tank title
The hero loading bar was offset below the title by half the font size plus a fixed 16px. The title is centered as a line box, so its descenders and heavy caps reach lower than half the font size, and the fixed gap didn't grow with the title.

Offset the bar by 0.75 of the font size instead, so the gap scales with the title.
2026-10-04 14:14:57 +13:00
Mark Greene 98b555fa7e Fix: gun depression visualizer ignoring turret mount tilt
The gun flexibility visualizer at the bottom of the Tankopedia Firepower section computed depression/elevation purely from the raw gun `pitch.min`/`pitch.max` values, ignoring `initial_turret_rotation.pitch` (the tank's baked-in turret mount tilt). Every other place that reports gun depression/elevation already accounts for this offset; the visualizer was the outlier.

On tanks with a level turret mount the offset is zero, so it was invisible almost everywhere. Minotauro's turret sits pitched 3° forward, which made the visualizer's min/max/pitch stats and wedge shape disagree with the Firepower stats directly above it (e.g. 7°/-18° instead of 10°/15°).

**Changes:**
- `GunFlexibilityVisualizer/index.tsx`: fold the turret's initial pitch offset into `minPitch`, `maxPitch` and the displayed `pitch` stat, and into the drawn limit shape, the pitch dot and the pointer mapping, so the dashed neutrality circle sits at the displayed 0°.
- `GunFlexibilityVisualizer/components/CanvasContent.tsx`: nest the gun mesh inside a turret group carrying the same static tilt as its base rotation, so the mini 3D preview's live drag-pitch composes on top of it, mirroring `useTankTransform.ts`.
2026-10-04 13:38:20 +13:00
Mark Greene 0bdb66742b Feature: Add Spall Liner toggle to Tankopedia model viewer
## Summary
- Add a Spall Liner toggle button to the Tankopedia model viewer, placed alongside the existing Calibrated Shells / Enhanced Armor buttons. It's only shown for tanks that can actually equip Spall Liner.
- The toggle reads/writes the same `Duel.protagonist.provisions` array as the Provisions tab, so both stay in sync automatically.
- If a provision slot is free, clicking equips Spall Liner immediately. If all slots are full, a popover shows icons with a shuffle arrow so you can pick which active provision to swap out in one step.
- Buttons use the same medium rounding as the consumable buttons on the tank page.
- When Spall Liner is equipped, the Dynamic Armor 3D viewer's click-damage tooltip now applies the same 20% HE damage reduction Spall Liner grants in-game.
- Refactored the hardcoded `-0.2` HE damage coefficient in `tankCharacteristics.ts` into a shared constant so the Compare tool and the 3D viewer use a single source of truth.

## Scope
This only affects the single-tank Tankopedia page. The Firepower stats table (the viewed tank's own outgoing gun damage) is intentionally untouched, since a defensive damage reduction would be semantically backwards there. The Dynamic Armor viewer's click tooltip is the only place a "damage taken by this tank" number exists, so that's where the reduction is wired in.
2026-10-04 13:27:34 +13:00
TrèsAbhi 126e91411a New translations en.json (Russian)
[ci skip]
2026-10-02 15:35:49 -07:00
TrèsAbhi 24ffd70394 New translations en.json (Portuguese)
[ci skip]
2026-10-02 15:35:48 -07:00
TrèsAbhi 8c8b36f0d5 New translations en.json (Polish)
[ci skip]
2026-10-02 15:35:46 -07:00
TrèsAbhi 38c595ebce New translations en.json (Japanese)
[ci skip]
2026-10-02 15:35:45 -07:00
TrèsAbhi 66a6aece7c New translations en.json (Spanish)
[ci skip]
2026-10-02 15:35:43 -07:00
TrèsAbhi 35ce79a421 New translations en.json (French)
[ci skip]
2026-10-02 15:35:41 -07:00
TrèsAbhi 8e8da15254 New translations en.json (Chinese Simplified)
[ci skip]
2026-10-02 15:35:40 -07:00
TrèsAbhi eea358c4e1 New translations en.json (Ukrainian)
[ci skip]
2026-10-02 15:35:38 -07:00
TrèsAbhi 3b0af110d2 Merge branch 'main' into peekabo-dpm 2026-10-02 15:22:06 -07:00
TrèsAbhi 91da72e8b4 New Crowdin updates (#268) 2026-10-02 17:08:10 -05:00
TrèsAbhi 6319d6fbd0 Merge pull request #269 from Hitjack007/equaliser-beta-flag 2026-10-02 15:05:56 -07:00
tresabhi a5321ebde3 game mode banner with string ids 2026-10-02 17:05:25 -05:00
tresabhi 74ca01f978 remove string 2026-10-02 17:01:43 -05:00
tresabhi b7ac038ace Merge branch 'main' of https://github.com/blitzkit/blitzkit 2026-10-02 16:56:05 -05:00
tresabhi 1a2caf120b remove some dead code 2026-10-02 16:55:53 -05:00
TrèsAbhi 377bbabb02 Merge pull request #270 from Hitjack007/contact-shadows-fix 2026-10-02 14:55:05 -07:00
TrèsAbhi a4c6f0a1e2 Merge pull request #272 from Hitjack007/moving-camo-duplicate
Clarify shooting camo labels
2026-10-02 14:37:28 -07:00
tresabhi f7db1280cf use useRef instead of useState 2026-10-02 16:34:12 -05:00
TrèsAbhi 0477887d68 Merge branch 'main' into consumable-armor-view 2026-10-02 14:20:38 -07:00
Mark Greene 0941c23a3c Fix dynamic armor overlay vanishing on re-render
PrimaryArmorSceneComponent rebuilt its ShaderMaterial every render with null uniforms that were only set once on mount. Create it once with useState instead.
2026-10-02 19:24:43 +13:00
Mark Greene d44c184025 Clarify shooting camo labels 2026-10-02 18:49:23 +13:00
Mark Greene 73975a5d83 Fix contact shadows growing across modes
Armor left gl.autoClear off after its frame, so ContactShadows accumulated onto an uncleared target. Restore it at the end of the frame.
2026-10-02 18:34:50 +13:00
Mark Greene 7f9ee1f907 Remove equalizer beta badge 2026-10-02 18:27:10 +13:00
tresabhi 238674bd96 groups 2026-10-01 20:11:12 -05:00
tresabhi af85fb74cb haha characteristics render! 2026-10-01 15:52:14 -05:00
tresabhi bd42cb44e4 equipment looks 2026-10-01 11:59:19 -05:00
tresabhi 1f767af0b5 angles 2026-09-30 20:59:18 -05:00
tresabhi f73ffc3c93 correct axes 2026-09-30 19:00:25 -05:00
tresabhi 5d4e0541b2 correct filtering 2026-09-30 18:41:22 -05:00
tresabhi cbf320454f various bug fixes 2026-09-30 18:38:15 -05:00
tresabhi 74fbd15c5f TankopediaCharacteristics 2026-09-30 18:22:18 -05:00
tresabhi 5cae5d1583 models shit 2026-09-30 17:56:31 -05:00
tresabhi 5c88bda07a CanvasControl 2026-09-30 17:48:48 -05:00
tresabhi 19dbd8ca2e SpacedArmorSubSpaced 2026-09-30 17:47:23 -05:00
tresabhi f17ac2b575 SpacedArmorSubExternal 2026-09-30 17:45:11 -05:00
tresabhi 5d7482b158 SpacedArmorSceneComponent 2026-09-30 17:41:46 -05:00
tresabhi 22aff6188a SpacedArmorScene 2026-09-30 17:38:27 -05:00
tresabhi 1ee6cdabe5 SpacedArmorScene 2026-09-30 17:36:51 -05:00
tresabhi 480d2226f7 versions and shit 2026-09-30 17:32:39 -05:00
tresabhi c42b109974 Merge branch 'main' into data-driven 2026-09-30 15:52:42 -05:00
tresabhi ee146b8ed9 fix wgpkg dirs 2026-09-30 13:51:13 -05:00
tresabhi 1c382022a7 proto3 2026-09-27 17:24:48 -05:00
tresabhi 593ae760e7 proto imports 2026-09-27 17:19:39 -05:00
tresabhi 127c55ec93 migrate to soapstone 2026-09-27 17:04:15 -05:00