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.4 by root, Tue Feb 7 03:06:01 2006 UTC vs.
Revision 1.5 by root, Tue Feb 7 23:35:56 2006 UTC

36 my $path = $map->path; 36 my $path = $map->path;
37 my $player = sprintf "%s/%s/", cf::localdir, cf::playerdir; 37 my $player = sprintf "%s/%s/", cf::localdir, cf::playerdir;
38 38
39 if ($player eq substr $path, 0, length $player) { 39 if ($player eq substr $path, 0, length $player) {
40 1 40 1
41 } elsif (grep $_->flag (cf::FLAG_UNIQUE) && $_->flag (cf::FLAG_IS_FLOOR), 41 } elsif (grep $_->flag (cf::FLAG_UNIQUE) && $_->flag (cf::FLAG_IS_FLOOR), $map->at ($x, $y)) {
42 $map->at ($x, $y)) {
43 2 42 2
44 } else { 43 } else {
45 3 44 3
46 } 45 }
47} 46}
48 47
49my @maplevel = ( 48my @maplevel = (
50 "some mysterious hideout", 49 "some mysterious hideout",
51 "his home", 50 "his home",
52 "his guild", # wrong 51 "his guild", # wrong, this is any unique place !player-specific
53 "a nice place", 52 "a nice place",
54 "a place with monsters", 53 "a place with monsters",
55); 54);
56 55
57my %invite; 56my %invite;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines