… | |
… | |
638 | |
638 | |
639 | /* put_a_monster: puts a monster named monstername near by |
639 | /* put_a_monster: puts a monster named monstername near by |
640 | * op. This creates the treasures for the monsters, and |
640 | * op. This creates the treasures for the monsters, and |
641 | * also deals with multipart monsters properly. |
641 | * also deals with multipart monsters properly. |
642 | */ |
642 | */ |
643 | void |
643 | static void |
644 | put_a_monster (object *op, const char *monstername) |
644 | put_a_monster (object *op, const char *monstername) |
645 | { |
645 | { |
646 | object *tmp, *head = NULL, *prev = NULL; |
646 | object *tmp, *head = NULL, *prev = NULL; |
647 | archetype *at; |
647 | archetype *at; |
648 | int dir; |
648 | int dir; |
… | |
… | |
784 | * at casting a prayer. |
784 | * at casting a prayer. |
785 | * op is the player. |
785 | * op is the player. |
786 | * failure is basically how much grace they had. |
786 | * failure is basically how much grace they had. |
787 | * power is how much grace the spell would normally take to cast. |
787 | * power is how much grace the spell would normally take to cast. |
788 | */ |
788 | */ |
789 | void |
789 | static void |
790 | prayer_failure (object *op, int failure, int power) |
790 | prayer_failure (object *op, int failure, int power) |
791 | { |
791 | { |
792 | const char *godname; |
792 | const char *godname; |
793 | object *tmp; |
793 | object *tmp; |
794 | |
794 | |
… | |
… | |
887 | tmp->insert_at (op); |
887 | tmp->insert_at (op); |
888 | } |
888 | } |
889 | } |
889 | } |
890 | } |
890 | } |
891 | |
891 | |
892 | int |
892 | static int |
893 | cast_party_spell (object *op, object *caster, int dir, object *spell_ob, char *spellparam) |
893 | cast_party_spell (object *op, object *caster, int dir, object *spell_ob, char *spellparam) |
894 | { |
894 | { |
895 | if (!spell_ob->other_arch) |
895 | if (!spell_ob->other_arch) |
896 | { |
896 | { |
897 | LOG (llevError, "cast_party_spell: empty other arch\n"); |
897 | LOG (llevError, "cast_party_spell: empty other arch\n"); |
… | |
… | |
1449 | } |
1449 | } |
1450 | |
1450 | |
1451 | /* this checks to see if something special should happen if |
1451 | /* this checks to see if something special should happen if |
1452 | * something runs into the object. |
1452 | * something runs into the object. |
1453 | */ |
1453 | */ |
1454 | void |
1454 | static void |
1455 | check_spell_effect (object *op) |
1455 | check_spell_effect (object *op) |
1456 | { |
1456 | { |
1457 | switch (op->subtype) |
1457 | switch (op->subtype) |
1458 | { |
1458 | { |
1459 | case SP_BOLT: |
1459 | case SP_BOLT: |