… | |
… | |
1002 | tmp->stats.grace = tmp->stats.maxgrace; |
1002 | tmp->stats.grace = tmp->stats.maxgrace; |
1003 | success = 1; |
1003 | success = 1; |
1004 | new_draw_info (NDI_UNIQUE, 0, tmp, "You feel redeemed with your god!"); |
1004 | new_draw_info (NDI_UNIQUE, 0, tmp, "You feel redeemed with your god!"); |
1005 | } |
1005 | } |
1006 | |
1006 | |
1007 | if (spell->stats.food && tmp->stats.food < 999) |
1007 | if (spell->stats.food && tmp->stats.food < MAX_FOOD) |
1008 | { |
1008 | { |
1009 | tmp->stats.food += spell->stats.food; |
1009 | tmp->stats.food += spell->stats.food; |
1010 | |
1010 | min_it (tmp->stats.food, MAX_FOOD); |
1011 | if (tmp->stats.food > 999) |
|
|
1012 | tmp->stats.food = 999; |
|
|
1013 | |
1011 | |
1014 | success = 1; |
1012 | success = 1; |
1015 | /* We could do something a bit better like the messages for healing above */ |
1013 | /* We could do something a bit better like the messages for healing above */ |
1016 | new_draw_info (NDI_UNIQUE, 0, tmp, "You feel your belly fill with food"); |
1014 | new_draw_info (NDI_UNIQUE, 0, tmp, "You feel your belly fill with food"); |
1017 | } |
1015 | } |