From 9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 14 Jun 2021 21:03:36 +0200 Subject: Separate air_function chances for rooms and corridors --- plugins/apple/apple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/apple/apple.c') 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, }); } -- cgit v1.2.3