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

CF: patch for magic xp -- common/living.c



*** ./crossfire-0.92.4/common/living.c	Sun Apr 21 01:07:23 1996
--- ../crossfire-0.92.4/common/living.c	Wed May  1 04:16:07 1996
***************
*** 825,834 ****
--- 826,839 ----
        set_attr_value(&(op->stats),i,get_attr_value(&(op->contr->orig_stats),i));
        }
  #ifdef SPELL_ENCUMBRANCE
      op->contr->encumbrance=0;
  #endif
+ #ifdef ALLOW_SKILLS
+     if(op->chosen_skill&&op->chosen_skill->exp_obj)
+ 	op->chosen_skill->level=op->chosen_skill->exp_obj->level;
+ #endif
      op->attacktype=0;    
    }
    if(op->slaying!=NULL) {
      free_string(op->slaying);
      op->slaying=NULL;