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.98 by root, Mon Oct 12 14:00:57 2009 UTC vs.
Revision 1.99 by root, Fri Nov 6 12:49:19 2009 UTC

1503/* 1503/*
1504 * This function is called when a dragon-player gains 1504 * This function is called when a dragon-player gains
1505 * an overall level. Here, the dragon might gain new abilities 1505 * an overall level. Here, the dragon might gain new abilities
1506 * or change the ability-focus. 1506 * or change the ability-focus.
1507 */ 1507 */
1508void 1508static void
1509dragon_level_gain (object *who) 1509dragon_level_gain (object *who)
1510{ 1510{
1511 object *abil = NULL; /* pointer to dragon ability force */ 1511 object *abil = NULL; /* pointer to dragon ability force */
1512 object *skin = NULL; /* pointer to dragon skin force */ 1512 object *skin = NULL; /* pointer to dragon skin force */
1513 object *tmp = NULL; /* tmp. object */ 1513 object *tmp = NULL; /* tmp. object */
1789 * adjustments based on permanent exp and the like. 1789 * adjustments based on permanent exp and the like.
1790 * This function should always be used for losing experience - 1790 * This function should always be used for losing experience -
1791 * the 'exp' value passed should be positive - this is the 1791 * the 'exp' value passed should be positive - this is the
1792 * amount that should get subtract from the player. 1792 * amount that should get subtract from the player.
1793 */ 1793 */
1794sint64 1794static sint64
1795check_exp_loss (const object *op, sint64 exp) 1795check_exp_loss (const object *op, sint64 exp)
1796{ 1796{
1797 sint64 del_exp; 1797 sint64 del_exp;
1798 1798
1799 if (exp > op->stats.exp) 1799 if (exp > op->stats.exp)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines