public static void addNewTech(Nation player, Technology tech) { player.AddTechnology(tech.GetTechName()); if (tech.GetDiscovered() == false) { player.addPattent(); tech.SetDiscovered(true); tech.SetDiscoveredBy(player.getIndex()); } }