Resolve issue where most bonuses are cleared on wall completion (!412)
- Resolves issue where the player stash template ends up being reset to base, resulting in an incorrect stash size calculation Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/412 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
71711f0c0d
commit
5217f7caed
@ -231,11 +231,10 @@ export class HideoutController {
|
||||
}
|
||||
|
||||
// Cleanup temporary fuel usage buffs from mopping floor if wall is complete as it would result in too many bonuses
|
||||
// TODO: Clean up all buffs from mopping floor.
|
||||
if (profileHideoutArea.type === HideoutAreas.EMERGENCY_WALL && profileHideoutArea.level === 6) {
|
||||
// Get everything except specific fuel consumption buffs
|
||||
pmcData.Bonuses = pmcData.Bonuses.filter(
|
||||
(bonus) => bonus.type !== BonusType.FUEL_CONSUMPTION && bonus.value >= -10 && bonus.value <= 0,
|
||||
(bonus) => bonus.type !== BonusType.FUEL_CONSUMPTION || (bonus.value >= -10 && bonus.value <= 0),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user