diff --git a/Model/GamingQueue.cs b/Model/GamingQueue.cs index 00f6f3b..d8fbd7b 100644 --- a/Model/GamingQueue.cs +++ b/Model/GamingQueue.cs @@ -1640,10 +1640,10 @@ namespace Milimoe.FunGame.Core.Model _stats[death].Deaths += 1; int money = Random.Shared.Next(250, 350); - // 按伤害比分配金钱 只有造成 10% 伤害以上并且是在 30 秒内造成的伤害才能参与 - // 现在 20 秒内的非伤害类型辅助也能参与助攻了 - Character[] assists = [.. _assistDetail.Keys.Where(c => c != death && _assistDetail[c].GetPercentage(death) > 0.10 && - (_assistDetail[c].GetLastTime(death) - TotalTime <= 30 || _assistDetail[c].GetNotDamageAssistLastTime(killer) - TotalTime <= 20))]; + // 按伤害比分配金钱 只有造成 10% 伤害以上并且是在 30 时间内造成的伤害才能参与 + // 现在 20 时间内的非伤害类型辅助也能参与助攻了 + Character[] assists = [.. _assistDetail.Keys.Where(c => c != death && (_assistDetail[c].GetPercentage(death) > 0.10 && + (_assistDetail[c].GetLastTime(death) - TotalTime <= 30) || (_assistDetail[c].GetNotDamageAssistLastTime(killer) - TotalTime <= 20)))]; double totalDamagePercentage = _assistDetail.Keys.Where(assists.Contains).Select(c => _assistDetail[c].GetPercentage(death)).Sum(); int totalMoney = Math.Min(Convert.ToInt32(money * totalDamagePercentage), 425); // 防止刷伤害设置金钱上限