Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: bombs can grow experience of any skills



Hello.

In Crossfire JP mailing list, it is a well-known fact that bombs
can grow experience of any skills.  Is this a bug?

If so, there is a patch made by a member of Crossfire JP mailing
list.  This may not be smart.
-- 
iKAWAMOTO Yosihisa!               kawamoto@ics.es.osaka-u.ac.jp


*** server/spell_util.c 	Tue Jan  2 20:58:41 1996
--- server/spell_util.c.new	Fri May 10 23:30:17 1996
***************
*** 1236,1243 ****
        tmp->stats.dam += SP_level_dam_adjust(op->owner,op->stats.sp);
    if(op->attacktype&AT_MAGIC)
      tmp->attacktype|=AT_MAGIC;
!   if((owner = get_owner(op)) != (object *) NULL)
      set_owner(tmp,owner);
    if(op->stats.hp)
      tmp->stats.hp=op->stats.hp;
    tmp->stats.maxhp=op->count; /* Unique ID */
--- 1236,1248 ----
        tmp->stats.dam += SP_level_dam_adjust(op->owner,op->stats.sp);
    if(op->attacktype&AT_MAGIC)
      tmp->attacktype|=AT_MAGIC;
!   if((owner = get_owner(op)) != (object *) NULL){
      set_owner(tmp,owner);
+     if(op->chosen_skill && (op->chosen_skill != tmp->chosen_skill)){
+           tmp->exp_obj = op->exp_obj;
+           tmp->chosen_skill = op->chosen_skill;
+     }
+   }
    if(op->stats.hp)
      tmp->stats.hp=op->stats.hp;
    tmp->stats.maxhp=op->count; /* Unique ID */