1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcs_treasure_c = |
3 | * static char *rcs_treasure_c = |
4 | * "$Id: treasure.C,v 1.12 2006/09/04 13:55:54 root Exp $"; |
4 | * "$Id: treasure.C,v 1.13 2006/09/05 17:58:11 root Exp $"; |
5 | */ |
5 | */ |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
9 | |
9 | |
… | |
… | |
420 | return; |
420 | return; |
421 | |
421 | |
422 | if (t->nrof && tmp->nrof <= 1) |
422 | if (t->nrof && tmp->nrof <= 1) |
423 | tmp->nrof = RANDOM () % ((int) t->nrof) + 1; |
423 | tmp->nrof = RANDOM () % ((int) t->nrof) + 1; |
424 | |
424 | |
425 | // fix_generated_item (tmp, op, difficulty, t->magic, flag); |
425 | fix_generated_item (tmp, op, difficulty, t->magic, flag); |
426 | // change_treasure (t, tmp); |
426 | change_treasure (t, tmp); |
427 | put_treasure (tmp, op, flag); |
427 | put_treasure (tmp, op, flag); |
428 | } |
428 | } |
429 | } |
429 | } |
430 | |
430 | |
431 | /* This calls the appropriate treasure creation function. tries is passed |
431 | /* This calls the appropriate treasure creation function. tries is passed |