Difference for server/spell_util.c from version 1.28 to 1.29


version 1.28 version 1.29
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.28 2000/11/17 11:16:45 peterm Exp $";   *   "$Id: spell_util.c,v 1.29 2000/11/18 03:32:34 peterm Exp $";
  */   */
   
 /*  /*
Line 781
 
Line 781
   case SP_ANIMATE_WEAPON:    case SP_ANIMATE_WEAPON:
     success = animate_weapon(op,caster,dir,spellarch[type],type);      success = animate_weapon(op,caster,dir,spellarch[type],type);
     break;      break;
     case SP_SANCTUARY:
     case SP_FLAME_AURA:
       success = create_aura(op,caster,spellarch[type],type,0);
   }    }
   
   play_sound_map(op->map, op->x, op->y, SOUND_CAST_SPELL_0 + type);    play_sound_map(op->map, op->x, op->y, SOUND_CAST_SPELL_0 + type);
Line 2147
 
Line 2150
   insert_ob_in_map(tmp,op->map,op);    insert_ob_in_map(tmp,op->map,op);
 }  }
   
   /* create an aura spell object and put it in the player's inventory.  */
   
   int create_aura(object *op, object *caster, archetype *aura_arch, int spell_type,
    int magic)
   {
     object *new_aura = arch_to_object(aura_arch);
     new_aura->stats.food = SP_PARAMETERS[spell_type].bdur +
                     10* SP_level_strength_adjust(op,caster,spell_type);
     new_aura->stats.dam = SP_PARAMETERS[spell_type].bdam
                     +SP_level_dam_adjust(op,caster,spell_type);
     set_owner(new_aura,op);
     if(magic) new_aura->attacktype|=AT_MAGIC;
     if(new_aura->owner) {
       new_aura->chosen_skill = op->chosen_skill;
       if(new_aura->chosen_skill) new_aura->exp_obj = op->chosen_skill->exp_obj;
     }
     insert_ob_in_ob(new_aura, op);
     return 1;
   }
            
 /*  look_up_spell_by_name:  peterm  /*  look_up_spell_by_name:  peterm
     this function attempts to find the spell spname in spells[].      this function attempts to find the spell spname in spells[].


Legend:
line(s) removed in v.1.28 
line(s) changed
 line(s) added in v.1.29

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:50