| 1838 | } |
| 1839 | |
| 1840 | void |
| 1841 | blessorcurse(struct obj *otmp, int chance) |
| 1842 | { |
| 1843 | if (otmp->blessed || otmp->cursed) |
| 1844 | return; |
| 1845 | |
| 1846 | if (!rn2(chance)) { |
| 1847 | if (!rn2(2)) { |
| 1848 | curse(otmp); |
| 1849 | } else { |
| 1850 | bless(otmp); |
| 1851 | } |
| 1852 | } |
| 1853 | return; |
| 1854 | } |
| 1855 | |
| 1856 | int |
| 1857 | bcsign(struct obj *otmp) |
no test coverage detected