… | |
… | |
481 | if (skop->type == SKILL && skop->subtype == SK_PRAYING) |
481 | if (skop->type == SKILL && skop->subtype == SK_PRAYING) |
482 | break; |
482 | break; |
483 | |
483 | |
484 | /* Player has no skill - give them the skill */ |
484 | /* Player has no skill - give them the skill */ |
485 | if (!skop) |
485 | if (!skop) |
486 | { |
|
|
487 | /* The archetype should always be defined - if we crash here because it doesn't, |
486 | /* The archetype should always be defined - if we crash here because it doesn't, |
488 | * things are really messed up anyways. |
487 | * things are really messed up anyways. |
489 | */ |
488 | */ |
490 | skop = give_skill_by_name (op, get_archetype_by_type_subtype (SKILL, SK_PRAYING)->skill); |
489 | skop = give_skill_by_name (op, get_archetype_by_type_subtype (SKILL, SK_PRAYING)->skill); |
491 | link_player_skills (op); |
|
|
492 | } |
|
|
493 | |
490 | |
494 | sk_applied = QUERY_FLAG (skop, FLAG_APPLIED); /* save skill status */ |
491 | sk_applied = QUERY_FLAG (skop, FLAG_APPLIED); /* save skill status */ |
495 | |
492 | |
496 | /* Clear the "undead" status. We also need to force a call to change_abil, |
493 | /* Clear the "undead" status. We also need to force a call to change_abil, |
497 | * so I set undeadified for that. |
494 | * so I set undeadified for that. |
498 | * - gros, 21th July 2006. |
495 | * - gros, 21th July 2006. |
499 | */ |
496 | */ |
500 | if ((old_god) && (QUERY_FLAG (old_god, FLAG_UNDEAD))) |
497 | if (old_god && QUERY_FLAG (old_god, FLAG_UNDEAD)) |
501 | { |
498 | { |
502 | CLEAR_FLAG (skop, FLAG_UNDEAD); |
499 | CLEAR_FLAG (skop, FLAG_UNDEAD); |
503 | undeadified = 1; |
500 | undeadified = 1; |
504 | } |
501 | } |
505 | |
502 | |