Skip to content

Commit

Permalink
Attempted to Fix Advanced Lifestyle Quality LP Cost Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DelnarErsike committed Mar 6, 2024
1 parent 6c6d15e commit 60a7a37
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 175 deletions.
4 changes: 2 additions & 2 deletions Chummer/Backend/Equipment/Lifestyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ public int TotalLP
get
{
using (LockObject.EnterReadLock())
return LP - Comforts - Area - Security + Roommates + BonusLP - LifestyleQualities.Sum(x => x.LP);
return LP - Comforts - Area - Security + Roommates + BonusLP - LifestyleQualities.Sum(x => x.LPCost);
}
}

Expand All @@ -1667,7 +1667,7 @@ public async Task<int> GetTotalLPAsync(CancellationToken token = default)
- await GetAreaAsync(token).ConfigureAwait(false)
- await GetSecurityAsync(token).ConfigureAwait(false) + await GetRoommatesAsync(token).ConfigureAwait(false) +
await GetBonusLPAsync(token).ConfigureAwait(false) -
await LifestyleQualities.SumAsync(x => x.LP, token: token).ConfigureAwait(false);
await LifestyleQualities.SumAsync(x => x.GetLPCostAsync(token), token: token).ConfigureAwait(false);
}
finally
{
Expand Down

0 comments on commit 60a7a37

Please sign in to comment.