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

Comparing deliantra/server/random_maps/monster.C (file contents):
Revision 1.14 by root, Sat Jan 27 02:19:37 2007 UTC vs.
Revision 1.15 by root, Sat Jan 27 12:45:04 2007 UTC

102 y += freearr_y[freeindex]; 102 y += freearr_y[freeindex];
103 copy_object_with_inv (this_monster, new_monster); 103 copy_object_with_inv (this_monster, new_monster);
104 new_monster->x = x; 104 new_monster->x = x;
105 new_monster->y = y; 105 new_monster->y = y;
106 insert_multisquare_ob_in_map (new_monster, map); 106 insert_multisquare_ob_in_map (new_monster, map);
107 total_experience += this_monster->stats.exp;
108 107
109 for (at = new_monster->arch; at; at = at->more) 108 if (new_monster->is_alive ())
110 number_monsters++; 109 {
110 total_experience += this_monster->stats.exp;
111 111
112 for (at = new_monster->arch; at; at = at->more)
113 number_monsters++;
114
115 assert (new_monster->stats.hp >= 0);
112 RP->total_map_hp += new_monster->stats.hp; /* a global count */ 116 RP->total_map_hp += new_monster->stats.hp; /* a global count */
117 }
118 else
119 failed_placements++;
113 } 120 }
114 else 121 else
115 failed_placements++; 122 failed_placements++;
116 123
117 exp_per_sq = (sint64) (((double) 1000 * total_experience) / (map->width * map->height + 1)); 124 exp_per_sq = (sint64) (((double) 1000 * total_experience) / (map->width * map->height + 1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines