ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/magic_mapping.ext
(Generate patch)

Comparing deliantra/server/ext/magic_mapping.ext (file contents):
Revision 1.3 by root, Mon Nov 9 00:14:48 2009 UTC vs.
Revision 1.4 by root, Tue Oct 12 05:09:54 2010 UTC

7 type => cf::SPELL, 7 type => cf::SPELL,
8 subtype => cf::SP_MAGIC_MAPPING, 8 subtype => cf::SP_MAGIC_MAPPING,
9 on_cast_spell => sub { 9 on_cast_spell => sub {
10 my ($spell, $who, $caster, $dir, $arg) = @_; 10 my ($spell, $who, $caster, $dir, $arg) = @_;
11 11
12 my $pl = $caster->contr
13 or return;
14
12 my ($map, $x, $y) = ($who->map, $who->x, $who->y); 15 my ($map, $x, $y) = ($who->map, $who->x, $who->y);
13 16
14 # dirty check, should maybe allow tiled outdoor maps? 17 # dirty check, should maybe allow tiled outdoor maps?
15 $map->path =~ m%/world/world_% 18 $map->path =~ m%/world/world_%
16 or return; 19 or return;
17 20
18 my $bird = cf::object::new "magic_mapper"; 21 my $bird = cf::object::new "magic_mapper";
19 my $pl = $caster->contr;
20 my $dist = 0; 22 my $dist = 0;
21 $caster->speed_left (-1); $pl->fire_on (0); $pl->run_on (0); 23 $caster->speed_left (-1); $pl->fire_on (0); $pl->run_on (0);
22 24
23 my $duration = $caster->casting_level ($spell) * 150 / 100; 25 my $duration = $caster->casting_level ($spell) * 150 / 100;
24 26

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines