Atrinik Server
4.0

#include <global.h>
Go to the source code of this file.
Data Structures  
struct  level_color 
Typedefs  
typedef struct level_color  level_color_t 
Functions  
uint64_t  level_exp (int level, double expmul) 
int64_t  add_exp (object *op, int64_t exp_gain, int skill_nr, int exact) 
int  exp_lvl_adj (object *who, object *op) 
float  calc_level_difference (int who_lvl, int op_lvl) 
Variables  
uint64_t  new_levels [MAXLEVEL+2] 
level_color_t  level_color [201] 
Experience related header file.
Definition in file exp.h.
typedef struct level_color level_color_t 
Level color structure.
int64_t add_exp  (  object *  op, 
int64_t  exp_gain,  
int  skill_nr,  
int  exact  
) 
float calc_level_difference  (  int  who_lvl, 
int  op_lvl  
) 
Calculate level difference.
We will get a bonus or malus value here, unless both levels match.
Yellow does not always mean same level, but in equal range.
Experience multiplication based on target color range:
If the target is in yellow range, the experience multiplication is between 0.8 and 1.1 (80%  110%).
If the target is in blue range, the experience
who_lvl  Player. 
op_lvl  Victim. 
Attempt to increase player's or skill object's level, if enough experience has been reached.
Will tell the player about changed levels.
who  Player. Cannot be NULL. 
op  What we are checking to gain the level (eg, skill). If NULL, will use 'who'. 
uint64_t level_exp  (  int  level, 
double  expmul  
) 