diff --git a/control-util.lua b/control-util.lua index a00f573..d744561 100644 --- a/control-util.lua +++ b/control-util.lua @@ -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 must be an internal name like nauvis @@ -130,7 +131,7 @@ or /bz-regenerate [ ] 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) diff --git a/data-util.lua b/data-util.lua index f625890..6e3873f 100644 --- a/data-util.lua +++ b/data-util.lua @@ -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