コード例 #1
0
 public void UpgradeNode(CreepingNodeImprovementDefinition upgrade)
 {
     this.RemoveImprovementDescriptors(this.NodeDefinition);
     this.RemoveConstructionCostDescriptor();
     DepartmentOfTheInterior.ClearFIMSEOnCreepingNode(this.Empire, this);
     this.NodeDefinition = upgrade;
     this.PointOfInterest.CreepingNodeImprovement = this.NodeDefinition;
     this.MaxLife = this.ConstructionTurns * this.NodeDefinition.GrowthPerTurn;
     this.AddConstructionCostDescriptor();
     if (!this.IsUnderConstruction)
     {
         this.CompleteUpgrade();
     }
 }
コード例 #2
0
 public void ReApplyFIMSEOnCreepingNode()
 {
     DepartmentOfTheInterior.ClearFIMSEOnCreepingNode(this.Empire, this);
     DepartmentOfTheInterior.GenerateFIMSEForCreepingNode(this.Empire, this);
 }