there has just been an inventory change affecting a luck-granting item */
| 438 | |
| 439 | /* there has just been an inventory change affecting a luck-granting item */ |
| 440 | void |
| 441 | set_moreluck(void) |
| 442 | { |
| 443 | int luckbon = stone_luck(TRUE); |
| 444 | |
| 445 | if (!luckbon && !carrying(LUCKSTONE)) |
| 446 | u.moreluck = 0; |
| 447 | else if (luckbon >= 0) |
| 448 | u.moreluck = LUCKADD; |
| 449 | else |
| 450 | u.moreluck = -LUCKADD; |
| 451 | } |
| 452 | |
| 453 | /* (not used) */ |
| 454 | void |
no test coverage detected