mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
reloads
This commit is contained in:
1 parent
3d8cfc3aeb
commit
bc6257a0c3
5 files changed
+118
-34
No files matched your search
@@ -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,
|
||||
|
||||
|
||||
Reference in new issue
Block a user