aboutsummaryrefslogtreecommitdiff
path: root/plugins/monster
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 21:03:36 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 21:03:36 +0200
commit9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56 (patch)
treeb56ee1d3e61e3091b44ea186f86e44bceb58be06 /plugins/monster
parent0f4153099c2a0d8fa4480dcd690820976df4a939 (diff)
downloaddungeon_game-9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56.tar.xz
Separate air_function chances for rooms and corridors
Diffstat (limited to 'plugins/monster')
-rw-r--r--plugins/monster/monster.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/monster/monster.c b/plugins/monster/monster.c
index a9e725c..d140005 100644
--- a/plugins/monster/monster.c
+++ b/plugins/monster/monster.c
@@ -68,7 +68,8 @@ static void spawn_monster(int x, int y, enum mg_context ctx)
__attribute__((constructor)) static void init()
{
register_air_function((struct generator_function) {
- .chance = 50,
+ .corridor_chance = 50,
+ .room_chance = 200,
.callback = &spawn_monster,
});
}