diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-14 21:03:36 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-14 21:03:36 +0200 |
commit | 9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56 (patch) | |
tree | b56ee1d3e61e3091b44ea186f86e44bceb58be06 /plugins/apple | |
parent | 0f4153099c2a0d8fa4480dcd690820976df4a939 (diff) | |
download | dungeon_game-9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56.tar.xz |
Separate air_function chances for rooms and corridors
Diffstat (limited to 'plugins/apple')
-rw-r--r-- | plugins/apple/apple.c | 3 |
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, }); } |