… | |
… | |
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); |
25 | const char *cost_string_from_value (sint64 cost, int approx); |
25 | const char *cost_string_from_value (sint64 cost, int approx); |
26 | void pay_player (object *pl, sint64 amount); |
26 | void pay_player (object *pl, sint64 amount); |
27 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
27 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
28 | void attempt_do_alchemy (object *caster, object *cauldron); |
28 | void attempt_do_alchemy (object *caster, object *cauldron, object *skill); |
29 | int content_recipe_value (object *op); |
29 | int content_recipe_value (object *op); |
30 | int numb_ob_inside (object *op); |
30 | int numb_ob_inside (object *op); |
31 | object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
31 | object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
32 | void adjust_product (object *item, int lvl, int yield); |
32 | void adjust_product (object *item, int lvl, int yield); |
33 | object *make_item_from_recipe (object *cauldron, recipe *rp); |
33 | object *make_item_from_recipe (object *cauldron, recipe *rp); |
… | |
… | |
67 | void apply_lighter (object *who, object *lighter); |
67 | void apply_lighter (object *who, object *lighter); |
68 | void scroll_failure (object *op, int failure, int power); |
68 | void scroll_failure (object *op, int failure, int power); |
69 | void apply_changes_to_player (object *pl, object *change); |
69 | void apply_changes_to_player (object *pl, object *change); |
70 | void apply_item_transformer (object *pl, object *transformer); |
70 | void apply_item_transformer (object *pl, object *transformer); |
71 | extern void handle_apply_yield (object *op); |
71 | extern void handle_apply_yield (object *op); |
|
|
72 | void apply_lamp (object *op, bool switch_on); |
|
|
73 | void get_animation_from_arch (object *op, arch_ptr a); |
72 | |
74 | |
73 | /* attack.c */ |
75 | /* attack.c */ |
74 | void cancellation (object *op); |
76 | void cancellation (object *op); |
75 | int did_make_save_item (object *op, int type, object *originator); |
77 | int did_make_save_item (object *op, int type, object *originator); |
76 | void save_throw_object (object *op, int type, object *originator); |
78 | void save_throw_object (object *op, int type, object *originator); |
… | |
… | |
94 | int is_aimed_missile (object *op); |
96 | int is_aimed_missile (object *op); |
95 | |
97 | |
96 | /* build_map.c */ |
98 | /* build_map.c */ |
97 | int can_build_over (struct mapdef *map, object *tmp, short x, short y); |
99 | int can_build_over (struct mapdef *map, object *tmp, short x, short y); |
98 | void remove_marking_runes (struct mapdef *map, short x, short y); |
100 | void remove_marking_runes (struct mapdef *map, short x, short y); |
99 | int find_unused_connected_value (struct mapdef *map); |
|
|
100 | int find_or_create_connection_for_map (object *pl, short x, short y, object *rune); |
|
|
101 | object *get_connection_rune (object *pl, short x, short y); |
101 | object *get_connection_rune (object *pl, short x, short y); |
102 | object *get_msg_book (object *pl, short x, short y); |
102 | object *get_msg_book (object *pl, short x, short y); |
103 | object *get_wall (struct mapdef *map, int x, int y); |
103 | object *get_wall (struct mapdef *map, int x, int y); |
104 | void fix_walls (maptile *map, int x, int y); |
104 | void fix_walls (maptile *map, int x, int y); |
105 | void fix_walls_around (maptile *map, int x, int y); |
105 | void fix_walls_around (maptile *map, int x, int y); |
… | |
… | |
260 | /* daemon.c */ |
260 | /* daemon.c */ |
261 | FILE *BecomeDaemon (const char *filename); |
261 | FILE *BecomeDaemon (const char *filename); |
262 | |
262 | |
263 | /* disease.c */ |
263 | /* disease.c */ |
264 | int move_disease (object *disease); |
264 | int move_disease (object *disease); |
265 | int remove_symptoms (object *disease); |
|
|
266 | object *find_symptom (object *disease); |
|
|
267 | int check_infection (object *disease); |
|
|
268 | int infect_object (object *victim, object *disease, int force); |
265 | int infect_object (object *victim, object *disease, int force); |
269 | int do_symptoms (object *disease); |
|
|
270 | int grant_immunity (object *disease); |
|
|
271 | int move_symptom (object *symptom); |
266 | int move_symptom (object *symptom); |
272 | int check_physically_infect (object *victim, object *hitter); |
267 | int check_physically_infect (object *victim, object *hitter); |
273 | object *find_disease (object *victim); |
|
|
274 | int cure_disease (object *sufferer, object *caster, object *spell); |
268 | int cure_disease (object *sufferer, object *caster, object *spell); |
275 | int reduce_symptoms (object *sufferer, int reduction); |
|
|
276 | |
269 | |
277 | /* egoitem.c */ |
270 | /* egoitem.c */ |
278 | int create_artifact (object *op, const char *artifactname); |
271 | int create_artifact (object *op, const char *artifactname); |
279 | int apply_power_crystal (object *op, object *crystal); |
272 | int apply_power_crystal (object *op, object *crystal); |
280 | |
273 | |
… | |
… | |
282 | char *spool (char *bp, char *error); |
275 | char *spool (char *bp, char *error); |
283 | void check_score (object *op); |
276 | void check_score (object *op); |
284 | void display_high_score (object *op, int max, const char *match); |
277 | void display_high_score (object *op, int max, const char *match); |
285 | |
278 | |
286 | /* gods.c */ |
279 | /* gods.c */ |
287 | int lookup_god_by_name (const char *name); |
280 | int lookup_god_by_name (shstr_cmp name); |
288 | object *find_god (const char *name); |
281 | object *find_god (shstr_cmp name); |
289 | const char *determine_god (object *op); |
282 | shstr_tmp determine_god (object *op); |
290 | void pray_at_altar (object *pl, object *altar, object *skill); |
283 | void pray_at_altar (object *pl, object *altar, object *skill); |
291 | void become_follower (object *op, object *new_god); |
284 | void become_follower (object *op, object *new_god); |
292 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
285 | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); |
293 | void stop_using_item (object *op, int type, int number); |
286 | void stop_using_item (object *op, int type, int number); |
294 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
287 | void update_priest_flag (object *god, object *exp_ob, uint32 flag); |
295 | archetype *determine_holy_arch (object *god, const char *type); |
288 | archetype *determine_holy_arch (object *god, shstr_cmp type); |
296 | void god_intervention (object *op, object *god, object *skill); |
289 | void god_intervention (object *op, object *god, object *skill); |
297 | int god_examines_priest (object *op, object *god); |
290 | int god_examines_priest (object *op, object *god); |
298 | int god_examines_item (object *god, object *item); |
291 | int god_examines_item (object *god, object *item); |
299 | int get_god (object *priest); |
292 | int get_god (object *priest); |
300 | const char *get_god_for_race (const char *race); |
|
|
301 | int tailor_god_spell (object *spellop, object *caster); |
293 | int tailor_god_spell (object *spellop, object *caster); |
302 | |
294 | |
303 | /* init.c */ |
295 | /* init.c */ |
304 | void load_settings (void); |
296 | void load_settings (void); |
305 | void load_materials (void); |
297 | void load_materials (void); |
… | |
… | |
402 | void move_golem (object *op); |
394 | void move_golem (object *op); |
403 | void control_golem (object *op, int dir); |
395 | void control_golem (object *op, int dir); |
404 | int summon_golem (object *op, object *caster, int dir, object *spob); |
396 | int summon_golem (object *op, object *caster, int dir, object *spob); |
405 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
397 | object *choose_cult_monster (object *pl, object *god, int summon_level); |
406 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
398 | int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); |
407 | object *get_real_owner (object *ob); |
|
|
408 | int should_arena_attack (object *pet, object *owner, object *target); |
399 | int should_arena_attack (object *pet, object *owner, object *target); |
409 | |
400 | |
410 | /* player.c */ |
401 | /* player.c */ |
411 | player *find_player (const char *plname); |
402 | player *find_player (const char *plname); |
412 | player *find_player_partial_name (const char *plname); |
403 | player *find_player_partial_name (const char *plname); |
… | |
… | |
430 | int key_change_class (object *op, char key); |
421 | int key_change_class (object *op, char key); |
431 | int key_confirm_quit (object *op, char key); |
422 | int key_confirm_quit (object *op, char key); |
432 | void flee_player (object *op); |
423 | void flee_player (object *op); |
433 | int check_pick (object *op); |
424 | int check_pick (object *op); |
434 | object *find_arrow (object *op, const char *type); |
425 | object *find_arrow (object *op, const char *type); |
435 | object *find_better_arrow (object *op, object *target, const char *type, int *better); |
426 | object *find_better_arrow (object *op, object *target, shstr_cmp type, int *better); |
436 | object *pick_arrow_target (object *op, const char *type, int dir); |
427 | object *pick_arrow_target (object *op, shstr_cmp type, int dir); |
437 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
428 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
438 | int player_fire_bow (object *op, int dir); |
429 | int player_fire_bow (object *op, int dir); |
439 | void fire_misc_object (object *op, int dir); |
430 | void fire_misc_object (object *op, int dir); |
440 | bool fire (object *op, int dir); |
431 | bool fire (object *op, int dir); |
441 | object *find_key (object *pl, object *container, object *door); |
432 | object *find_key (object *pl, object *container, object *door); |
… | |
… | |
584 | void move_aura (object *aura); |
575 | void move_aura (object *aura); |
585 | void move_peacemaker (object *op); |
576 | void move_peacemaker (object *op); |
586 | int write_mark (object *op, object *spell, const char *msg); |
577 | int write_mark (object *op, object *spell, const char *msg); |
587 | |
578 | |
588 | /* spell_util.c */ |
579 | /* spell_util.c */ |
589 | object *find_random_spell_in_ob (object *ob, const char *skill); |
580 | object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ()); |
590 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
581 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
591 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
582 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
592 | int min_casting_level (object *caster, object *spell); |
583 | int min_casting_level (object *caster, object *spell); |
593 | int casting_level (object *caster, object *spell); |
584 | int casting_level (object *caster, object *spell); |
594 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
585 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
595 | int SP_level_dam_adjust (object *caster, object *spob); |
586 | int SP_level_dam_adjust (object *caster, object *spob); |
596 | int SP_level_duration_adjust (object *caster, object *spob); |
587 | int SP_level_duration_adjust (object *caster, object *spob); |
597 | int SP_level_range_adjust (object *caster, object *spob); |
588 | int SP_level_range_adjust (object *caster, object *spob); |
598 | object *check_spell_known (object *op, const char *name); |
589 | object *check_spell_known (object *op, shstr_cmp name); |
599 | object *lookup_spell_by_name (object *op, const char *spname); |
590 | object *lookup_spell_by_name (object *op, const char *spname); |
600 | int reflwall (maptile *m, int x, int y, object *sp_op); |
591 | int reflwall (maptile *m, int x, int y, object *sp_op); |
601 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
592 | int cast_create_obj (object *op, object *caster, object *new_op, int dir); |
602 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
593 | int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
603 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
594 | int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |