… | |
… | |
996 | op->value *= 5; |
996 | op->value *= 5; |
997 | set_ring_bonus (op, d); |
997 | set_ring_bonus (op, d); |
998 | } |
998 | } |
999 | } |
999 | } |
1000 | |
1000 | |
1001 | if (GET_ANIM_ID (op)) |
1001 | if (op->animation_id) |
1002 | SET_ANIMATION (op, rndm (NUM_ANIMATIONS (op))); |
1002 | op->set_anim_frame (rndm (op->anim_frames ())); |
1003 | |
1003 | |
1004 | break; |
1004 | break; |
1005 | |
1005 | |
1006 | case BOOK: |
1006 | case BOOK: |
1007 | /* Is it an empty book?, if yes lets make a specialĀ· |
1007 | /* Is it an empty book?, if yes lets make a specialĀ· |
… | |
… | |
1566 | #if 1 |
1566 | #if 1 |
1567 | LOG (llevError, "Got null entry and non zero roll in generate_artifact, type %d\n", op->type); |
1567 | LOG (llevError, "Got null entry and non zero roll in generate_artifact, type %d\n", op->type); |
1568 | #endif |
1568 | #endif |
1569 | return; |
1569 | return; |
1570 | } |
1570 | } |
1571 | if (!strcmp (art->item->name, "NONE")) |
1571 | |
|
|
1572 | if (art->item->name == shstr_NONE) |
1572 | return; |
1573 | return; |
|
|
1574 | |
1573 | if (FABS (op->magic) < art->item->magic) |
1575 | if (fabs (op->magic) < art->item->magic) |
1574 | continue; /* Not magic enough to be this item */ |
1576 | continue; /* Not magic enough to be this item */ |
1575 | |
1577 | |
1576 | /* Map difficulty not high enough */ |
1578 | /* Map difficulty not high enough */ |
1577 | if (difficulty < art->difficulty) |
1579 | if (difficulty < art->difficulty) |
1578 | continue; |
1580 | continue; |
… | |
… | |
1629 | item->level = donor->level; |
1631 | item->level = donor->level; |
1630 | |
1632 | |
1631 | /* if donor has some attacktypes, the flesh is poisonous */ |
1633 | /* if donor has some attacktypes, the flesh is poisonous */ |
1632 | if (donor->attacktype & AT_POISON) |
1634 | if (donor->attacktype & AT_POISON) |
1633 | item->type = POISON; |
1635 | item->type = POISON; |
|
|
1636 | |
1634 | if (donor->attacktype & AT_ACID) |
1637 | if (donor->attacktype & AT_ACID) |
1635 | item->stats.hp = -1 * item->stats.food; |
1638 | item->stats.hp = -1 * item->stats.food; |
|
|
1639 | |
1636 | SET_FLAG (item, FLAG_NO_STEAL); |
1640 | SET_FLAG (item, FLAG_NO_STEAL); |
1637 | } |
1641 | } |
1638 | } |
1642 | } |
1639 | |
1643 | |
1640 | /* special_potion() - so that old potion code is still done right. */ |
1644 | /* special_potion() - so that old potion code is still done right. */ |