ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/adjust_levels.ext
Revision: 1.4
Committed: Tue Mar 28 16:08:19 2006 UTC (18 years, 1 month ago) by root
Branch: MAIN
Changes since 1.3: +1 -3 lines
Log Message:
decrossfirefy global event calling conventions

File Contents

# User Rev Content
1 root 1.1 #! perl
2    
3     # adjust levels of players at login time in case the experience table changed
4    
5     sub on_player_load {
6 root 1.4 my ($ob, $path) = @_;
7 root 1.1
8     $ob->message ("\nAdjusting levels to experience table.\n");
9    
10     $ob->player_lvl_adj;
11     $ob->player_lvl_adj ($_) for grep $_->type == cf::SKILL, $ob->inv;
12    
13     $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");
14     }
15