mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
shell params
This commit is contained in:
1 parent
53eebc7a43
commit
1f0392681a
4 files changed
+30
-16
No files matched your search
@@ -75,7 +75,7 @@
|
||||
gap: var(--space-2);
|
||||
|
||||
&[data-indent="true"] {
|
||||
padding-left: var(--space-5);
|
||||
padding-left: var(--space-4);
|
||||
}
|
||||
|
||||
.value {
|
||||
|
||||
@@ -316,7 +316,17 @@ export const characteristics = {
|
||||
},
|
||||
},
|
||||
|
||||
// penetration_loss_after_ricochet: unavailable,
|
||||
penetration_loss_after_ricochet: {
|
||||
type: CharacteristicType.Number,
|
||||
|
||||
should_render({ shell }) {
|
||||
return !isExplosive(shell.type);
|
||||
},
|
||||
|
||||
compute() {
|
||||
return 25;
|
||||
},
|
||||
},
|
||||
|
||||
shell_velocity: {
|
||||
type: CharacteristicType.Number,
|
||||
@@ -458,11 +468,7 @@ export const characteristics = {
|
||||
coefficient *= effect.shotDispersionAngleFactor;
|
||||
});
|
||||
|
||||
return (
|
||||
gun.dispersion_base *
|
||||
degressive("gunner") *
|
||||
coefficient
|
||||
);
|
||||
return gun.dispersion_base * degressive("gunner") * coefficient;
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -110,8 +110,16 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
// render: CharacteristicsGroupRender.Statistical,
|
||||
order: [
|
||||
{ name: "penetration", units: "mm" },
|
||||
{ name: "penetration_loss_by_distance", units: "percentage" },
|
||||
{ name: "penetration_loss_after_ricochet" },
|
||||
{
|
||||
name: "penetration_loss_by_distance",
|
||||
units: "percentage",
|
||||
indent: true,
|
||||
},
|
||||
{
|
||||
name: "penetration_loss_after_ricochet",
|
||||
units: "percentage",
|
||||
indent: true,
|
||||
},
|
||||
{ name: "shell_velocity", units: "m_s" },
|
||||
{ name: "shell_range", units: "m" },
|
||||
{ name: "shell_capacity" },
|
||||
|
||||
Reference in new issue
Block a user