ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_util.C
(Generate patch)

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.100 by root, Fri Nov 6 12:49:19 2009 UTC vs.
Revision 1.102 by root, Fri Nov 6 13:31:47 2009 UTC

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 */
643void 643static void
644put_a_monster (object *op, const char *monstername) 644put_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 */
789void 789static void
790prayer_failure (object *op, int failure, int power) 790prayer_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
1446 move_aura (op); 1446 move_aura (op);
1447 break; 1447 break;
1448 } 1448 }
1449} 1449}
1450 1450
1451/* this checks to see if something special should happen if
1452 * something runs into the object.
1453 */
1454static void
1455check_spell_effect (object *op)
1456{
1457 switch (op->subtype)
1458 {
1459 case SP_BOLT:
1460 move_bolt (op);
1461 return;
1462
1463 case SP_BULLET:
1464 check_bullet (op);
1465 return;
1466 }
1467}
1468
1469/* This is called by move_apply. Basically, if someone 1451/* This is called by move_apply. Basically, if someone
1470 * moves onto a spell effect and the walk_on or fly_on flags 1452 * moves onto a spell effect and the walk_on or fly_on flags
1471 * are set, this is called. This should only be called for 1453 * are set, this is called. This should only be called for
1472 * objects of the appropriate type. 1454 * objects of the appropriate type.
1473 */ 1455 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines