mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
some more stats
This commit is contained in:
1 parent
231e4aad0e
commit
ff7716ce6c
3 files changed
+35
-16
No files matched your search
@@ -82,6 +82,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"units": {
|
"units": {
|
||||||
|
"hp_s": "{value}hp/s",
|
||||||
|
"kN": "{value}kN",
|
||||||
"s": "{value}s",
|
"s": "{value}s",
|
||||||
"hp": "{value}hp",
|
"hp": "{value}hp",
|
||||||
"mm": "{value}mm",
|
"mm": "{value}mm",
|
||||||
|
|||||||
@@ -322,8 +322,11 @@ export const characteristics = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
hull_traverse_speed() {
|
hull_traverse_speed({ attribute }) {
|
||||||
return -Infinity;
|
const speed = attribute(
|
||||||
|
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_HULL_ROTATION_SPEED,
|
||||||
|
);
|
||||||
|
return speed * (180 / Math.PI);
|
||||||
},
|
},
|
||||||
|
|
||||||
health({ attribute }) {
|
health({ attribute }) {
|
||||||
@@ -438,32 +441,46 @@ export const characteristics = {
|
|||||||
return -Infinity;
|
return -Infinity;
|
||||||
},
|
},
|
||||||
|
|
||||||
brake_force() {
|
brake_force({ attribute }) {
|
||||||
return -Infinity;
|
const brakeForce = attribute(
|
||||||
|
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_BRAKE_FORCE,
|
||||||
|
);
|
||||||
|
|
||||||
|
return brakeForce / 1000;
|
||||||
},
|
},
|
||||||
|
|
||||||
gun_traverse_speed() {
|
gun_traverse_speed({ attribute }) {
|
||||||
return -Infinity;
|
const speed = attribute(
|
||||||
|
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_GUN_ROTATION_SPEED,
|
||||||
|
);
|
||||||
|
return speed;
|
||||||
},
|
},
|
||||||
|
|
||||||
fire_rate() {
|
fire_rate({ attribute }) {
|
||||||
return -Infinity;
|
return attribute(
|
||||||
|
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_HEALTH_BURN_PER_SEC,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
ramming_resistance() {
|
ramming_resistance({ attributeSafe }) {
|
||||||
return -Infinity;
|
const resistance =
|
||||||
|
attributeSafe(
|
||||||
|
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_RAMMING_DAMAGE_RESISTANCE,
|
||||||
|
) ?? 0;
|
||||||
|
|
||||||
|
return resistance * 100;
|
||||||
},
|
},
|
||||||
|
|
||||||
width() {
|
width() {
|
||||||
return -Infinity;
|
return -Infinity;
|
||||||
},
|
},
|
||||||
|
|
||||||
penetration_loss_after_ricochet({ shell }) {
|
penetration_loss_after_ricochet({ shellSafe }) {
|
||||||
const loss = shell(
|
const loss = shellSafe(
|
||||||
ShellUpgradeSingleChange_AttributeName.ATTRIBUTE_NAME_PIERCING_POWER_LOSS_AFTER_HIT,
|
ShellUpgradeSingleChange_AttributeName.ATTRIBUTE_NAME_PIERCING_POWER_LOSS_AFTER_HIT,
|
||||||
);
|
);
|
||||||
|
|
||||||
return loss;
|
return loss ?? 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
penetration_loss_by_distance({ attributeSafe }) {
|
penetration_loss_by_distance({ attributeSafe }) {
|
||||||
|
|||||||
@@ -187,12 +187,12 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
{ name: "speed_forward", units: "km_h" },
|
{ name: "speed_forward", units: "km_h" },
|
||||||
{ name: "speed_backward", units: "km_h" },
|
{ name: "speed_backward", units: "km_h" },
|
||||||
|
|
||||||
{ name: "engine_power", units: "bhp" },
|
|
||||||
{ name: "brake_force", units: "N" },
|
|
||||||
{ name: "weight", decimals: 1, units: "t" },
|
{ name: "weight", decimals: 1, units: "t" },
|
||||||
|
{ name: "engine_power", units: "bhp" },
|
||||||
{ name: "power_to_weight", decimals: 1, units: "bhp_t" },
|
{ name: "power_to_weight", decimals: 1, units: "bhp_t" },
|
||||||
|
{ name: "brake_force", decimals: 1, units: "kN" },
|
||||||
|
|
||||||
{ name: "terrain_coefficient" },
|
{ name: "terrain_coefficient", decimals: 2 },
|
||||||
|
|
||||||
{ name: "hull_traverse_speed", units: "deg_s" },
|
{ name: "hull_traverse_speed", units: "deg_s" },
|
||||||
{ name: "turret_traverse_speed", units: "deg_s" },
|
{ name: "turret_traverse_speed", units: "deg_s" },
|
||||||
|
|||||||
Reference in new issue
Block a user