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); |
… | |
… | |
506 | int push_ob(object *who, int dir, object *pusher); |
511 | int push_ob(object *who, int dir, object *pusher); |
507 | /* pets.c */ |
512 | /* pets.c */ |
508 | object *get_pet_enemy(object *pet, rv_vector *rv); |
513 | object *get_pet_enemy(object *pet, rv_vector *rv); |
509 | void terminate_all_pets(object *owner); |
514 | void terminate_all_pets(object *owner); |
510 | void remove_all_pets(mapstruct *map); |
515 | void remove_all_pets(mapstruct *map); |
511 | void follow_owner(object *ob, object *owner); |
516 | int follow_owner(object *ob, object *owner); |
512 | void pet_move(object *ob); |
517 | void pet_move(object *ob); |
513 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
518 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
514 | void move_golem(object *op); |
519 | void move_golem(object *op); |
515 | void control_golem(object *op, int dir); |
520 | void control_golem(object *op, int dir); |
516 | int summon_golem(object *op, object *caster, int dir, object *spob); |
521 | int summon_golem(object *op, object *caster, int dir, object *spob); |
… | |
… | |
674 | int trap_see(object *op, object *trap); |
679 | int trap_see(object *op, object *trap); |
675 | int trap_show(object *trap, object *where); |
680 | int trap_show(object *trap, object *where); |
676 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
681 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
677 | void trap_adjust(object *trap, int difficulty); |
682 | void trap_adjust(object *trap, int difficulty); |
678 | /* shop.c */ |
683 | /* shop.c */ |
679 | double shopkeeper_approval(const mapstruct *map, const object *player); |
|
|
680 | uint64 query_cost(const object *tmp, object *who, int flag); |
684 | uint64 query_cost(const object *tmp, object *who, int flag); |
681 | 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); |
682 | uint64 query_money(const object *op); |
686 | uint64 query_money(const object *op); |
683 | int pay_for_amount(uint64 to_pay, object *pl); |
687 | int pay_for_amount(uint64 to_pay, object *pl); |
684 | int pay_for_item(object *op, object *pl); |
688 | int pay_for_item(object *op, object *pl); |
685 | int can_pay(object *pl); |
689 | int can_pay(object *pl); |
686 | int get_payment(object *pl, object *op); |
690 | int get_payment(object *pl, object *op); |
687 | void sell_item(object *op, object *pl); |
691 | void sell_item(object *op, object *pl); |
|
|
692 | double shopkeeper_approval(const mapstruct *map, const object *player); |
688 | int describe_shop(const object *op); |
693 | int describe_shop(const object *op); |
689 | void shop_listing(object *op); |
694 | void shop_listing(object *op); |
690 | /* skills.c */ |
695 | /* skills.c */ |
691 | int steal(object *op, int dir, object *skill); |
696 | int steal(object *op, int dir, object *skill); |
692 | int pick_lock(object *pl, int dir, object *skill); |
697 | int pick_lock(object *pl, int dir, object *skill); |
… | |
… | |
713 | int calc_skill_exp(object *who, object *op, object *skill); |
718 | int calc_skill_exp(object *who, object *op, object *skill); |
714 | int learn_skill(object *pl, object *scroll); |
719 | int learn_skill(object *pl, object *scroll); |
715 | void show_skills(object *op, const char *search); |
720 | void show_skills(object *op, const char *search); |
716 | int use_skill(object *op, const char *string); |
721 | int use_skill(object *op, const char *string); |
717 | int skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill); |
722 | 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 */ |
723 | /* spell_attack.c */ |
721 | void check_spell_knockback(object *op); |
724 | void check_spell_knockback(object *op); |
722 | void forklightning(object *op, object *tmp); |
725 | void forklightning(object *op, object *tmp); |
723 | void move_bolt(object *op); |
726 | void move_bolt(object *op); |
724 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |
727 | int fire_bolt(object *op, object *caster, int dir, object *spob, object *skill); |