forked from project-redbud/FunGame-Core
fix: 非伤害性助攻不生效
Signed-off-by: 风吹落的叶子 <yezi@wrss.org>
This commit is contained in:
parent
82538b9d93
commit
4f77f5bf7d
@ -1640,10 +1640,10 @@ namespace Milimoe.FunGame.Core.Model
|
|||||||
_stats[death].Deaths += 1;
|
_stats[death].Deaths += 1;
|
||||||
int money = Random.Shared.Next(250, 350);
|
int money = Random.Shared.Next(250, 350);
|
||||||
|
|
||||||
// 按伤害比分配金钱 只有造成 10% 伤害以上并且是在 30 秒内造成的伤害才能参与
|
// 按伤害比分配金钱 只有造成 10% 伤害以上并且是在 30 时间内造成的伤害才能参与
|
||||||
// 现在 20 秒内的非伤害类型辅助也能参与助攻了
|
// 现在 20 时间内的非伤害类型辅助也能参与助攻了
|
||||||
Character[] assists = [.. _assistDetail.Keys.Where(c => c != death && _assistDetail[c].GetPercentage(death) > 0.10 &&
|
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))];
|
(_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();
|
double totalDamagePercentage = _assistDetail.Keys.Where(assists.Contains).Select(c => _assistDetail[c].GetPercentage(death)).Sum();
|
||||||
int totalMoney = Math.Min(Convert.ToInt32(money * totalDamagePercentage), 425); // 防止刷伤害设置金钱上限
|
int totalMoney = Math.Min(Convert.ToInt32(money * totalDamagePercentage), 425); // 防止刷伤害设置金钱上限
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user