1
This commit is contained in:
@@ -83,8 +83,16 @@ namespace Net.Project.B.Health
|
||||
}
|
||||
_knockedHealth.TryAdd(id, 100);
|
||||
_knocked.Add(id);
|
||||
_onKnocked?.Invoke(id, true);
|
||||
// _logger.LogInformation($"Entity {id} 被击倒了");
|
||||
try
|
||||
{
|
||||
_onKnocked?.Invoke(id, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.LogCritical(e, e.Message);
|
||||
}
|
||||
|
||||
// _logger.LogInformation($"Entity {id} 被击倒了");
|
||||
//return 0;
|
||||
return -Math.Abs(oldHp-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user