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

Comparing deliantra/server/server/gods.C (file contents):
Revision 1.29 by root, Mon Aug 27 03:56:17 2007 UTC vs.
Revision 1.30 by root, Sun Oct 28 20:27:07 2007 UTC

284 int bonus = (pl->stats.Wis + skill->level) / 10; 284 int bonus = (pl->stats.Wis + skill->level) / 10;
285 285
286 /* we can get neg grace up faster */ 286 /* we can get neg grace up faster */
287 if (pl->stats.grace < 0) 287 if (pl->stats.grace < 0)
288 pl->stats.grace += (bonus > -1 * (pl->stats.grace / 10) ? bonus : -1 * (pl->stats.grace / 10)); 288 pl->stats.grace += (bonus > -1 * (pl->stats.grace / 10) ? bonus : -1 * (pl->stats.grace / 10));
289
289 /* we can super-charge grace to 2x max */ 290 /* we can super-charge grace to 2x max */
290 if (pl->stats.grace < (2 * pl->stats.maxgrace)) 291 if (pl->stats.grace < 2 * pl->stats.maxgrace)
291 {
292 pl->stats.grace += bonus / 2; 292 pl->stats.grace += bonus / 2;
293 } 293 else
294 if (pl->stats.grace > (2 * pl->stats.maxgrace))
295 {
296 pl->stats.grace = (2 * pl->stats.maxgrace); 294 pl->stats.grace = 2 * pl->stats.maxgrace;
297 }
298 295
299 /* Every once in a while, the god decides to checkup on their 296 /* Every once in a while, the god decides to checkup on their
300 * follower, and may intervene to help them out. 297 * follower, and may intervene to help them out.
301 */ 298 */
302 bonus = MAX (1, bonus + MAX (pl->stats.luck, -3)); /* -- DAMN -- */ 299 bonus = MAX (1, bonus + MAX (pl->stats.luck, -3)); /* -- DAMN -- */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines