Space Exploration - core miner efficiency updated event

by Quezler

For other mods to listen to when core mining drills get placed or removed.

Internal
3 months ago
1.1
440
Mining
Owner:
Quezler
Source:
https://github.com/Quezler/glutenfree
Homepage:
https://discord.gg/ktZNgJcaVA
License:
MIT
Created:
3 months ago
Latest Version:
1.0.0 (3 months ago)
Factorio version:
1.1
Downloaded by:
440 users

how to listen:

local function register_events(event)
  script.on_event(remote.call("se-core-miner-efficiency-updated-event", "on_efficiency_updated"), function(event)
    log(serpent.block(event))
  end)
end

script.on_init(register_events)
script.on_load(register_events)

what you get:

{
  surface_index = 1,
  zone_index = 523,

  new_amount_for_one = 478148.66421992512,
  new_amount = 2138345.833092948,
  efficiency = 0.22360679774997898,
}