Added support for SavagePlayerBehaviour

This commit is contained in:
Dev 2024-09-18 11:39:32 +01:00
parent 3952b34e29
commit 6db0cef381
2 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,7 @@ export interface IHostilitySettings {
UsecEnemyChance?: number; UsecEnemyChance?: number;
/** Bot roles that are 100% an friendly */ /** Bot roles that are 100% an friendly */
additionalFriendlyTypes?: string[]; additionalFriendlyTypes?: string[];
savagePlayerBehaviour?: string;
} }
export interface PmcTypes { export interface PmcTypes {

View File

@ -172,6 +172,11 @@ export class LocationLifecycleService {
if (typeof configHostilityChanges.UsecEnemyChance !== "undefined") { if (typeof configHostilityChanges.UsecEnemyChance !== "undefined") {
locationBotHostilityDetails.UsecEnemyChance = configHostilityChanges.UsecEnemyChance; locationBotHostilityDetails.UsecEnemyChance = configHostilityChanges.UsecEnemyChance;
} }
// Adjust scav hostility behaviour
if (typeof configHostilityChanges.savagePlayerBehaviour !== "undefined") {
locationBotHostilityDetails.SavagePlayerBehaviour = configHostilityChanges.savagePlayerBehaviour;
}
} }
} }