Replaced usages of parameters with fixed values

This commit is contained in:
Dev 2024-05-28 18:32:09 +01:00
parent e2eb56a60a
commit 0dfbf61ddf
3 changed files with 5 additions and 5 deletions

View File

@ -421,7 +421,7 @@ export class BotLootGenerator
totalItemCount: number,
inventoryToAddItemsTo: PmcInventory,
botRole: string,
itemSpawnLimits: IItemSpawnLimitSettings = undefined,
itemSpawnLimits?: IItemSpawnLimitSettings,
totalValueLimitRub = 0,
isPmc = false,
containersIdFull = new Set<string>(),

View File

@ -572,7 +572,7 @@ export class InventoryHelper
profile: IPmcData,
itemId: string,
sessionID: string,
output: IItemEventRouterResponse = undefined,
output?: IItemEventRouterResponse,
): void
{
if (!itemId)
@ -629,7 +629,7 @@ export class InventoryHelper
public removeItemAndChildrenFromMailRewards(
sessionId: string,
removeRequest: IInventoryRemoveRequestData,
output: IItemEventRouterResponse = undefined,
output?: IItemEventRouterResponse,
): void
{
const fullProfile = this.profileHelper.getFullProfile(sessionId);
@ -682,7 +682,7 @@ export class InventoryHelper
itemId: string,
countToRemove: number,
sessionID: string,
output: IItemEventRouterResponse = undefined,
output?: IItemEventRouterResponse,
): IItemEventRouterResponse
{
if (!itemId)

View File

@ -1320,7 +1320,7 @@ export class ItemHelper
magazine: Item[],
magTemplate: ITemplateItem,
staticAmmoDist: Record<string, IStaticAmmoDetails[]>,
caliber: string = undefined,
caliber?: string,
minSizePercent = 0.25,
defaultCartridgeTpl?: string,
weapon?: ITemplateItem,