1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Added toggle for groundhogs

This commit is contained in:
SimonFlapse 2019-02-19 14:49:51 +01:00
parent 3addcb6c99
commit b5d14f08d9

View File

@ -11,6 +11,8 @@ local config = global.config
local degrees = require 'utils.math'.degrees
local groundhog_mode = false -- Toggle to enable groundhogs
local seed = 210
RS.set_map_gen_settings(
{
@ -79,11 +81,6 @@ local dino9 = b.picture(require 'map_gen.data.presets.dino9')
local dino13 = b.picture(require 'map_gen.data.presets.dino13')
local dino14 = b.picture(require 'map_gen.data.presets.dino14')
local dino16 = b.picture(require 'map_gen.data.presets.dino16')
local groundhog1 = b.picture(b.decompress(require 'map_gen.data.presets.groundhog1'))
local groundhog2 = b.picture(b.decompress(require 'map_gen.data.presets.groundhog2'))
local groundhog3 = b.picture(b.decompress(require 'map_gen.data.presets.groundhog3'))
local groundhog4 = b.picture(b.decompress(require 'map_gen.data.presets.groundhog4'))
local groundhog5 = b.picture(b.decompress(require 'map_gen.data.presets.groundhog5'))
local dino17 = b.picture(require 'map_gen.data.presets.dino17')
local dino18 = b.picture(require 'map_gen.data.presets.dino18')
@ -92,29 +89,62 @@ local dino20 = b.picture(require 'map_gen.data.presets.dino20')
local dino21 = b.picture(require 'map_gen.data.presets.dino21')
local dino22 = b.picture(require 'map_gen.data.presets.dino22')
local dinos = {
dino1,
dino2,
dino4,
dino7,
dino9,
dino13,
dino14,
dino16,
groundhog1,
groundhog2,
groundhog3,
groundhog4,
groundhog5,
dino17,
dino18,
dino19,
dino20,
dino21,
dino22
}
local land_dino_count = 13
local ore_dino_start = 14
local land_dino_count
local ore_dino_start
local dinos
if groundhog_mode then
local groundhog1 = b.picture(b.decompress(require'map_gen.data.presets.groundhog1'))
local groundhog2 = b.picture(b.decompress(require'map_gen.data.presets.groundhog2'))
local groundhog3 = b.picture(b.decompress(require'map_gen.data.presets.groundhog3'))
local groundhog4 = b.picture(b.decompress(require'map_gen.data.presets.groundhog4'))
local groundhog5 = b.picture(b.decompress(require'map_gen.data.presets.groundhog5'))
dinos = {
dino1,
dino2,
dino4,
dino7,
dino9,
dino13,
dino14,
dino16,
groundhog1,
groundhog2,
groundhog3,
groundhog4,
groundhog5,
dino17,
dino18,
dino19,
dino20,
dino21,
dino22
}
land_dino_count = 13
ore_dino_start = 14
else
dinos = {
dino1,
dino2,
dino4,
dino7,
dino9,
dino13,
dino14,
dino16,
dino17,
dino18,
dino19,
dino20,
dino21,
dino22
}
land_dino_count = 8
ore_dino_start = 9
end
local ore_dino_end = #dinos
local random = Random.new(seed, seed * 2)