… | |
… | |
1498 | } |
1498 | } |
1499 | |
1499 | |
1500 | /* We have the skill we want to credit to - now find the object this goes |
1500 | /* We have the skill we want to credit to - now find the object this goes |
1501 | * to. Make sure skop is an actual skill, and not a skill tool! |
1501 | * to. Make sure skop is an actual skill, and not a skill tool! |
1502 | */ |
1502 | */ |
1503 | if ((!skop || skop->type != SKILL) && skill) |
1503 | skop = owner->contr->find_skill (skill); |
1504 | for (object *tmp = owner->inv; tmp; tmp = tmp->below) |
|
|
1505 | if (tmp->skill == skill && tmp->type == SKILL) |
|
|
1506 | { |
|
|
1507 | skop = splay (tmp); |
|
|
1508 | break; |
|
|
1509 | } |
|
|
1510 | } /* Was it a player that hit somethign */ |
1504 | } /* Was it a player that hit somethign */ |
1511 | else |
1505 | else |
1512 | skill = 0; |
1506 | skill = 0; |
1513 | |
1507 | |
1514 | /* These may have been set in the player code section above */ |
1508 | /* These may have been set in the player code section above */ |