version 1.8 | | version 1.9 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.8 2001/02/11 09:12:12 cvs Exp $"; | | * "$Id: treasure.c,v 1.9 2001/03/28 06:37:48 mardahl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(!op->magic && max_magic) | | if(!op->magic && max_magic) |
set_magic(difficulty,op,max_magic, flags); | | set_magic(difficulty,op,max_magic, flags); |
if ((!was_magic && !(RANDOM()%CHANCE_FOR_ARTIFACT)) || op->type == HORN || | | if ((!was_magic && !(RANDOM()%CHANCE_FOR_ARTIFACT)) || op->type == HORN || |
difficulty >= 100000 ) | | difficulty >= 999 ) |
generate_artifact(op, difficulty); | | generate_artifact(op, difficulty); |
} | | } |
if (!op->title) /* Only modify object if not special */ | | if (!op->title) /* Only modify object if not special */ |