Take a look at this right here…
void map::post_process(game *g, unsigned zones)
{
std::string junk;
if (zones & mfb(OMZONE_CITY)) {
if (!one_in(10)) { // 90% chance of smashing stuff up
for (int x = 0; x < 24; x++) {
for (int y = 0; y < 24; y++)
bash(x, y, 20, junk);
}
}
if (one_in(5)) { // 10% chance of corpses //Oddzball-20% of finding corpses
int num_corpses = rng(1, 8);
for (int i = 0; i < num_corpses; i++) {
int x = rng(0, 23), y = rng(0, 23);
if (move_cost(x, y) > 0)
add_corpse(g, this, x, y);
}
}
}
You can insert something there to spawn trash inside a city zone.