up
This commit is contained in:
parent
bdfaf649e8
commit
28c5fb7af0
2 changed files with 13 additions and 1 deletions
|
|
@ -122,6 +122,7 @@ function util.warptorio2_expansion_helper()
|
|||
end
|
||||
|
||||
local usage_regenerate = [[
|
||||
Recommend saving the game before running this command.
|
||||
Usage: /bz-regenerate all
|
||||
or /bz-regenerate <planet> <resource> [<frequency> <size> <richness>]
|
||||
planet must be an internal name like nauvis
|
||||
|
|
@ -130,7 +131,7 @@ or /bz-regenerate <planet> <resource> [<frequency> <size> <richness>]
|
|||
Regenerates ore patches. If frequency/size/richness are provided, the planet will use those settings from now on, as well.
|
||||
- Separate arguments with spaces, do not use < >, [ ], quotes or other symbols
|
||||
- This action can take a while for larger maps!
|
||||
- Ores can sometimes overlap on regeneration.
|
||||
- Ores can sometimes overlap on regeneration. This can sometimes hide ore patches. If none seem to be made for a resource, regenerate just that resource and tweak frequency/size.
|
||||
]]
|
||||
function util.add_regenerate_command_handler()
|
||||
script.on_event(defines.events.on_console_command, regenerate_ore)
|
||||
|
|
|
|||
|
|
@ -165,6 +165,17 @@ function util.use_fluid_mining_final()
|
|||
end
|
||||
end
|
||||
|
||||
-- If Hot metals mod is enabled, mark these metals as hot
|
||||
function util.add_hot_metals(metals)
|
||||
if HotMetals and HotMetals.items then
|
||||
for _, metal in pairs(metals) do
|
||||
if data.raw.item[metal] or (metal.name and data.raw.item[metal.name]) then
|
||||
table.insert(HotMetals.items, metal)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- se landfill
|
||||
-- params: ore, icon_size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue