on_force_reset event

Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

on_force_reset event

Post by Honktown »

There's a scenario where I'd like to re-apply bonuses/nerfs to a force on a "you lost" reset, but there's no event to detect that (it will have to be done after the call). In this circumstance, if a reset call is not done by your mod, it's impossible to know when to re-apply things that you'd like to apply when a force is "initialized". There is on_technology_effects_reset, but it doesn't trigger when force.reset() is called.

Another situation is enabling/disabling/researching technologies in the control phase. When the technologies are reset to their prototype state, one loses what you'd like to have done as "initial" effects.
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_force_reset event

Post by Rseding91 »

Ok, It's now added for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”