From 9b45d40c2bc6e098d37732d832af91615887986f Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 29 Jan 2024 15:56:35 +0000 Subject: [PATCH] Improve dogtag bonus function for HoF area + allow any side dogtag to be used --- project/src/helpers/HideoutHelper.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/project/src/helpers/HideoutHelper.ts b/project/src/helpers/HideoutHelper.ts index a31b41f8..2fdf6372 100644 --- a/project/src/helpers/HideoutHelper.ts +++ b/project/src/helpers/HideoutHelper.ts @@ -1099,8 +1099,12 @@ export class HideoutHelper let result = 0; for (const dogtag of activeDogtags) { - if (dogtag.upd.Dogtag.Side === pmcData.Info.Side - || Number.parseInt(dogtag.upd.Dogtag.AccountId) === pmcData.aid + if (!dogtag.upd.Dogtag) + { + continue; + } + + if (Number.parseInt(dogtag.upd.Dogtag?.AccountId) === pmcData.aid ) { continue;