aboutsummaryrefslogtreecommitdiff
path: root/plugins/apple
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/apple
parent0f4153099c2a0d8fa4480dcd690820976df4a939 (diff)
downloaddungeon_game-9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56.tar.xz
Separate air_function chances for rooms and corridors
Diffstat (limited to 'plugins/apple')
-rw-r--r--plugins/apple/apple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/apple/apple.c b/plugins/apple/apple.c
index 6adff08..8fbaf5b 100644
--- a/plugins/apple/apple.c
+++ b/plugins/apple/apple.c
@@ -42,7 +42,8 @@ static void spawn_apple(int x, int y, enum mg_context ctx)
__attribute__((constructor)) static void init()
{
register_air_function((struct generator_function) {
- .chance = 25,
+ .corridor_chance = 25,
+ .room_chance = 50,
.callback = &spawn_apple,
});
}