| line |
true |
false |
branch |
|
54
|
1 |
33 |
unless $self->validate_position(%args) |
|
65
|
10 |
72 |
unless $self->within_bounds(%args) |
|
67
|
4 |
68 |
if defined $$coords[$args{'x'}][$args{'y'}] |
|
76
|
7 |
80 |
if $args{'x'} > $self->x_limit or $args{'y'} > $self->y_limit |
|
77
|
4 |
76 |
if $args{'x'} < 0 or $args{'y'} < 0 |
|
90
|
0 |
26 |
unless $monster |
|
100
|
1 |
97 |
unless exists $$monsters{$id} |
|
111
|
6 |
26 |
unless $self->validate_position(%args) |
|
122
|
1 |
4 |
unless $self->within_bounds(%args) |
|
144
|
2 |
8 |
unless $self->validate_position(%$pos) |
|
154
|
2 |
4 |
if $args{'x'} < 0 or $args{'x'} > $self->x_limit |
|
155
|
2 |
2 |
if $args{'y'} < 0 or $args{'y'} > $self->y_limit |
|
172
|
7 |
25 |
$val1 < $val2 ? : |
|
184
|
12 |
12 |
if $monster_id == $id |
|
188
|
5 |
7 |
unless $self->can_see($monster, $pos, 'distance', $distance, 'x', $x, 'y', $y) |
|
261
|
5 |
7 |
if $args{'distance'} == 1 |
|
264
|
1 |
6 |
if $args{$perp_axis} == $$pos{$perp_axis} |
|
267
|
4 |
2 |
if $args{$axis} >= $$limits{'from'} and $args{$axis} <= $$limits{'to'} |
|
307
|
3 |
2 |
unless $victim |
|
316
|
3 |
2 |
unless @nearby |