github
1287 of 3642 branches covered (35.34%)
Branch coverage included in aggregate %.
7 of 43 new or added lines in 4 files covered. (16.28%)
3205 existing lines in 160 files now uncovered.4873 of 12149 relevant lines covered (40.11%)
5604.12 hits per line
1 |
using Zilon.Core.PersonModules; |
|
2 |
|
|
3 |
namespace Zilon.Core.Persons
|
|
4 |
{ |
|
5 |
public static class IPersonExtensions |
|
6 |
{ |
|
7 |
public static bool CheckIsDead(this IPerson person) |
|
8 |
{ |
111,927✔ |
9 |
var survivalModule = person.GetModuleSafe<ISurvivalModule>(); |
111,927✔ |
10 |
if (survivalModule is null)
|
|
UNCOV
11
|
{ |
× |
12 |
// Те, у кого нет модуля выживания, не могут умереть.
|
|
UNCOV
13
|
return false; |
× |
14 |
} |
|
15 |
|
|
16 |
return survivalModule.IsDead;
|
111,927✔ |
17 |
} |
111,927✔ |
18 |
} |
|
19 |
} |