ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/invite.ext
(Generate patch)

Comparing deliantra/maps/perl/invite.ext (file contents):
Revision 1.2 by root, Tue Feb 7 03:04:46 2006 UTC vs.
Revision 1.3 by root, Tue Feb 7 03:05:18 2006 UTC

19 List::Util::max 19 List::Util::max
20 map $_->type == cf::FORCE && $_->slaying =~ /^Invitor Level (\d+)$/ ? $1 : 0, 20 map $_->type == cf::FORCE && $_->slaying =~ /^Invitor Level (\d+)$/ ? $1 : 0,
21 $ob->inv 21 $ob->inv
22} 22}
23 23
24# determine level required for the given map/position 24# determine level required for the given location
25sub map_level { 25sub map_level {
26 my ($map, $x, $y) = @_; 26 my ($map, $x, $y) = @_;
27 27
28 for my $x (0 .. $map->width - 1) { 28 for my $x (0 .. $map->width - 1) {
29 for my $y (0 .. $map->height - 1) { 29 for my $y (0 .. $map->height - 1) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines