tuomount / Open-Realms-of-Stars

4X Strategy game
GNU General Public License v2.0
134 stars 32 forks source link

Refactor starting Techs for players #724

Closed BottledByte closed 10 months ago

BottledByte commented 10 months ago

Simplify code for realm starting Techs. Do not change "content" in any way.

There was a lot of duplicate code and redundant checks.

Also, it is probable this whole code will get scrapped when dehardcoding SpaceRace. It is debatable how "starting Tech" system should/will look like when races are dynamic and realms are "composable". And if there is really need to have so many similar "starting tech presets". I may open an issue for that eventually.