This commit is contained in:
tresabhi committed 2026-10-04 18:16:08 -05:00
1 parent 474e71843d
commit 7cb3df3da2
5 files changed
+51 -21

No files matched your search

+26 -2
View File
@@ -87,12 +87,36 @@ export const characteristics = {
let coefficient = 1;
script("protagonist", "CalibratedShells", (effect) => {
coefficient *=
1 +
coefficient +=
effect.piercingFactors![blitzkitToBlitzShellKind[shell.type]] / 100;
});
return coefficient * shell.penetration!.near;
},
},
reload: {
type: CharacteristicType.Number,
should_render({ gun }) {
return gun.gun_type!.$case !== "auto_reloader";
},
compute({ gun, script }) {
// should never happen! just for typescript
if (gun.gun_type!.$case === "auto_reloader") return -Infinity;
let coefficient = 1;
script("protagonist", "miscAttrs/gunReloadTimeFactor", (effect) => {
coefficient += effect.bonusValues!.percent / 100;
});
if (gun.gun_type!.$case === "regular") {
return coefficient * gun.gun_type!.value.reload;
}
return gun.gun_type!.value.clip_reload;
},
},
} satisfies Record<string, Characteristic>;