public void CompleteUpgrade() { this.StoredConstructionCost.Clear(); this.IsUpgradeReady = true; this.UpgradeReachedTurn = this.game.Turn; this.Life = this.MaxLife; base.SetPropertyBaseValue(SimulationProperties.CreepingNodeTimesUpgraded, this.GetPropertyValue(SimulationProperties.CreepingNodeTimesUpgraded) + 1f); this.RemoveConstructionCostDescriptor(); this.AddImprovementDescriptors(this.NodeDefinition); DepartmentOfTheInterior.GenerateFIMSEForCreepingNode(this.Empire, this); this.LineOfSightDirty = true; this.Refresh(false); if (this.OnUpgradeComplete != null) { this.OnUpgradeComplete(this, new EventArgs()); } this.eventService.Notify(new EventCreepingNodeUpgradeComplete(this, false)); if (this.NodeDefinition != null) { this.eventService.Notify(new EventConstructionEnded(this.Empire, this.GUID, this.NodeDefinition)); } }
public void ReApplyFIMSEOnCreepingNode() { DepartmentOfTheInterior.ClearFIMSEOnCreepingNode(this.Empire, this); DepartmentOfTheInterior.GenerateFIMSEForCreepingNode(this.Empire, this); }