on_research_finished improvements

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

on_research_finished improvements

Post by DaveMcW »

1. on_research_finished event should specify a force.

2. force.technologies[event.research.name].researched should be set before on_research_finished is called. This makes it easier to share functions between on_research_finished and other events.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15583
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_research_finished improvements

Post by Rseding91 »

The event passes: event.research - the LuaTechnology that was researched. You can use research.force to tell what force the research is for. No need to re-lookup the technology.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”