Space Exploration - core miner efficiency updated event

by Quezler

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

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

once 2.x drops do not expect new 1.x mods from me, mods will be slowly ported based on my needs and/or requests from the community, thx for playing!

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,
}