… | |
… | |
3650 | |
3650 | |
3651 | case TREASURE: |
3651 | case TREASURE: |
3652 | if (QUERY_FLAG (op, FLAG_IS_A_TEMPLATE)) |
3652 | if (QUERY_FLAG (op, FLAG_IS_A_TEMPLATE)) |
3653 | return 0; |
3653 | return 0; |
3654 | |
3654 | |
3655 | while ((op->stats.hp--) > 0) |
3655 | while (op->stats.hp-- > 0) |
3656 | create_treasure (op->randomitems, op, op->map ? GT_ENVIRONMENT : 0, |
3656 | create_treasure (op->randomitems, op, op->map ? GT_ENVIRONMENT : 0, |
3657 | op->stats.exp ? (int) op->stats.exp : op->map == NULL ? 14 : op->map->difficulty, 0); |
3657 | op->stats.exp ? (int) op->stats.exp : op->map == NULL ? 14 : op->map->difficulty, 0); |
3658 | |
3658 | |
3659 | /* If we generated an object and put it in this object inventory, |
3659 | /* If we generated an object and put it in this object inventory, |
3660 | * move it to the parent object as the current object is about |
3660 | * move it to the parent object as the current object is about |