--- deliantra/server/common/exp.C 2009/10/12 14:00:57 1.20 +++ deliantra/server/common/exp.C 2009/11/06 12:27:05 1.21 @@ -74,6 +74,20 @@ }; /* + * Returns true if the monster specified has any innate abilities. + */ +int +has_ability (const object *ob) +{ + object *tmp; + + for (tmp = ob->inv; tmp != NULL; tmp = tmp->below) + if (tmp->type == SPELL || tmp->type == SPELLBOOK) + return true; + return false; +} + +/* * new_exp() is an alternative way to calculate experience based * on the ability of a monster. * It's far from perfect, and doesn't consider everything which @@ -122,21 +136,6 @@ return (int) exp; } -/* - * Returns true if the monster specified has any innate abilities. - */ - -int -has_ability (const object *ob) -{ - object *tmp; - - for (tmp = ob->inv; tmp != NULL; tmp = tmp->below) - if (tmp->type == SPELL || tmp->type == SPELLBOOK) - return true; - return false; -} - /* This loads the experience table from the exp_table * file. This tends to exit on any errors, since it * populates the table as it goes along, so if there