… | |
… | |
648 | case 2: |
648 | case 2: |
649 | case 3: |
649 | case 3: |
650 | case 4: |
650 | case 4: |
651 | case 5: |
651 | case 5: |
652 | case 6: |
652 | case 6: |
653 | set_attr_value (&op->stats, r, (signed char) (bonus + get_attr_value (&op->stats, r))); |
653 | op->stats.stat (r) += bonus; |
654 | break; |
654 | break; |
655 | |
655 | |
656 | case 7: |
656 | case 7: |
657 | op->stats.dam += bonus; |
657 | op->stats.dam += bonus; |
658 | break; |
658 | break; |
… | |
… | |
1418 | #endif |
1418 | #endif |
1419 | op->face = change->face; |
1419 | op->face = change->face; |
1420 | } |
1420 | } |
1421 | |
1421 | |
1422 | for (i = 0; i < NUM_STATS; i++) |
1422 | for (i = 0; i < NUM_STATS; i++) |
1423 | change_attr_value (&(op->stats), i, get_attr_value (&(change->stats), i)); |
1423 | change_attr_value (&(op->stats), i, change->stats.stat (i)); |
1424 | |
1424 | |
1425 | op->attacktype |= change->attacktype; |
1425 | op->attacktype |= change->attacktype; |
1426 | op->path_attuned |= change->path_attuned; |
1426 | op->path_attuned |= change->path_attuned; |
1427 | op->path_repelled |= change->path_repelled; |
1427 | op->path_repelled |= change->path_repelled; |
1428 | op->path_denied |= change->path_denied; |
1428 | op->path_denied |= change->path_denied; |