From a6b752e6f103a6eabc9b018390e55b575ff8afad Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 10 Nov 2019 17:36:51 +0200 Subject: [PATCH] Lua: Default dungeon and level chance is 100 --- src/dungeon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dungeon.c b/src/dungeon.c index 324e50fef..b888d1970 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -880,7 +880,7 @@ init_dungeons() int dgn_range = get_table_int_opt(L, "range", 0); int dgn_align = dgnaligns2i[get_table_option(L, "alignment", "unaligned", dgnaligns)]; int dgn_entry = get_table_int_opt(L, "entry", 0); - int dgn_chance = get_table_int_opt(L, "chance", 0); + int dgn_chance = get_table_int_opt(L, "chance", 100); int dgn_flags = get_dgn_flags(L); debugpline4("DUNGEON[%i]: %s, base=(%i,%i)", i, dgn_name, dgn_base, dgn_range); @@ -910,7 +910,7 @@ init_dungeons() int lvl_base = get_table_int(L, "base"); int lvl_range = get_table_int_opt(L, "range", 0); int lvl_nlevels = get_table_int_opt(L, "nlevels", 0); - int lvl_chance = get_table_int_opt(L, "chance", 0); + int lvl_chance = get_table_int_opt(L, "chance", 100); char *lvl_chain = get_table_str_opt(L, "chainlevel", NULL); int lvl_align = dgnaligns2i[get_table_option(L, "alignment", "unaligned", dgnaligns)]; int lvl_flags = get_dgn_flags(L);