Working on Proc Gen Maze.
This time... putting monsters.
So basically I give every tile "danger rate".
For instance, tiles after a deeper locked area will have higher danger rate.
Those are signified by colors, the color scheme is this:
Where non colored tile has danger 0, and monsters cannot be put in it.
Weaker monsters have lower danger rate, while stronger monsters have larger danger rate.
So every time you place a monster, it "erodes" the danger rate around it of the tiles.
But areas with higher sum tiles danger rate, have higher chances to have monsters in them.
I feel like there are flaws of this method.
For instance, a large, lower danger area(room) can have higher chances for monsters. This might make sense, but also not.
Or a small room with high danger rate, will have not as much chances to have a monster. Because of few tiles.
So should I average the danger rate of each room? But how do I take into account room size?
Anyway, I hope you understand my method, and maybe you can suggest how to distribute monsters.