Improve dogtag bonus function for HoF area + allow any side dogtag to be used

This commit is contained in:
Dev 2024-01-29 15:56:35 +00:00
parent ad0489a9e7
commit 9b45d40c2b

View File

@ -1099,8 +1099,12 @@ export class HideoutHelper
let result = 0; let result = 0;
for (const dogtag of activeDogtags) for (const dogtag of activeDogtags)
{ {
if (dogtag.upd.Dogtag.Side === pmcData.Info.Side if (!dogtag.upd.Dogtag)
|| Number.parseInt(dogtag.upd.Dogtag.AccountId) === pmcData.aid {
continue;
}
if (Number.parseInt(dogtag.upd.Dogtag?.AccountId) === pmcData.aid
) )
{ {
continue; continue;