mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 21:19:52 +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",
|
"name": "blitzkit",
|
||||||
"version": "1.30.0",
|
"version": "1.30.1",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-6
@@ -144,10 +144,6 @@ export function PrimaryArmorSceneComponent({
|
|||||||
Duel.state.antagonist.tank.equipment_preset,
|
Duel.state.antagonist.tank.equipment_preset,
|
||||||
equipment,
|
equipment,
|
||||||
);
|
);
|
||||||
const equalize =
|
|
||||||
(Duel.state.equalize
|
|
||||||
? Duel.state.antagonist.tank.equalizer?.penetration
|
|
||||||
: undefined) ?? 1;
|
|
||||||
|
|
||||||
material.uniforms.penetration.value =
|
material.uniforms.penetration.value =
|
||||||
penetration *
|
penetration *
|
||||||
@@ -156,8 +152,7 @@ export function PrimaryArmorSceneComponent({
|
|||||||
Duel.state.equalize,
|
Duel.state.equalize,
|
||||||
shell.type,
|
shell.type,
|
||||||
Duel.state.antagonist.tank.equalizer,
|
Duel.state.antagonist.tank.equalizer,
|
||||||
) *
|
);
|
||||||
equalize;
|
|
||||||
|
|
||||||
if (!noInvalidate) invalidate();
|
if (!noInvalidate) invalidate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ import { defaultEqualizer } from "./tankToDuelMember";
|
|||||||
export type TankCharacteristics = ReturnType<typeof tankCharacteristics>;
|
export type TankCharacteristics = ReturnType<typeof tankCharacteristics>;
|
||||||
export type TankCharacteristicsKey = keyof TankCharacteristics;
|
export type TankCharacteristicsKey = keyof TankCharacteristics;
|
||||||
|
|
||||||
|
const EQUALIZER_HEALTH_EPSILON = 50;
|
||||||
|
|
||||||
export function tankCharacteristics(
|
export function tankCharacteristics(
|
||||||
{
|
{
|
||||||
tank,
|
tank,
|
||||||
@@ -505,7 +507,13 @@ export function tankCharacteristics(
|
|||||||
hullTraverseCoefficient *
|
hullTraverseCoefficient *
|
||||||
(track.resistance_hard / softTerrainCoefficientRaw) *
|
(track.resistance_hard / softTerrainCoefficientRaw) *
|
||||||
(stockWeight / weightKg);
|
(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 fireChance = engine.fire_chance * fireChanceCoefficient;
|
||||||
const viewRange = turret.view_range * viewRangeCoefficient;
|
const viewRange = turret.view_range * viewRangeCoefficient;
|
||||||
const camouflageStill = tank.camouflage_still * camouflageCoefficientStill;
|
const camouflageStill = tank.camouflage_still * camouflageCoefficientStill;
|
||||||
|
|||||||
@@ -5,4 +5,3 @@ import ToolLayout from "../../layouts/ToolLayout.astro";
|
|||||||
---
|
---
|
||||||
|
|
||||||
<ToolLayout locale={locales.default} tool={tools.api} />
|
<ToolLayout locale={locales.default} tool={tools.api} />
|
||||||
|
|
||||||
Reference in new issue
Block a user