mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
shell params
This commit is contained in:
1 parent
53eebc7a43
commit
1f0392681a
4 files changed
+30
-16
No files matched your search
@@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user