… | |
… | |
981 | |
981 | |
982 | if (QUERY_FLAG (op, FLAG_GENERATOR)) |
982 | if (QUERY_FLAG (op, FLAG_GENERATOR)) |
983 | { |
983 | { |
984 | total_exp += op->stats.exp; |
984 | total_exp += op->stats.exp; |
985 | |
985 | |
986 | if (archetype *at = type_to_archetype (GENERATE_TYPE (op))) |
986 | if (archetype *at = op->other_arch) |
|
|
987 | { |
987 | total_exp += at->stats.exp * 8; |
988 | total_exp += at->stats.exp * 8; |
988 | |
|
|
989 | monster_cnt++; |
989 | monster_cnt++; |
|
|
990 | } |
|
|
991 | |
|
|
992 | for (object *inv = op->inv; inv; inv = inv->below) |
|
|
993 | { |
|
|
994 | total_exp += op->stats.exp * 8; |
|
|
995 | monster_cnt++; |
|
|
996 | } |
990 | } |
997 | } |
991 | } |
998 | } |
992 | |
999 | |
993 | avgexp = (double) total_exp / monster_cnt; |
1000 | avgexp = (double) total_exp / monster_cnt; |
994 | |
1001 | |