This commit is contained in:
tresabhi committed 2026-10-12 10:47:00 -05:00
1 parent 3d8cfc3aeb
commit bc6257a0c3
5 files changed
+118 -34

No files matched your search

+18 -2
View File
@@ -101,6 +101,24 @@ export const characteristics = {
},
},
reloads: {
type: CharacteristicType.NumberList,
should_render({ gun }) {
return gun.gun_type!.$case === "auto_reloader";
},
compute({ gun, characteristic }) {
if (gun.gun_type!.$case !== "auto_reloader") return [];
const reloadCoefficient = characteristic("_reload_coefficient") as number;
return gun.gun_type!.value.shell_reloads.map(
(reload) => reload * reloadCoefficient,
);
},
},
intra_clip: {
type: CharacteristicType.Number,
@@ -195,8 +213,6 @@ export const characteristics = {
// module_damage_range: unavailable,
// reloads: unavailable,
clip_size: {
type: CharacteristicType.Number,