mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +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": {
|
||||
"hp_s": "{value}hp/s",
|
||||
"kN": "{value}kN",
|
||||
"s": "{value}s",
|
||||
"hp": "{value}hp",
|
||||
"mm": "{value}mm",
|
||||
|
||||
@@ -322,8 +322,11 @@ export const characteristics = {
|
||||
);
|
||||
},
|
||||
|
||||
hull_traverse_speed() {
|
||||
return -Infinity;
|
||||
hull_traverse_speed({ attribute }) {
|
||||
const speed = attribute(
|
||||
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_HULL_ROTATION_SPEED,
|
||||
);
|
||||
return speed * (180 / Math.PI);
|
||||
},
|
||||
|
||||
health({ attribute }) {
|
||||
@@ -438,32 +441,46 @@ export const characteristics = {
|
||||
return -Infinity;
|
||||
},
|
||||
|
||||
brake_force() {
|
||||
return -Infinity;
|
||||
brake_force({ attribute }) {
|
||||
const brakeForce = attribute(
|
||||
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_BRAKE_FORCE,
|
||||
);
|
||||
|
||||
return brakeForce / 1000;
|
||||
},
|
||||
|
||||
gun_traverse_speed() {
|
||||
return -Infinity;
|
||||
gun_traverse_speed({ attribute }) {
|
||||
const speed = attribute(
|
||||
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_GUN_ROTATION_SPEED,
|
||||
);
|
||||
return speed;
|
||||
},
|
||||
|
||||
fire_rate() {
|
||||
return -Infinity;
|
||||
fire_rate({ attribute }) {
|
||||
return attribute(
|
||||
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_HEALTH_BURN_PER_SEC,
|
||||
);
|
||||
},
|
||||
|
||||
ramming_resistance() {
|
||||
return -Infinity;
|
||||
ramming_resistance({ attributeSafe }) {
|
||||
const resistance =
|
||||
attributeSafe(
|
||||
TankAttributeChange_AttributeName.ATTRIBUTE_NAME_RAMMING_DAMAGE_RESISTANCE,
|
||||
) ?? 0;
|
||||
|
||||
return resistance * 100;
|
||||
},
|
||||
|
||||
width() {
|
||||
return -Infinity;
|
||||
},
|
||||
|
||||
penetration_loss_after_ricochet({ shell }) {
|
||||
const loss = shell(
|
||||
penetration_loss_after_ricochet({ shellSafe }) {
|
||||
const loss = shellSafe(
|
||||
ShellUpgradeSingleChange_AttributeName.ATTRIBUTE_NAME_PIERCING_POWER_LOSS_AFTER_HIT,
|
||||
);
|
||||
|
||||
return loss;
|
||||
return loss ?? 0;
|
||||
},
|
||||
|
||||
penetration_loss_by_distance({ attributeSafe }) {
|
||||
|
||||
@@ -187,12 +187,12 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
||||
{ name: "speed_forward", 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: "engine_power", units: "bhp" },
|
||||
{ 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: "turret_traverse_speed", units: "deg_s" },
|
||||
|
||||
Reference in new issue
Block a user