Fixed PMC Victim responses killing profiles ability to view messages

This commit is contained in:
Dev 2024-11-03 11:02:27 +00:00
parent 97afbd4c81
commit 35b1fd07b6
2 changed files with 4 additions and 3 deletions

View File

@ -244,6 +244,7 @@ export interface IVictim {
Level: number; Level: number;
Weapon: string; Weapon: string;
Role: string; Role: string;
Location: string;
} }
export interface ISessionCounters { export interface ISessionCounters {

View File

@ -199,7 +199,7 @@ export class PmcChatResponseService {
* @param isVictim Was responder a victim of player * @param isVictim Was responder a victim of player
* @returns true = should be stripped * @returns true = should be stripped
*/ */
appendSuffixToMessageEnd(isVictim: boolean): boolean { protected appendSuffixToMessageEnd(isVictim: boolean): boolean {
const chance = isVictim const chance = isVictim
? this.pmcResponsesConfig.victim.appendBroToMessageEndChancePercent ? this.pmcResponsesConfig.victim.appendBroToMessageEndChancePercent
: this.pmcResponsesConfig.killer.appendBroToMessageEndChancePercent; : this.pmcResponsesConfig.killer.appendBroToMessageEndChancePercent;
@ -275,8 +275,8 @@ export class PmcChatResponseService {
const chosenCategory = this.randomUtil.getArrayValue(categories); const chosenCategory = this.randomUtil.getArrayValue(categories);
return { return {
_id: pmcVictim.Name, _id: pmcVictim.ProfileId,
aid: this.hashUtil.generateAccountId(), // TODO- pass correct value aid: Number.parseInt(pmcVictim.AccountId),
Info: { Info: {
Nickname: pmcVictim.Name, Nickname: pmcVictim.Name,
Level: pmcVictim.Level, Level: pmcVictim.Level,