<th class="hurt hurtrel">dps</th>
<th class="val unit-range" colspan=3>range</th>
<th class="val unit-sight">sight</th>
- <th class="val unit-speed">speed</th>
+ <th class="val unit-speed"><:= coltoggle(speed => 'speed') :></th>
<th class="unit-magic">specials</th>
</tr></thead>
<:
} @{ $_->{attack} }
) for @rows;
}
+ elsif ($get{order} eq 'speed') {
+ $_->{order} = (
+ ($_->{upgraded}->{speed} // $_->{speed}*1.01)
+ + $_->{sight}/1024 + $_->{detect}/2048
+ ) for @rows;
+ }
@rows = sort {$a->{order} <=> $b->{order}} @rows if exists $rows[0]->{order};
}