ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/map.C
(Generate patch)

Comparing deliantra/server/common/map.C (file contents):
Revision 1.139 by root, Sun May 4 19:14:23 2008 UTC vs.
Revision 1.140 by root, Sun May 4 20:40:52 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines