… | |
… | |
1469 | |
1469 | |
1470 | int num_ident = max (1, spell->stats.dam + SP_level_dam_adjust (caster, spell)); |
1470 | int num_ident = max (1, spell->stats.dam + SP_level_dam_adjust (caster, spell)); |
1471 | |
1471 | |
1472 | for (tmp = op->inv; tmp; tmp = tmp->below) |
1472 | for (tmp = op->inv; tmp; tmp = tmp->below) |
1473 | { |
1473 | { |
1474 | if (!tmp->flag [FLAG_IDENTIFIED] && !tmp->invisible && need_identify (tmp)) |
1474 | if (!tmp->flag [FLAG_IDENTIFIED] && !tmp->invisible && tmp->need_identify ()) |
1475 | { |
1475 | { |
1476 | identify (tmp); |
1476 | identify (tmp); |
1477 | |
1477 | |
1478 | if (op->type == PLAYER) |
1478 | if (op->type == PLAYER) |
1479 | { |
1479 | { |
… | |
… | |
1493 | * was not fully used. |
1493 | * was not fully used. |
1494 | */ |
1494 | */ |
1495 | if (num_ident) |
1495 | if (num_ident) |
1496 | { |
1496 | { |
1497 | for (tmp = GET_MAP_OB (op->map, op->x, op->y); tmp; tmp = tmp->above) |
1497 | for (tmp = GET_MAP_OB (op->map, op->x, op->y); tmp; tmp = tmp->above) |
1498 | if (!tmp->flag [FLAG_IDENTIFIED] && !tmp->invisible && need_identify (tmp)) |
1498 | if (!tmp->flag [FLAG_IDENTIFIED] && !tmp->invisible && tmp->need_identify ()) |
1499 | { |
1499 | { |
1500 | identify (tmp); |
1500 | identify (tmp); |
1501 | |
1501 | |
1502 | if (object *pl = tmp->visible_to ()) |
1502 | if (object *pl = tmp->visible_to ()) |
1503 | { |
1503 | { |