public override void Run() { _player.AddAdvance(_advance); if (_player.CurrentResearch == _advance) { _player.CurrentResearch = null; _player.Science = 0; // fire-eggs 20170729 if player acquires advance from city/steal/hut, do NOT roll-over existing lightbulbs } if (!_human) { EndTask(); return; } if (_player.CurrentResearch == null) { GameTask.Enqueue(new TechSelect(_player)); } Screens.Civilopedia civilopedia = new Screens.Civilopedia(_advance, discovered: true); civilopedia.Closed += CivilopediaClosed; Common.AddScreen(civilopedia); }
public override void Run() { _player.AddAdvance(_advance); if (_player.CurrentResearch == _advance) { _player.CurrentResearch = null; } if (!_human) { EndTask(); return; } if (_player.CurrentResearch == null) { GameTask.Enqueue(new TechSelect(_player)); } Screens.Civilopedia civilopedia = new Screens.Civilopedia(_advance, discovered: true); civilopedia.Closed += CivilopediaClosed; Common.AddScreen(civilopedia); }
private void ClosedDiscovery(object sender, EventArgs args) { Screens.Civilopedia civilopedia = new Screens.Civilopedia(_player.CurrentResearch, discovered: true); civilopedia.Closed += CivilopediaClosed; Common.AddScreen(civilopedia); }