Page 1 of 1

on_research_finished improvements

Posted: Sat Jul 18, 2015 6:28 am
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.

Re: on_research_finished improvements

Posted: Sat Jul 18, 2015 4:36 pm
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.