Skip to content
Snippets Groups Projects
Commit aacd96dd authored by Lisa Greene's avatar Lisa Greene
Browse files

Make sure material tier is bound between 1 and 5

In practice this change does nothing, but good practices and it may get copy pasted later
parent 8292c16f
No related branches found
No related tags found
1 merge request!648Misc 1.7beta5
......@@ -47,8 +47,8 @@ local stairs = function()
persistent = "zone",
no_worldport = true,
min_material_level = util.getval(game.zone.min_material_level) + 1, -- vaults have better loot! acts as reward to compensate for the significant difficulty
max_material_level = util.getval(game.zone.max_material_level) + 1,
min_material_level = util.bound(util.getval(game.zone.min_material_level) + 1, 1, 5) -- vaults have better loot! acts as reward to compensate for the significant difficulty
max_material_level = util.bound(util.getval(game.zone.max_material_level) + 1, 1, 5),
generator = {
map = {
class = "engine.generator.map.Static",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment