mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 12:09:50 +01:00
Compare commits
6
Commits
bc4f51846d
...
f3ed687f00
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3ed687f00 | ||
|
|
e37575148c | ||
|
|
2df9979f08 | ||
|
|
c8ce26d6a7 | ||
|
|
898fd4bbf6 | ||
|
|
744f7195dd |
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# BlitzKit 1.30.1
|
||||
|
||||
Thank you to [GonnaHetzMe](https://github.com/karelpak1) for your contributions this update.
|
||||
|
||||
## Fixes
|
||||
|
||||
- [GonnaHetzMe] Tank hit points in Equalizer mode is now accurate to the game
|
||||
- Armor highlighting now reflects the actual thicknesses of tanks in Equalizer mode
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blitzkit",
|
||||
"version": "1.30.0",
|
||||
"version": "1.30.1",
|
||||
"license": "BlitzKit License",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
+1
-6
@@ -144,10 +144,6 @@ export function PrimaryArmorSceneComponent({
|
||||
Duel.state.antagonist.tank.equipment_preset,
|
||||
equipment,
|
||||
);
|
||||
const equalize =
|
||||
(Duel.state.equalize
|
||||
? Duel.state.antagonist.tank.equalizer?.penetration
|
||||
: undefined) ?? 1;
|
||||
|
||||
material.uniforms.penetration.value =
|
||||
penetration *
|
||||
@@ -156,8 +152,7 @@ export function PrimaryArmorSceneComponent({
|
||||
Duel.state.equalize,
|
||||
shell.type,
|
||||
Duel.state.antagonist.tank.equalizer,
|
||||
) *
|
||||
equalize;
|
||||
);
|
||||
|
||||
if (!noInvalidate) invalidate();
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ import { defaultEqualizer } from "./tankToDuelMember";
|
||||
export type TankCharacteristics = ReturnType<typeof tankCharacteristics>;
|
||||
export type TankCharacteristicsKey = keyof TankCharacteristics;
|
||||
|
||||
const EQUALIZER_HEALTH_EPSILON = 50;
|
||||
|
||||
export function tankCharacteristics(
|
||||
{
|
||||
tank,
|
||||
@@ -505,7 +507,13 @@ export function tankCharacteristics(
|
||||
hullTraverseCoefficient *
|
||||
(track.resistance_hard / softTerrainCoefficientRaw) *
|
||||
(stockWeight / weightKg);
|
||||
const health = (tank.health + turret.health) * healthCoefficient;
|
||||
let health = (tank.health + turret.health) * healthCoefficient;
|
||||
|
||||
if (equalize) {
|
||||
health =
|
||||
EQUALIZER_HEALTH_EPSILON * Math.round(health / EQUALIZER_HEALTH_EPSILON);
|
||||
}
|
||||
|
||||
const fireChance = engine.fire_chance * fireChanceCoefficient;
|
||||
const viewRange = turret.view_range * viewRangeCoefficient;
|
||||
const camouflageStill = tank.camouflage_still * camouflageCoefficientStill;
|
||||
|
||||
@@ -5,4 +5,3 @@ import ToolLayout from "../../layouts/ToolLayout.astro";
|
||||
---
|
||||
|
||||
<ToolLayout locale={locales.default} tool={tools.api} />
|
||||
|
||||
Reference in new issue
Block a user