… | |
… | |
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; |