fix: use gun list for dispersion fallback

This commit is contained in:
TrèsAbhi committed 2024-02-16 09:48:57 -06:00
1 parent e0c0ec6fc3
commit 0e57c37296
1 file changed
+4 -1
+4 -1
View File
@@ -214,6 +214,7 @@ interface GunDefinitionsList {
whileGunDamaged: number;
};
aimingTime: number;
shotDispersionRadius: number;
userString: string;
tags: string;
level: number;
@@ -700,7 +701,9 @@ export async function definitions(production: boolean) {
: turretGunEntry.invisibilityFactorAtShot.at(-1)!,
aimTime: turretGunEntry.aimingTime ?? gunListEntry.aimingTime,
dispersion: {
base: turretGunEntry.shotDispersionRadius,
base:
turretGunEntry.shotDispersionRadius ??
gunListEntry.shotDispersionRadius,
damaged: shotDispersionFactors.whileGunDamaged,
shot: shotDispersionFactors.afterShot,
traverse: shotDispersionFactors.turretRotation,