--- deliantra/server/common/living.C 2007/01/08 20:39:48 1.27 +++ deliantra/server/common/living.C 2007/01/15 15:41:09 1.29 @@ -195,7 +195,7 @@ "You feel less healthy", "You suddenly begin to lose your memory!", "Watch out, your mind is going!", - "Your spirit feels drained!" + "Your spirit feels drained!", "Your face gets distorted!", }; const char *const restore_msg[NUM_STATS] = { @@ -204,7 +204,7 @@ "You feel your health return.", "You feel your memory return.", "You feel your wisdom return.", - "You feel your spirits return." + "You feel your spirits return.", "You feel your charisma return.", }; const char *const gain_msg[NUM_STATS] = { @@ -213,7 +213,7 @@ "You feel healthy.", "You feel smarter.", "You feel wiser.", - "You feel more potent." + "You feel more potent.", "You seem to look better.", }; const char *const lose_msg[NUM_STATS] = { @@ -222,7 +222,7 @@ "You feel less healthy!", "You feel stupid!", "You lose some of your memory!", - "You feel less potent!" + "You feel less potent!", "You look ugly!", }; @@ -1611,16 +1611,16 @@ char buf[MAX_BUF]; /* tmp. string buffer */ /* now grab the 'dragon_ability'-forces from the player's inventory */ - for (tmp = who->inv; tmp != NULL; tmp = tmp->below) - { - if (tmp->type == FORCE) - { - if (strcmp (tmp->arch->name, "dragon_ability_force") == 0) - abil = tmp; - if (strcmp (tmp->arch->name, "dragon_skin_force") == 0) - skin = tmp; - } - } + shstr_cmp dragon_ability_force ("dragon_ability_force"); + shstr_cmp dragon_skin_force ("dragon_skin_force"); + + for (tmp = who->inv; tmp; tmp = tmp->below) + if (tmp->type == FORCE) + if (tmp->arch->name == dragon_ability_force) + abil = tmp; + else if (tmp->arch->name == dragon_skin_force) + skin = tmp; + /* if the force is missing -> bail out */ if (abil == NULL) return;