… | |
… | |
31 | #include <global.h> |
31 | #include <global.h> |
32 | #include <living.h> |
32 | #include <living.h> |
33 | #include <object.h> |
33 | #include <object.h> |
34 | #include <spells.h> |
34 | #include <spells.h> |
35 | #include <sounds.h> |
35 | #include <sounds.h> |
36 | #ifndef __CEXTRACT__ |
|
|
37 | # include <sproto.h> |
36 | #include <sproto.h> |
38 | #endif |
|
|
39 | |
37 | |
40 | /** |
38 | /** |
41 | * Returns the id of specified god. |
39 | * Returns the id of specified god. |
42 | */ |
40 | */ |
43 | int |
41 | int |
… | |
… | |
965 | for (i = 0; i < NUM_STATS; i++) |
963 | for (i = 0; i < NUM_STATS; i++) |
966 | if (get_attr_value (&depl->stats, i)) |
964 | if (get_attr_value (&depl->stats, i)) |
967 | new_draw_info (NDI_UNIQUE, 0, op, restore_msg[i]); |
965 | new_draw_info (NDI_UNIQUE, 0, op, restore_msg[i]); |
968 | |
966 | |
969 | depl->destroy (); |
967 | depl->destroy (); |
970 | fix_player (op); |
968 | op->update_stats (); |
971 | return; |
969 | return; |
972 | } |
970 | } |
973 | |
971 | |
974 | /* Voices */ |
972 | /* Voices */ |
975 | if (item->type == BOOK && item->invisible && strcmp (item->name, "voice_behind") == 0) |
973 | if (item->type == BOOK && item->invisible && strcmp (item->name, "voice_behind") == 0) |
… | |
… | |
1148 | /** |
1146 | /** |
1149 | * Changes the attributes of cone, smite, and ball spells as needed by the code. |
1147 | * Changes the attributes of cone, smite, and ball spells as needed by the code. |
1150 | * Returns false if there was no race to assign to the slaying field of the spell, but |
1148 | * Returns false if there was no race to assign to the slaying field of the spell, but |
1151 | * the spell attacktype contains AT_HOLYWORD. -b.t. |
1149 | * the spell attacktype contains AT_HOLYWORD. -b.t. |
1152 | */ |
1150 | */ |
1153 | |
|
|
1154 | int |
1151 | int |
1155 | tailor_god_spell (object *spellop, object *caster) |
1152 | tailor_god_spell (object *spellop, object *caster) |
1156 | { |
1153 | { |
1157 | object *god = find_god (determine_god (caster)); |
1154 | object *god = find_god (determine_god (caster)); |
1158 | int caster_is_spell = 0; |
1155 | int caster_is_spell = 0; |