| 989 | } |
| 990 | |
| 991 | staticfn boolean |
| 992 | temp_givit(int type, struct permonst *ptr) |
| 993 | { |
| 994 | int chance = (type == STONE_RES) ? 6 : (type == ACID_RES) ? 3 : 0; |
| 995 | |
| 996 | return chance ? (ptr->mlevel > rn2(chance)) : FALSE; |
| 997 | } |
| 998 | |
| 999 | /* givit() tries to give you an intrinsic based on the monster's level |
| 1000 | * and what type of intrinsic it is trying to give you. |