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

Comparing deliantra/server/ext/adjust_levels.ext (file contents):
Revision 1.3 by root, Fri Dec 22 16:34:00 2006 UTC vs.
Revision 1.4 by root, Sun Oct 14 20:23:48 2007 UTC

5cf::player->attach ( 5cf::player->attach (
6 on_login => sub { 6 on_login => sub {
7 my ($pl) = @_; 7 my ($pl) = @_;
8 my $ob = $pl->ob; 8 my $ob = $pl->ob;
9 9
10 # TODO: only output messages when experience changed
10 $ob->message ("\nAdjusting levels to experience table.\n"); 11# $ob->message ("\nAdjusting levels to experience table.\n");
11 12
12 $ob->player_lvl_adj; 13 $ob->player_lvl_adj;
13 $ob->player_lvl_adj ($_) for grep $_->type == cf::SKILL, $ob->inv; 14 $ob->player_lvl_adj ($_) for grep $_->type == cf::SKILL, $ob->inv;
14 15
15 $ob->message ("\nDone adjusting levels to experience table.\nIf you got a lot of level changes, then this is because the server changed its experience table.\nDo NOT panic!\n"); 16# $ob->message ("\nDone adjusting levels to experience table.\nIf you got a lot of level changes, then this is because the server changed its experience table.\nDo NOT panic!\n");
16 }, 17 },
17); 18);
18 19

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines