… | |
… | |
651 | |
651 | |
652 | new_draw_info (NDI_UNIQUE | NDI_BLUE, 0, op, message); |
652 | new_draw_info (NDI_UNIQUE | NDI_BLUE, 0, op, message); |
653 | } |
653 | } |
654 | } |
654 | } |
655 | |
655 | |
656 | if (tmp->type != EXPERIENCE && !potion_max) |
656 | if (!potion_max) |
657 | { |
657 | { |
658 | for (j = 0; j < NUM_STATS; j++) |
658 | for (j = 0; j < NUM_STATS; j++) |
659 | { |
659 | { |
660 | if ((i = get_attr_value (&(tmp->stats), j)) != 0) |
660 | if ((i = get_attr_value (&(tmp->stats), j)) != 0) |
661 | { |
661 | { |
… | |
… | |
990 | |
990 | |
991 | /* these are the items that currently can change digestion, regeneration, |
991 | /* these are the items that currently can change digestion, regeneration, |
992 | * spell point recovery and mana point recovery. Seems sort of an arbitary |
992 | * spell point recovery and mana point recovery. Seems sort of an arbitary |
993 | * list, but other items store other info into stats array. |
993 | * list, but other items store other info into stats array. |
994 | */ |
994 | */ |
995 | if ((tmp->type == EXPERIENCE) || (tmp->type == WEAPON) || |
995 | if ((tmp->type == WEAPON) || |
996 | (tmp->type == ARMOUR) || (tmp->type == HELMET) || |
996 | (tmp->type == ARMOUR) || (tmp->type == HELMET) || |
997 | (tmp->type == SHIELD) || (tmp->type == RING) || |
997 | (tmp->type == SHIELD) || (tmp->type == RING) || |
998 | (tmp->type == BOOTS) || (tmp->type == GLOVES) || |
998 | (tmp->type == BOOTS) || (tmp->type == GLOVES) || |
999 | (tmp->type == AMULET) || (tmp->type == GIRDLE) || |
999 | (tmp->type == AMULET) || (tmp->type == GIRDLE) || |
1000 | (tmp->type == BRACERS) || (tmp->type == CLOAK) || |
1000 | (tmp->type == BRACERS) || (tmp->type == CLOAK) || |
1001 | (tmp->type == DISEASE) || (tmp->type == FORCE) || |
1001 | (tmp->type == DISEASE) || (tmp->type == FORCE) || |
1002 | (tmp->type == SKILL)) |
1002 | (tmp->type == SKILL)) |
1003 | { |
1003 | { |
1004 | op->contr->digestion += tmp->stats.food; |
1004 | op->contr->digestion += tmp->stats.food; |
1005 | op->contr->gen_hp += tmp->stats.hp; |
1005 | op->contr->gen_hp += tmp->stats.hp; |
1006 | op->contr->gen_sp += tmp->stats.sp; |
1006 | op->contr->gen_sp += tmp->stats.sp; |