Renamed variable to improve clarity
This commit is contained in:
parent
66702a627c
commit
50d8aa477e
@ -1291,13 +1291,13 @@ export class ItemHelper {
|
|||||||
* @param magazineWithChildCartridges Magazine to add child items to
|
* @param magazineWithChildCartridges Magazine to add child items to
|
||||||
* @param magTemplate Db template of magazine
|
* @param magTemplate Db template of magazine
|
||||||
* @param cartridgeTpl Cartridge to add to magazine
|
* @param cartridgeTpl Cartridge to add to magazine
|
||||||
* @param minSizePercent % the magazine must be filled to
|
* @param minSizeMultiplier % the magazine must be filled to
|
||||||
*/
|
*/
|
||||||
public fillMagazineWithCartridge(
|
public fillMagazineWithCartridge(
|
||||||
magazineWithChildCartridges: Item[],
|
magazineWithChildCartridges: Item[],
|
||||||
magTemplate: ITemplateItem,
|
magTemplate: ITemplateItem,
|
||||||
cartridgeTpl: string,
|
cartridgeTpl: string,
|
||||||
minSizePercent = 0.25,
|
minSizeMultiplier = 0.25,
|
||||||
): void {
|
): void {
|
||||||
// Get cartridge properties and max allowed stack size
|
// Get cartridge properties and max allowed stack size
|
||||||
const cartridgeDetails = this.getItem(cartridgeTpl);
|
const cartridgeDetails = this.getItem(cartridgeTpl);
|
||||||
@ -1324,7 +1324,7 @@ export class ItemHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const desiredStackCount = this.randomUtil.getInt(
|
const desiredStackCount = this.randomUtil.getInt(
|
||||||
Math.round(minSizePercent * magazineCartridgeMaxCount),
|
Math.round(minSizeMultiplier * magazineCartridgeMaxCount),
|
||||||
magazineCartridgeMaxCount,
|
magazineCartridgeMaxCount,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user