Skip to content

Commit

Permalink
Fixed typo AlwaysKeepFoundInRaidOnRaidEnd
Browse files Browse the repository at this point in the history
Fixed incorrect log message
  • Loading branch information
Chomp committed Jan 23, 2025
1 parent fe534b2 commit a7bc9c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project/assets/configs/inraid.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"scavExtractStandingGain": 0.01,
"pmcKillProbabilityForScavGain": 0.2,
"keepFiRSecureContainerOnDeath": false,
"alwaysKeepFoundInRaidonRaidEnd": false,
"alwaysKeepFoundInRaidOnRaidEnd": false,
"playerScavHostileChancePercent": 15
}
6 changes: 3 additions & 3 deletions project/src/generators/LocationLootGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class LocationLootGenerator {
);
if (!containerObject) {
this.logger.debug(
`Container: ${chosenContainerIds[chosenContainerId]} not found in staticRandomisableContainersOnMap, this is bad`,
`Container: ${chosenContainerId} not found in staticRandomisableContainersOnMap, this is bad`,
);
continue;
}
Expand Down Expand Up @@ -320,7 +320,7 @@ export class LocationLootGenerator {
* @returns dictionary keyed by groupId
*/
protected getGroupIdToContainerMappings(
staticContainerGroupData: IStaticContainer | Record<string, IContainerMinMax>,
staticContainerGroupData: IStaticContainer,
staticContainersOnMap: IStaticContainerData[],
): Record<string, IContainerGroupCount> {
// Create dictionary of all group ids and choose a count of containers the map will spawn of that group
Expand Down Expand Up @@ -488,7 +488,7 @@ export class LocationLootGenerator {
const height = containerTemplate._props.Grids[0]._props.cellsV;
const width = containerTemplate._props.Grids[0]._props.cellsH;

// Calcualte 2d array and return
// Calculate 2d array and return
return Array(height)
.fill(0)
.map(() => Array(width).fill(0));
Expand Down
2 changes: 1 addition & 1 deletion project/src/helpers/InRaidHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class InRaidHelper {

// Handle Removing of FIR status if player did not survive + not transferring
// 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);
}

Expand Down
2 changes: 1 addition & 1 deletion project/src/models/spt/config/IInRaidConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
keepFiRSecureContainerOnDeath: boolean;
/** 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 */
playerScavHostileChancePercent: number;
}
Expand Down

0 comments on commit a7bc9c9

Please sign in to comment.