… | |
… | |
1609 | object *skin = NULL; /* pointer to dragon skin force */ |
1609 | object *skin = NULL; /* pointer to dragon skin force */ |
1610 | object *tmp = NULL; /* tmp. object */ |
1610 | object *tmp = NULL; /* tmp. object */ |
1611 | char buf[MAX_BUF]; /* tmp. string buffer */ |
1611 | char buf[MAX_BUF]; /* tmp. string buffer */ |
1612 | |
1612 | |
1613 | /* now grab the 'dragon_ability'-forces from the player's inventory */ |
1613 | /* now grab the 'dragon_ability'-forces from the player's inventory */ |
|
|
1614 | shstr_cmp dragon_ability_force ("dragon_ability_force"); |
|
|
1615 | shstr_cmp dragon_skin_force ("dragon_skin_force"); |
|
|
1616 | |
1614 | for (tmp = who->inv; tmp != NULL; tmp = tmp->below) |
1617 | for (tmp = who->inv; tmp; tmp = tmp->below) |
1615 | { |
|
|
1616 | if (tmp->type == FORCE) |
1618 | if (tmp->type == FORCE) |
1617 | { |
|
|
1618 | if (strcmp (tmp->arch->name, "dragon_ability_force") == 0) |
1619 | if (tmp->arch->name == dragon_ability_force) |
1619 | abil = tmp; |
1620 | abil = tmp; |
1620 | if (strcmp (tmp->arch->name, "dragon_skin_force") == 0) |
1621 | else if (tmp->arch->name == dragon_skin_force) |
1621 | skin = tmp; |
1622 | skin = tmp; |
1622 | } |
1623 | |
1623 | } |
|
|
1624 | /* if the force is missing -> bail out */ |
1624 | /* if the force is missing -> bail out */ |
1625 | if (abil == NULL) |
1625 | if (abil == NULL) |
1626 | return; |
1626 | return; |
1627 | |
1627 | |
1628 | /* The ability_force keeps track of maximum level ever achieved. |
1628 | /* The ability_force keeps track of maximum level ever achieved. |