diff --git a/mods/ctf_map/maps/03_caverns.conf b/mods/ctf_map/maps/03_caverns.conf index 2087525..582b989 100644 --- a/mods/ctf_map/maps/03_caverns.conf +++ b/mods/ctf_map/maps/03_caverns.conf @@ -6,6 +6,12 @@ h = 230 team.1 = red team.1.color = red team.1.pos = -20,-2,65 +team.1.chests1 = -63,-4,26 +team.1.chests2 = -6,20,73 +team.1.num_chests = 15 team.2 = blue team.2.color = blue team.2.pos = -48,0,-83 +team.2.chests1 = -72,-4,-97 +team.2.chests2 = 7,15,-33 +team.2.num_chests = 15 diff --git a/mods/tsm_chests/init.lua b/mods/tsm_chests/init.lua index 4060c2c..d0941d0 100755 --- a/mods/tsm_chests/init.lua +++ b/mods/tsm_chests/init.lua @@ -186,7 +186,7 @@ function place_chests(minp, maxp, seed, number_chests) local y_max = math.min(maxp.y, height_max) local attempts = 0 local chests_placed = 0 - while chests_placed < number_chests and attempts < number_chests + 6 do + while chests_placed < number_chests and attempts < number_chests + 12 do attempts = attempts + 1 local pos = { x = math.random(minp.x, maxp.x),