Improved fillMagazineWithRandomCartridge()
logging
This commit is contained in:
parent
63420f7a7b
commit
f406918bb8
@ -1413,8 +1413,11 @@ export class ItemHelper
|
||||
);
|
||||
if (!cartridgeTpl)
|
||||
{
|
||||
this.logger.debug(`Unable to fill item: ${magazine[0]._id} ${magTemplate._name} with cartrides as none were found.`);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.fillMagazineWithCartridge(magazine, magTemplate, cartridgeTpl, minSizePercent);
|
||||
}
|
||||
|
||||
@ -1561,9 +1564,10 @@ export class ItemHelper
|
||||
|
||||
if (!ammos && !fallbackCartridgeTpl)
|
||||
{
|
||||
this.logger.error(
|
||||
this.logger.debug(
|
||||
`Unable to pick a cartridge for caliber: ${caliber} as staticAmmoDist has no data. No fallback value provided`,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
const ammoArray = new ProbabilityObjectArray<string>(this.mathUtil, this.cloner);
|
||||
|
Loading…
x
Reference in New Issue
Block a user