… | |
… | |
243 | if (!pl_god) |
243 | if (!pl_god) |
244 | { /*new convert */ |
244 | { /*new convert */ |
245 | become_follower (pl, altar->other_arch); |
245 | become_follower (pl, altar->other_arch); |
246 | return; |
246 | return; |
247 | } |
247 | } |
248 | else if (!strcmp (&pl_god->name, altar->other_arch->object::name)) |
248 | else if (pl_god->name == altar->other_arch->object::name) |
249 | { |
249 | { |
250 | /* pray at your gods altar */ |
250 | /* pray at your gods altar */ |
|
|
251 | /* this leads to very low levels of wis and pray to result in no doubling! */ |
251 | int bonus = (pl->stats.Wis + skill->level) / 10; |
252 | int bonus = (pl->stats.Wis + skill->level) / 10; |
252 | |
253 | |
253 | /* we can get neg grace up faster */ |
254 | /* we can get neg grace up faster */ |
254 | if (pl->stats.grace < 0) |
255 | if (pl->stats.grace < 0) |
255 | pl->stats.grace += (bonus > -1 * (pl->stats.grace / 10) ? bonus : -1 * (pl->stats.grace / 10)); |
256 | pl->stats.grace += (bonus > -1 * (pl->stats.grace / 10) ? bonus : -1 * (pl->stats.grace / 10)); |
… | |
… | |
261 | pl->stats.grace = 2 * pl->stats.maxgrace; |
262 | pl->stats.grace = 2 * pl->stats.maxgrace; |
262 | |
263 | |
263 | /* Every once in a while, the god decides to checkup on their |
264 | /* Every once in a while, the god decides to checkup on their |
264 | * follower, and may intervene to help them out. |
265 | * follower, and may intervene to help them out. |
265 | */ |
266 | */ |
266 | bonus = MAX (1, bonus + MAX (pl->stats.luck, -3)); /* -- DAMN -- */ |
267 | bonus = max (1, bonus + max (pl->stats.luck, -3)); /* -- DAMN -- */ |
267 | |
268 | |
268 | if (((random_roll (0, 399, pl, PREFER_LOW)) - bonus) < 0) |
269 | if (((random_roll (0, 399, pl, PREFER_LOW)) - bonus) < 0) |
269 | god_intervention (pl, pl_god, skill); |
270 | god_intervention (pl, pl_god, skill); |
270 | } |
271 | } |
271 | else |
272 | else |