ScenarioInfo.set_map_description('Welcome to Safety Ores.\nOre patches are the only stable ground on this world. All factory buildings must be placed on ores or they will collapse.')
ScenarioInfo.set_map_extra_info(
'Our engineers have only been able to build the following outside the stability of our ore patches:\n -rails \n -rail signals\n -power poles\n -offshore pumps\n -pumpjacks\n -pipes\n-vehicles\n-robots')
ScenarioInfo.set_new_info(
[[
2024-02-08-R.Nukem
-InitialMapCreation
]]
)
--- Market Config
config.currency=nil
config.market.enabled=false
config.player_rewards.enabled=false
--- Ore Settings. Since we can only build on ore patches high size is recommended.
--- With high size, lower richness seems intuitive. Frequency is the big ???
localore_size=6
localore_richness=0.166
localore_freq=0.166
--- Create map_gen table for ores
localore_settings={
autoplace_controls={
coal={
frequency=ore_freq,
richness=ore_richness,
size=ore_size
},
['copper-ore']={
frequency=ore_freq,
richness=ore_richness,
size=ore_size
},
['crude-oil']={
frequency=0.25,
richness=2,
size=0.25
},
['iron-ore']={
frequency=ore_freq,
richness=ore_richness,
size=ore_size
},
stone={
frequency=ore_freq,
richness=ore_richness,
size=ore_size
},
['uranium-ore']={
frequency=ore_freq,
richness=ore_richness,
size=ore_size
}
}
}
--- change enemy autoplace controls
localenemy_settings={
autoplace_controls={
['enemy-base']={
frequency=0.25,
richness=1,
size=1
}
}
}
--- Set map_gen settings
RS.set_map_gen_settings(
{
MGSP.default,
ore_settings,
enemy_settings
}
)
--- Set Item Restrictions
--- Items allowed everywhere
RE.add_allowed({
'small-electric-pole',
'medium-electric-pole',
'big-electric-pole',
'rail',
'straight-rail',
'curved-rail',
'pumpjack',
'pipe',
'pipe-to-ground',
'rail-signal',
'rail-chain-signal',
'offshore-pump',
'train-stop',
'pump',
'car',
'tank',
'spidertron',
'defender',
'destroyer',
'distractor',
'construction-robot',
'logistic-robot',
'locomotive',
'cargo-wagon',
'fluid-wagon',
'artillery-wagon'
})
--- The logic for checking that there are resources under the entity's position