… | |
… | |
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; |
… | |
… | |
1957 | void |
1957 | void |
1958 | change_exp (object *op, sint64 exp, const char *skill_name, int flag) |
1958 | change_exp (object *op, sint64 exp, const char *skill_name, int flag) |
1959 | { |
1959 | { |
1960 | |
1960 | |
1961 | #ifdef EXP_DEBUG |
1961 | #ifdef EXP_DEBUG |
1962 | # ifndef WIN32 |
|
|
1963 | LOG (llevDebug, "change_exp() called for %s, exp = %lld\n", query_name (op), exp); |
|
|
1964 | # else |
|
|
1965 | LOG (llevDebug, "change_exp() called for %s, exp = %I64d\n", query_name (op), exp); |
1962 | LOG (llevDebug, "change_exp() called for %s, exp = %" PRId64 "\n", query_name (op), exp); |
1966 | # endif |
|
|
1967 | #endif |
1963 | #endif |
1968 | |
1964 | |
1969 | /* safety */ |
1965 | /* safety */ |
1970 | if (!op) |
1966 | if (!op) |
1971 | { |
1967 | { |