1 | /* |
1 | /* |
2 | * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * |
5 | * |
6 | * Crossfire TRT is free software: you can redistribute it and/or modify |
6 | * Deliantra is free software: you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by |
7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation, either version 3 of the License, or |
8 | * the Free Software Foundation, either version 3 of the License, or |
9 | * (at your option) any later version. |
9 | * (at your option) any later version. |
10 | * |
10 | * |
11 | * This program is distributed in the hope that it will be useful, |
11 | * This program is distributed in the hope that it will be useful, |
… | |
… | |
14 | * GNU General Public License for more details. |
14 | * GNU General Public License for more details. |
15 | * |
15 | * |
16 | * You should have received a copy of the GNU General Public License |
16 | * You should have received a copy of the GNU General Public License |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | * |
18 | * |
19 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
19 | * The authors can be reached via e-mail to <support@deliantra.net> |
20 | */ |
20 | */ |
21 | |
21 | |
22 | /* alchemy.c */ |
22 | /* alchemy.c */ |
23 | int need_identify (const object *obj); |
23 | int need_identify (const object *obj); |
24 | int apply_shop_mat (object *shop_mat, object *op); |
24 | int apply_shop_mat (object *shop_mat, object *op); |
… | |
… | |
43 | int apply_potion (object *op, object *tmp); |
43 | int apply_potion (object *op, object *tmp); |
44 | int prepare_weapon (object *op, object *improver, object *weapon); |
44 | int prepare_weapon (object *op, object *improver, object *weapon); |
45 | int improve_weapon (object *op, object *improver, object *weapon); |
45 | int improve_weapon (object *op, object *improver, object *weapon); |
46 | int check_improve_weapon (object *op, object *tmp); |
46 | int check_improve_weapon (object *op, object *tmp); |
47 | int improve_armour (object *op, object *improver, object *armour); |
47 | int improve_armour (object *op, object *improver, object *armour); |
48 | int convert_item (object *item, object *converter); |
|
|
49 | int apply_container (object *op, object *sack); |
48 | int apply_container (object *op, object *sack); |
50 | int esrv_apply_container (object *op, object *sack); |
49 | int esrv_apply_container (object *op, object *sack); |
51 | void move_apply (object *trap, object *victim, object *originator); |
50 | void move_apply (object *trap, object *victim, object *originator); |
52 | void do_learn_spell (object *op, object *spell, int special_prayer); |
51 | void do_learn_spell (object *op, object *spell, int special_prayer); |
53 | void do_forget_spell (object *op, const char *spell); |
52 | void do_forget_spell (object *op, const char *spell); |
… | |
… | |
196 | void remove_party (partylist *target_party); |
195 | void remove_party (partylist *target_party); |
197 | void obsolete_parties (void); |
196 | void obsolete_parties (void); |
198 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
197 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
199 | int confirm_party_password (object *op); |
198 | int confirm_party_password (object *op); |
200 | void receive_party_password (object *op, char k); |
199 | void receive_party_password (object *op, char k); |
201 | void send_party_message (object *op, char *msg); |
200 | void send_party_message (object *op, const char *msg); |
202 | int command_gsay (object *op, char *params); |
201 | int command_gsay (object *op, char *params); |
203 | int command_party (object *op, char *params); |
202 | int command_party (object *op, char *params); |
204 | |
203 | |
205 | /* c_range.c */ |
204 | /* c_range.c */ |
206 | int command_invoke (object *op, char *params); |
205 | int command_invoke (object *op, char *params); |
… | |
… | |
346 | /* login.c */ |
345 | /* login.c */ |
347 | void delete_character (const char *name); |
346 | void delete_character (const char *name); |
348 | int verify_player (const char *name, char *password); |
347 | int verify_player (const char *name, char *password); |
349 | int check_name (player *me, const char *name); |
348 | int check_name (player *me, const char *name); |
350 | int create_savedir_if_needed (char *savedir); |
349 | int create_savedir_if_needed (char *savedir); |
351 | void destroy_object (object *op); |
|
|
352 | void copy_file (const char *filename, FILE *fpout); |
350 | void copy_file (const char *filename, FILE *fpout); |
353 | |
351 | |
354 | /* main.c */ |
352 | /* main.c */ |
355 | void server_tick (); |
353 | void server_tick (); |
356 | void version (object *op); |
354 | void version (object *op); |
… | |
… | |
616 | int write_mark (object *op, object *spell, const char *msg); |
614 | int write_mark (object *op, object *spell, const char *msg); |
617 | |
615 | |
618 | /* spell_util.c */ |
616 | /* spell_util.c */ |
619 | object *find_random_spell_in_ob (object *ob, const char *skill); |
617 | object *find_random_spell_in_ob (object *ob, const char *skill); |
620 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
618 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
621 | void init_spells (void); |
|
|
622 | void dump_spells (void); |
|
|
623 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
619 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
624 | int min_casting_level (object *caster, object *spell); |
620 | int min_casting_level (object *caster, object *spell); |
625 | int caster_level (object *caster, object *spell); |
621 | int caster_level (object *caster, object *spell); |
626 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
622 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
627 | int SP_level_dam_adjust (object *caster, object *spob); |
623 | int SP_level_dam_adjust (object *caster, object *spob); |