… | |
… | |
226 | /* if it's a dragon player, set the correct title here */ |
226 | /* if it's a dragon player, set the correct title here */ |
227 | if (is_dragon_pl (ob)) |
227 | if (is_dragon_pl (ob)) |
228 | { |
228 | { |
229 | object *tmp, *abil = 0, *skin = 0; |
229 | object *tmp, *abil = 0, *skin = 0; |
230 | |
230 | |
231 | shstr_cmp dragon_ability_force ("dragon_ability_force"); |
|
|
232 | shstr_cmp dragon_skin_force ("dragon_skin_force"); |
|
|
233 | |
|
|
234 | for (tmp = ob->inv; tmp; tmp = tmp->below) |
231 | for (tmp = ob->inv; tmp; tmp = tmp->below) |
235 | if (tmp->type == FORCE) |
232 | if (tmp->type == FORCE) |
236 | if (tmp->arch->archname == dragon_ability_force) |
233 | if (tmp->arch->archname == shstr_dragon_ability_force) |
237 | abil = tmp; |
234 | abil = tmp; |
238 | else if (tmp->arch->archname == dragon_skin_force) |
235 | else if (tmp->arch->archname == shstr_dragon_skin_force) |
239 | skin = tmp; |
236 | skin = tmp; |
240 | |
237 | |
241 | set_dragon_name (ob, abil, skin); |
238 | set_dragon_name (ob, abil, skin); |
242 | } |
239 | } |
243 | |
240 | |
… | |
… | |
3422 | { |
3419 | { |
3423 | /* forces in the treasurelist can alter the player's stats */ |
3420 | /* forces in the treasurelist can alter the player's stats */ |
3424 | object *skin; |
3421 | object *skin; |
3425 | |
3422 | |
3426 | /* first get the dragon skin force */ |
3423 | /* first get the dragon skin force */ |
3427 | shstr_cmp dragon_skin_force ("dragon_skin_force"); |
|
|
3428 | for (skin = who->inv; skin && !(skin->arch->archname == dragon_skin_force); skin = skin->below) |
3424 | for (skin = who->inv; skin && !(skin->arch->archname == shstr_dragon_skin_force); skin = skin->below) |
3429 | ; |
3425 | ; |
3430 | |
3426 | |
3431 | if (!skin) |
3427 | if (!skin) |
3432 | return; |
3428 | return; |
3433 | |
3429 | |