mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
applyDynamicArmor
This commit is contained in:
1 parent
870f7d799b
commit
1a19cff268
2 files changed
+8
-7
No files matched your search
@@ -55,6 +55,10 @@ export const characteristics = {
|
||||
coefficient *= 1 - effect.shieldCoef;
|
||||
});
|
||||
|
||||
script("antagonist", "ArmorMover", (effect) => {
|
||||
coefficient *= 1 - effect.bonusValues!.damageReductionPercent / 100;
|
||||
});
|
||||
|
||||
return coefficient * shell.module_damage;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -168,13 +168,10 @@ export function tankCharacteristics(
|
||||
const intraClipCoefficient = coefficient([hasShellReloadBoost, -0.3]);
|
||||
const burstShells = gun.burst?.count ?? 1;
|
||||
const burstInterShell = gun.burst?.interval;
|
||||
const armorDamageCoefficient = coefficient(
|
||||
[applyDynamicArmor, -0.1],
|
||||
[
|
||||
applySpallLiner && shell.type === ShellType.SHELL_TYPE_HE,
|
||||
SPALL_LINER_HE_DAMAGE_DELTA,
|
||||
],
|
||||
);
|
||||
const armorDamageCoefficient = coefficient([
|
||||
applySpallLiner && shell.type === ShellType.SHELL_TYPE_HE,
|
||||
SPALL_LINER_HE_DAMAGE_DELTA,
|
||||
]);
|
||||
const assaultDamageCoefficient =
|
||||
gun.assault_ranges && gun.assault_ranges.types.includes(shell.type)
|
||||
? (gun.assault_ranges.ranges.find(
|
||||
|
||||
Reference in new issue
Block a user