Recompute max_mining_drill_radius
This commit is contained in:
parent
bf398c7ff5
commit
44b4625518
|
@ -1,5 +1,10 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.1
|
Version: 1.0.1
|
||||||
|
Date: 18.09.2024
|
||||||
|
Bugfixes:
|
||||||
|
- Recompute max_mining_drill_radius if the mod configuration changes
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.0.0
|
||||||
Date: 15.09.2024
|
Date: 15.09.2024
|
||||||
Features:
|
Features:
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
|
@ -14,8 +14,6 @@ script.on_init(function()
|
||||||
global.active.mining_drills = {} -- [Tick:Entity]
|
global.active.mining_drills = {} -- [Tick:Entity]
|
||||||
global.passive = {}
|
global.passive = {}
|
||||||
global.passive.mining_drills = {} -- [Entity:true]
|
global.passive.mining_drills = {} -- [Entity:true]
|
||||||
|
|
||||||
recompute_max_mining_drill_radius()
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
script.on_load(function()
|
script.on_load(function()
|
||||||
|
@ -27,4 +25,8 @@ script.on_load(function()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
script.on_configuration_changed(function(data)
|
||||||
|
recompute_max_mining_drill_radius()
|
||||||
|
end)
|
||||||
|
|
||||||
script.on_event(defines.events.on_resource_depleted, on_resource_depleted)
|
script.on_event(defines.events.on_resource_depleted, on_resource_depleted)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Teardown",
|
"name": "Teardown",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"title": "Teardown",
|
"title": "Teardown",
|
||||||
"description": "Automate the removal of depleted miners",
|
"description": "Automate the removal of depleted miners",
|
||||||
"author": "David Skrundz",
|
"author": "David Skrundz",
|
||||||
|
|
Loading…
Reference in New Issue