1 | /* alchemy.c */ |
1 | /* alchemy.c */ |
2 | int need_identify (const object *obj); |
2 | int need_identify (const object *obj); |
3 | int apply_shop_mat (object *shop_mat, object *op); |
3 | int apply_shop_mat (object *shop_mat, object *op); |
4 | const char *cost_string_from_value(uint64 cost, int approx); |
4 | const char *cost_string_from_value(sint64 cost, int approx); |
5 | void pay_player (object *pl, uint64 amount); |
5 | void pay_player (object *pl, sint64 amount); |
6 | uint64 pay_player_arch (object *pl, const char *arch, uint64 amount); |
6 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
7 | void attempt_do_alchemy(object *caster, object *cauldron); |
7 | void attempt_do_alchemy(object *caster, object *cauldron); |
8 | int content_recipe_value(object *op); |
8 | int content_recipe_value(object *op); |
9 | int numb_ob_inside(object *op); |
9 | int numb_ob_inside(object *op); |
10 | 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); |
11 | void adjust_product(object *item, int lvl, int yield); |
11 | void adjust_product(object *item, int lvl, int yield); |
… | |
… | |
434 | void destroy_object(object *op); |
434 | void destroy_object(object *op); |
435 | int save_player(object *op, int flag); |
435 | int save_player(object *op, int flag); |
436 | void copy_file(const char *filename, FILE *fpout); |
436 | void copy_file(const char *filename, FILE *fpout); |
437 | void check_login(object *op); |
437 | void check_login(object *op); |
438 | /* main.c */ |
438 | /* main.c */ |
|
|
439 | void server_tick (); |
439 | void version(object *op); |
440 | void version(object *op); |
440 | void info_keys(object *op); |
441 | void info_keys(object *op); |
441 | void start_info(object *op); |
442 | void start_info(object *op); |
442 | char *crypt_string(char *str, char *salt); |
443 | char *crypt_string(char *str, char *salt); |
443 | int check_password(char *typed, char *crypted); |
444 | int check_password(char *typed, char *crypted); |
… | |
… | |
451 | void process_players1(mapstruct *map); |
452 | void process_players1(mapstruct *map); |
452 | void process_players2(mapstruct *map); |
453 | void process_players2(mapstruct *map); |
453 | void process_events(mapstruct *map); |
454 | void process_events(mapstruct *map); |
454 | void clean_tmp_files(void); |
455 | void clean_tmp_files(void); |
455 | void cleanup(void); |
456 | void cleanup(void); |
456 | void leave(player *pl, int draw_exit); |
457 | void leave(player *pl,int draw_exit); |
457 | int forbid_play(void); |
458 | int forbid_play(void); |
458 | void do_specials(void); |
459 | void do_specials(void); |
459 | int main(int argc, char **argv); |
460 | int main(int argc, char **argv); |
460 | /* monster.c */ |
461 | /* monster.c */ |
461 | object *check_enemy(object *npc, rv_vector *rv); |
462 | object *check_enemy(object *npc, rv_vector *rv); |
… | |
… | |
590 | void plugins_display_list(object *op); |
591 | void plugins_display_list(object *op); |
591 | void *cfapi_system_find_animation(int *type, ...); |
592 | void *cfapi_system_find_animation(int *type, ...); |
592 | void *cfapi_system_strdup_local(int *type, ...); |
593 | void *cfapi_system_strdup_local(int *type, ...); |
593 | void *cfapi_system_register_global_event(int *type, ...); |
594 | void *cfapi_system_register_global_event(int *type, ...); |
594 | void *cfapi_system_unregister_global_event(int *type, ...); |
595 | void *cfapi_system_unregister_global_event(int *type, ...); |
595 | void *cfapi_system_add_string(int *type, ...); |
|
|
596 | void *cfapi_system_remove_string(int *type, ...); |
|
|
597 | void *cfapi_system_check_path(int *type, ...); |
596 | void *cfapi_system_check_path(int *type, ...); |
598 | void *cfapi_system_re_cmp(int *type, ...); |
597 | void *cfapi_system_re_cmp(int *type, ...); |
599 | void *cfapi_system_directory(int *type, ...); |
598 | void *cfapi_system_directory(int *type, ...); |
600 | void *cfapi_map_get_map(int *type, ...); |
599 | void *cfapi_map_get_map(int *type, ...); |
601 | void *cfapi_map_has_been_loaded(int *type, ...); |
600 | void *cfapi_map_has_been_loaded(int *type, ...); |
… | |
… | |
679 | int trap_see(object *op, object *trap); |
678 | int trap_see(object *op, object *trap); |
680 | int trap_show(object *trap, object *where); |
679 | int trap_show(object *trap, object *where); |
681 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
680 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
682 | void trap_adjust(object *trap, int difficulty); |
681 | void trap_adjust(object *trap, int difficulty); |
683 | /* shop.c */ |
682 | /* shop.c */ |
|
|
683 | int get_payment(object *pl); |
684 | uint64 query_cost(const object *tmp, object *who, int flag); |
684 | sint64 query_cost(const object *tmp, object *who, int flag); |
685 | const char *query_cost_string(const object *tmp, object *who, int flag); |
685 | const char *query_cost_string(const object *tmp, object *who, int flag); |
686 | uint64 query_money(const object *op); |
686 | sint64 query_money(const object *op); |
687 | int pay_for_amount(uint64 to_pay, object *pl); |
687 | int pay_for_amount(sint64 to_pay, object *pl); |
688 | int pay_for_item(object *op, object *pl); |
688 | int pay_for_item(object *op, object *pl); |
689 | int can_pay(object *pl); |
689 | int can_pay(object *pl); |
690 | int get_payment(object *pl, object *op); |
|
|
691 | void sell_item(object *op, object *pl); |
690 | void sell_item(object *op, object *pl); |
692 | double shopkeeper_approval(const mapstruct *map, const object *player); |
691 | double shopkeeper_approval(const mapstruct *map, const object *player); |
693 | int describe_shop(const object *op); |
692 | int describe_shop(const object *op); |
694 | void shop_listing(object *op); |
693 | void shop_listing(object *op); |
|
|
694 | bool is_in_shop (object *o); |
|
|
695 | bool is_in_shop (mapstruct *map, int x, int y); |
695 | /* skills.c */ |
696 | /* skills.c */ |
696 | int steal(object *op, int dir, object *skill); |
697 | int steal(object *op, int dir, object *skill); |
697 | int pick_lock(object *pl, int dir, object *skill); |
698 | int pick_lock(object *pl, int dir, object *skill); |
698 | int hide(object *op, object *skill); |
699 | int hide(object *op, object *skill); |
699 | int jump(object *pl, int dir, object *skill); |
700 | int jump(object *pl, int dir, object *skill); |