mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: dpm using adrelaine and tungesten
This commit is contained in:
1 parent
2a70602f7e
commit
ddf2c2b2ac
2 files changed
+19
-4
No files matched your search
@@ -5,19 +5,27 @@ export function resolveDpm(
|
||||
shell: ShellDefinition,
|
||||
hasRammer = false,
|
||||
hasShellReloadBoost = false,
|
||||
hasAdrenaline = false,
|
||||
hasTungsten = false,
|
||||
) {
|
||||
const alpha = shell.damage.armor * (hasTungsten ? 1.15 : 1);
|
||||
|
||||
if (gun.type === 'regular') {
|
||||
return (shell.damage.armor / ((hasRammer ? 0.93 : 1) * gun.reload)) * 60;
|
||||
return (
|
||||
(alpha /
|
||||
((hasRammer ? 0.93 : 1) * (hasAdrenaline ? 0.8 : 1) * gun.reload)) *
|
||||
60
|
||||
);
|
||||
} else if (gun.type === 'autoLoader') {
|
||||
return (
|
||||
((shell.damage.armor * gun.count) /
|
||||
((alpha * gun.count) /
|
||||
(gun.reload +
|
||||
(gun.count - 1) * gun.interClip * (hasShellReloadBoost ? 0.7 : 1))) *
|
||||
60
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
((shell.damage.armor * gun.count) /
|
||||
((alpha * gun.count) /
|
||||
(gun.reload.reduce((a, b) => a + b, 0) +
|
||||
(gun.count - 1) * gun.interClip)) *
|
||||
60
|
||||
|
||||
Reference in new issue
Block a user