0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Fixed typo AlwaysKeepFoundInRaidOnRaidEnd

Fixed incorrect log message
This commit is contained in:
Chomp 2025-01-23 22:26:53 +00:00
parent fe534b2855
commit a7bc9c9849
4 changed files with 6 additions and 6 deletions

View File

@ -27,6 +27,6 @@
"scavExtractStandingGain": 0.01, "scavExtractStandingGain": 0.01,
"pmcKillProbabilityForScavGain": 0.2, "pmcKillProbabilityForScavGain": 0.2,
"keepFiRSecureContainerOnDeath": false, "keepFiRSecureContainerOnDeath": false,
"alwaysKeepFoundInRaidonRaidEnd": false, "alwaysKeepFoundInRaidOnRaidEnd": false,
"playerScavHostileChancePercent": 15 "playerScavHostileChancePercent": 15
} }

View File

@ -225,7 +225,7 @@ export class LocationLootGenerator {
); );
if (!containerObject) { if (!containerObject) {
this.logger.debug( this.logger.debug(
`Container: ${chosenContainerIds[chosenContainerId]} not found in staticRandomisableContainersOnMap, this is bad`, `Container: ${chosenContainerId} not found in staticRandomisableContainersOnMap, this is bad`,
); );
continue; continue;
} }
@ -320,7 +320,7 @@ export class LocationLootGenerator {
* @returns dictionary keyed by groupId * @returns dictionary keyed by groupId
*/ */
protected getGroupIdToContainerMappings( protected getGroupIdToContainerMappings(
staticContainerGroupData: IStaticContainer | Record<string, IContainerMinMax>, staticContainerGroupData: IStaticContainer,
staticContainersOnMap: IStaticContainerData[], staticContainersOnMap: IStaticContainerData[],
): Record<string, IContainerGroupCount> { ): Record<string, IContainerGroupCount> {
// Create dictionary of all group ids and choose a count of containers the map will spawn of that group // Create dictionary of all group ids and choose a count of containers the map will spawn of that group
@ -488,7 +488,7 @@ export class LocationLootGenerator {
const height = containerTemplate._props.Grids[0]._props.cellsV; const height = containerTemplate._props.Grids[0]._props.cellsV;
const width = containerTemplate._props.Grids[0]._props.cellsH; const width = containerTemplate._props.Grids[0]._props.cellsH;
// Calcualte 2d array and return // Calculate 2d array and return
return Array(height) return Array(height)
.fill(0) .fill(0)
.map(() => Array(width).fill(0)); .map(() => Array(width).fill(0));

View File

@ -84,7 +84,7 @@ export class InRaidHelper {
// Handle Removing of FIR status if player did not survive + not transferring // Handle Removing of FIR status if player did not survive + not transferring
// Do after above filtering code to reduce work done // Do after above filtering code to reduce work done
if (!isSurvived && !isTransfer && !this.inRaidConfig.alwaysKeepFoundInRaidonRaidEnd) { if (!isSurvived && !isTransfer && !this.inRaidConfig.alwaysKeepFoundInRaidOnRaidEnd) {
this.removeFiRStatusFromCertainItems(postRaidProfile.Inventory.items); this.removeFiRStatusFromCertainItems(postRaidProfile.Inventory.items);
} }

View File

@ -21,7 +21,7 @@ export interface IInRaidConfig extends IBaseConfig {
/** On death should items in your secure keep their Find in raid status regardless of how you finished the raid */ /** On death should items in your secure keep their Find in raid status regardless of how you finished the raid */
keepFiRSecureContainerOnDeath: boolean; keepFiRSecureContainerOnDeath: boolean;
/** If enabled always keep found in raid status on items */ /** If enabled always keep found in raid status on items */
alwaysKeepFoundInRaidonRaidEnd: boolean; alwaysKeepFoundInRaidOnRaidEnd: boolean;
/** Percentage chance a player scav hot is hostile to the player when scavving */ /** Percentage chance a player scav hot is hostile to the player when scavving */
playerScavHostileChancePercent: number; playerScavHostileChancePercent: number;
} }