… | |
… | |
659 | } |
659 | } |
660 | |
660 | |
661 | /* Helper function for do_skill_ident, so that we can loop |
661 | /* Helper function for do_skill_ident, so that we can loop |
662 | * over inventory AND objects on the ground conveniently. |
662 | * over inventory AND objects on the ground conveniently. |
663 | */ |
663 | */ |
664 | int |
664 | static int |
665 | do_skill_ident2 (object *tmp, object *pl, int obj_class, object *skill) |
665 | do_skill_ident2 (object *tmp, object *pl, int obj_class, object *skill) |
666 | { |
666 | { |
667 | int success = 0, chance; |
667 | int success = 0, chance; |
668 | int skill_value = skill->level * pl->stats.Int ? pl->stats.Int : 10; |
668 | int skill_value = skill->level * pl->stats.Int ? pl->stats.Int : 10; |
669 | |
669 | |