github
1824 of 3658 branches covered (49.86%)
Branch coverage included in aggregate %.
11 of 43 new or added lines in 4 files covered. (25.58%)
1024 existing lines in 76 files now uncovered.7035 of 12437 relevant lines covered (56.57%)
458130.95 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 |
{ |
4,697,586✔ |
9 |
var survivalModule = person.GetModuleSafe<ISurvivalModule>(); |
4,697,586✔ |
10 |
if (survivalModule is null)
|
|
UNCOV
11
|
{ |
× |
12 |
// Те, у кого нет модуля выживания, не могут умереть.
|
|
UNCOV
13
|
return false; |
× |
14 |
} |
|
15 |
|
|
16 |
return survivalModule.IsDead;
|
4,697,586✔ |
17 |
} |
4,697,586✔ |
18 |
} |
|
19 |
} |