--- deliantra/server/include/libproto.h 2010/03/20 00:42:08 1.83 +++ deliantra/server/include/libproto.h 2010/04/15 04:56:47 1.90 @@ -1,9 +1,9 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team - * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team - * Copyright (©) 1992,2007 Frank Tore Johansen + * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2002 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992 Frank Tore Johansen * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -63,16 +63,17 @@ void check_inv (object *op, object *trig); void verify_button_links (const maptile *map); /* exp.c */ +int exp_to_level (sint64 exp); +sint64 level_to_min_exp (int level); int new_exp (const object *ob); void init_experience (); -void dump_experience (); /* friend.c */ void add_friendly_object (object *op); void remove_friendly_object (object *op); void dump_friendly_objects (); void clean_friendly_list (); /* glue.c */ -void fatal (int err); +void fatal (const char *msg); /* holy.c */ void init_gods (); godlink *get_rand_god (); @@ -103,10 +104,9 @@ const typedata *get_typedata (int itemtype); const typedata *get_typedata_by_name (const char *name); const char *describe_resistance (const object *op, int newline); -const char *get_levelnumber (int i); +const char *ordinal (int i); const char *describe_item (const object *op, object *owner); int is_magical (const object *op); -int need_identify (const object *op); void identify (object *op); void examine (object *op, object *tmp); /* links.c */ @@ -249,7 +249,7 @@ char *get_ob_diff (object *op, object *op2); bool load_resource_file_ (const char *filename); /* map.c */ -maptile *find_style (const char *dirname, const char *stylename, int difficulty); +maptile *find_style (const char *dirname, const char *stylename, int difficulty, bool recurse = false); object *pick_random_object (maptile *style); /* former funcpoint.h */