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

Comparing deliantra/server/common/living.C (file contents):
Revision 1.25 by pippijn, Sat Jan 6 14:42:29 2007 UTC vs.
Revision 1.26 by root, Mon Jan 8 18:18:35 2007 UTC

1679 */ 1679 */
1680 CLEAR_FLAG (skill_obj, FLAG_CAN_USE_SKILL); 1680 CLEAR_FLAG (skill_obj, FLAG_CAN_USE_SKILL);
1681 skill_obj->stats.exp = 0; 1681 skill_obj->stats.exp = 0;
1682 skill_obj->level = 1; 1682 skill_obj->level = 1;
1683 insert_ob_in_ob (skill_obj, op); 1683 insert_ob_in_ob (skill_obj, op);
1684
1684 if (op->contr) 1685 if (op->contr)
1685 { 1686 {
1686 op->contr->last_skill_ob[skill_obj->subtype] = skill_obj; 1687 op->contr->last_skill_ob [skill_obj->subtype] = skill_obj;
1687 op->contr->last_skill_exp[skill_obj->subtype] = -1; 1688 if (op->contr->ns)
1689 op->contr->ns->last_skill_exp[skill_obj->subtype] = -1;//TODO: should be made superfluous
1688 } 1690 }
1691
1689 return skill_obj; 1692 return skill_obj;
1690} 1693}
1691 1694
1692 1695
1693/* player_lvl_adj() - for the new exp system. we are concerned with 1696/* player_lvl_adj() - for the new exp system. we are concerned with

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines