private string MakeAndRecordPlanetDesign(PlanetoidCategory cat, SystemDesirability desirability) {
     string designName = GetUniqueDesignName(cat.GetValueName());
     PlanetStat stat = MakeRandomPlanetStat(cat, desirability);
     int passiveCmQty = GetPassiveCountermeasureQty(desirability, max: 3);
     var passiveCMs = _availablePassiveCountermeasureStats.Shuffle().Take(passiveCmQty);
     PlanetDesign design = new PlanetDesign(designName, stat, passiveCMs);
     _gameMgr.CelestialDesigns.Add(design);
     return designName;
 }
示例#2
0
 public void Add(PlanetDesign design) {
     string designName = design.DesignName;
     D.Assert(!_planetDesignsLookup.ContainsKey(designName));
     _planetDesignsLookup.Add(designName, design);
     //D.Log("{0} added {1} {2}.", GetType().Name, design.GetType().Name, designName);
 }