… | |
… | |
1055 | if (creator->slaying && !op->slaying) /* for check_inv floors */ |
1055 | if (creator->slaying && !op->slaying) /* for check_inv floors */ |
1056 | op->slaying = creator->slaying; |
1056 | op->slaying = creator->slaying; |
1057 | break; |
1057 | break; |
1058 | |
1058 | |
1059 | case SPELLBOOK: |
1059 | case SPELLBOOK: |
1060 | op->value = op->value * op->inv->value; |
1060 | op->value *= |
|
|
1061 | pow ((op->inv->value > 0 ? op->inv->value : 1) |
|
|
1062 | * op->inv->level, |
|
|
1063 | 1.5); |
1061 | /* add exp so learning gives xp */ |
1064 | /* add exp so learning gives xp */ |
1062 | op->level = op->inv->level; |
1065 | op->level = op->inv->level; |
1063 | op->stats.exp = op->value; |
1066 | op->stats.exp = op->value; |
1064 | break; |
1067 | break; |
1065 | |
1068 | |