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/cherry | |
parent | 0f4153099c2a0d8fa4480dcd690820976df4a939 (diff) | |
download | dungeon_game-9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56.tar.xz |
Separate air_function chances for rooms and corridors
Diffstat (limited to 'plugins/cherry')
-rw-r--r-- | plugins/cherry/cherry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/cherry/cherry.c b/plugins/cherry/cherry.c index 1f96aca..1b0ac8a 100644 --- a/plugins/cherry/cherry.c +++ b/plugins/cherry/cherry.c @@ -62,7 +62,8 @@ static void spawn_cherry(int x, int y, enum mg_context ctx) __attribute__((constructor)) static void init() { register_air_function((struct generator_function) { - .chance = 100, + .corridor_chance = 100, + .room_chance = 100, .callback = &spawn_cherry, }); } |