1 | /* alchemy.c */ |
1 | /* alchemy.c */ |
|
|
2 | int need_identify (const object *obj); |
|
|
3 | int apply_shop_mat (object *shop_mat, object *op); |
|
|
4 | const char *cost_string_from_value(uint64 cost, int approx); |
|
|
5 | void pay_player (object *pl, uint64 amount); |
|
|
6 | uint64 pay_player_arch (object *pl, const char *arch, uint64 amount); |
2 | void attempt_do_alchemy(object *caster, object *cauldron); |
7 | void attempt_do_alchemy(object *caster, object *cauldron); |
3 | int content_recipe_value(object *op); |
8 | int content_recipe_value(object *op); |
4 | int numb_ob_inside(object *op); |
9 | int numb_ob_inside(object *op); |
5 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
10 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
6 | void adjust_product(object *item, int lvl, int yield); |
11 | void adjust_product(object *item, int lvl, int yield); |
… | |
… | |
256 | int command_pickup(object *op, char *params); |
261 | int command_pickup(object *op, char *params); |
257 | void set_pickup_mode(object *op, int i); |
262 | void set_pickup_mode(object *op, int i); |
258 | int command_search_items(object *op, char *params); |
263 | int command_search_items(object *op, char *params); |
259 | int command_rename_item(object *op, char *params); |
264 | int command_rename_item(object *op, char *params); |
260 | /* c_party.c */ |
265 | /* c_party.c */ |
|
|
266 | int same_party(partylist *a, partylist *b); |
261 | partylist *get_firstparty(void); |
267 | partylist *get_firstparty(void); |
262 | void remove_party(partylist *target_party); |
268 | void remove_party(partylist *target_party); |
263 | void obsolete_parties(void); |
269 | void obsolete_parties(void); |
|
|
270 | void add_kill_to_party(partylist *party, char *killer, char *dead, long exp); |
264 | int confirm_party_password(object *op); |
271 | int confirm_party_password(object *op); |
265 | void receive_party_password(object *op, char k); |
272 | void receive_party_password(object *op, char k); |
266 | void send_party_message(object *op, char *msg); |
273 | void send_party_message(object *op, char *msg); |
267 | int command_gsay(object *op, char *params); |
274 | int command_gsay(object *op, char *params); |
268 | int command_party(object *op, char *params); |
275 | int command_party(object *op, char *params); |
… | |
… | |
327 | int command_insert_into(object *op, char *params); |
334 | int command_insert_into(object *op, char *params); |
328 | /* commands.c */ |
335 | /* commands.c */ |
329 | void init_commands(void); |
336 | void init_commands(void); |
330 | CommFunc find_oldsocket_command(char *cmd); |
337 | CommFunc find_oldsocket_command(char *cmd); |
331 | CommFunc find_oldsocket_command2(char *cmd); |
338 | CommFunc find_oldsocket_command2(char *cmd); |
332 | int parse_string(object *op, char *str); |
|
|
333 | int parse_command(object *op, char *str); |
|
|
334 | /* daemon.c */ |
339 | /* daemon.c */ |
335 | FILE *BecomeDaemon(char *filename); |
340 | FILE *BecomeDaemon(const char *filename); |
336 | /* disease.c */ |
341 | /* disease.c */ |
337 | int move_disease(object *disease); |
342 | int move_disease(object *disease); |
338 | int remove_symptoms(object *disease); |
343 | int remove_symptoms(object *disease); |
339 | object *find_symptom(object *disease); |
344 | object *find_symptom(object *disease); |
340 | int check_infection(object *disease); |
345 | int check_infection(object *disease); |
… | |
… | |
420 | void add_to_racelist(const char *race_name, object *op); |
425 | void add_to_racelist(const char *race_name, object *op); |
421 | racelink *get_racelist(void); |
426 | racelink *get_racelist(void); |
422 | racelink *find_racelink(const char *name); |
427 | racelink *find_racelink(const char *name); |
423 | /* login.c */ |
428 | /* login.c */ |
424 | void emergency_save(int flag); |
429 | void emergency_save(int flag); |
425 | void delete_character(const char *name, int new); |
430 | void delete_character(const char *name, int); |
426 | int verify_player(const char *name, char *password); |
431 | int verify_player(const char *name, char *password); |
427 | int check_name(player *me, const char *name); |
432 | int check_name(player *me, const char *name); |
428 | int create_savedir_if_needed(char *savedir); |
433 | int create_savedir_if_needed(char *savedir); |
429 | void destroy_object(object *op); |
434 | void destroy_object(object *op); |
430 | int save_player(object *op, int flag); |
435 | int save_player(object *op, int flag); |
431 | void copy_file(const char *filename, FILE *fpout); |
436 | void copy_file(const char *filename, FILE *fpout); |
432 | void check_login(object *op); |
437 | void check_login(object *op); |
433 | /* main.c */ |
438 | /* main.c */ |
|
|
439 | void server_tick (); |
434 | void version(object *op); |
440 | void version(object *op); |
435 | void info_keys(object *op); |
441 | void info_keys(object *op); |
436 | void start_info(object *op); |
442 | void start_info(object *op); |
437 | char *crypt_string(char *str, char *salt); |
443 | char *crypt_string(char *str, char *salt); |
438 | int check_password(char *typed, char *crypted); |
444 | int check_password(char *typed, char *crypted); |
… | |
… | |
446 | void process_players1(mapstruct *map); |
452 | void process_players1(mapstruct *map); |
447 | void process_players2(mapstruct *map); |
453 | void process_players2(mapstruct *map); |
448 | void process_events(mapstruct *map); |
454 | void process_events(mapstruct *map); |
449 | void clean_tmp_files(void); |
455 | void clean_tmp_files(void); |
450 | void cleanup(void); |
456 | void cleanup(void); |
451 | void leave(player *pl, int draw_exit); |
457 | void leave(player *pl,int draw_exit); |
452 | int forbid_play(void); |
458 | int forbid_play(void); |
453 | void do_specials(void); |
459 | void do_specials(void); |
454 | int main(int argc, char **argv); |
460 | int main(int argc, char **argv); |
455 | /* monster.c */ |
461 | /* monster.c */ |
456 | object *check_enemy(object *npc, rv_vector *rv); |
462 | object *check_enemy(object *npc, rv_vector *rv); |
… | |
… | |
506 | int push_ob(object *who, int dir, object *pusher); |
512 | int push_ob(object *who, int dir, object *pusher); |
507 | /* pets.c */ |
513 | /* pets.c */ |
508 | object *get_pet_enemy(object *pet, rv_vector *rv); |
514 | object *get_pet_enemy(object *pet, rv_vector *rv); |
509 | void terminate_all_pets(object *owner); |
515 | void terminate_all_pets(object *owner); |
510 | void remove_all_pets(mapstruct *map); |
516 | void remove_all_pets(mapstruct *map); |
511 | void follow_owner(object *ob, object *owner); |
517 | int follow_owner(object *ob, object *owner); |
512 | void pet_move(object *ob); |
518 | void pet_move(object *ob); |
513 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
519 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
514 | void move_golem(object *op); |
520 | void move_golem(object *op); |
515 | void control_golem(object *op, int dir); |
521 | void control_golem(object *op, int dir); |
516 | int summon_golem(object *op, object *caster, int dir, object *spob); |
522 | int summon_golem(object *op, object *caster, int dir, object *spob); |
… | |
… | |
674 | int trap_see(object *op, object *trap); |
680 | int trap_see(object *op, object *trap); |
675 | int trap_show(object *trap, object *where); |
681 | int trap_show(object *trap, object *where); |
676 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
682 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
677 | void trap_adjust(object *trap, int difficulty); |
683 | void trap_adjust(object *trap, int difficulty); |
678 | /* shop.c */ |
684 | /* shop.c */ |
679 | double shopkeeper_approval(const mapstruct *map, const object *player); |
|
|
680 | uint64 query_cost(const object *tmp, object *who, int flag); |
685 | uint64 query_cost(const object *tmp, object *who, int flag); |
681 | const char *query_cost_string(const object *tmp, object *who, int flag); |
686 | const char *query_cost_string(const object *tmp, object *who, int flag); |
682 | uint64 query_money(const object *op); |
687 | uint64 query_money(const object *op); |
683 | int pay_for_amount(uint64 to_pay, object *pl); |
688 | int pay_for_amount(uint64 to_pay, object *pl); |
684 | int pay_for_item(object *op, object *pl); |
689 | int pay_for_item(object *op, object *pl); |
685 | int can_pay(object *pl); |
690 | int can_pay(object *pl); |
686 | int get_payment(object *pl, object *op); |
691 | int get_payment(object *pl, object *op); |
687 | void sell_item(object *op, object *pl); |
692 | void sell_item(object *op, object *pl); |
|
|
693 | double shopkeeper_approval(const mapstruct *map, const object *player); |
688 | int describe_shop(const object *op); |
694 | int describe_shop(const object *op); |
689 | void shop_listing(object *op); |
695 | void shop_listing(object *op); |
|
|
696 | bool is_in_shop (object *o); |
|
|
697 | bool is_in_shop (mapstruct *map, int x, int y); |
690 | /* skills.c */ |
698 | /* skills.c */ |
691 | int steal(object *op, int dir, object *skill); |
699 | int steal(object *op, int dir, object *skill); |
692 | int pick_lock(object *pl, int dir, object *skill); |
700 | int pick_lock(object *pl, int dir, object *skill); |
693 | int hide(object *op, object *skill); |
701 | int hide(object *op, object *skill); |
694 | int jump(object *pl, int dir, object *skill); |
702 | int jump(object *pl, int dir, object *skill); |
… | |
… | |
713 | int calc_skill_exp(object *who, object *op, object *skill); |
721 | int calc_skill_exp(object *who, object *op, object *skill); |
714 | int learn_skill(object *pl, object *scroll); |
722 | int learn_skill(object *pl, object *scroll); |
715 | void show_skills(object *op, const char *search); |
723 | void show_skills(object *op, const char *search); |
716 | int use_skill(object *op, const char *string); |
724 | int use_skill(object *op, const char *string); |
717 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
725 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
718 | static int attack_hth(object *pl, int dir, const char *string, object *skill); |
|
|
719 | static int attack_melee_weapon(object *op, int dir, const char *string, object *skill); |
|
|
720 | /* spell_attack.c */ |
726 | /* spell_attack.c */ |
721 | void check_spell_knockback(object *op); |
727 | void check_spell_knockback(object *op); |
722 | void forklightning(object *op, object *tmp); |
728 | void forklightning(object *op, object *tmp); |
723 | void move_bolt(object *op); |
729 | void move_bolt(object *op); |
724 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |
730 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |