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

Comparing deliantra/server/ext/bonus.ext (file contents):
Revision 1.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.2 by root, Thu Dec 21 22:41:34 2006 UTC

44 if $cf::CFG{ext_bonus_debug}; 44 if $cf::CFG{ext_bonus_debug};
45 45
46 $weapon->value ($value); 46 $weapon->value ($value);
47} 47}
48 48
49cf::attach_to_type cf::WEAPON, 0, 49cf::object->attach (
50 type => cf::WEAPON,
50 on_add_bonus => sub { 51 on_add_bonus => sub {
51 my ($item, $creator, $diff, $max_magic, $flags) = @_; 52 my ($item, $creator, $diff, $max_magic, $flags) = @_;
52 return if $flags || !$creator; 53 return if $flags || !$creator;
53 54
54 $diff /= $MAX_LEVEL; 55 $diff /= $MAX_LEVEL;
60 61
61 determine_weapon_value $item; 62 determine_weapon_value $item;
62 63
63 cf::override; 64 cf::override;
64 }, 65 },
65; 66);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines