Cybah
Emperor
- Joined
- Jun 22, 2007
- Messages
- 1,481
By the way, looking at the concept of the BeginPlayerTurn, it is looping through every player to check whether he is a vassal, then loop through the whole list of techs to see if there is a tech that vassal has that master does not and vice versa every single turn.
Why not rewrite the whole thing under onTA instead?
Such that, when a player gains a tech, check if he is a vassal or master, then gives the tech to the other player as well.
This way, it is only activated when tech is gained rather than every single turn. And you only check the new tech gained rather than loop through the whole list of techs
Right, but might be problematic for techs which found religions/give first-research-advantages. Or don't you think so?
Also, since you are looping through every single tech, and granting to the other player, those techs that are not researchable like TECH_ISRAEL will be granted as well...
No since TECH_ISRAEL has bTrade 0 and I'm checking .isTrade.