Exemple #1
0
                public AirCorpsRecord(AirBase.AirCorpsInfo airCorps, int number)
                {
                    var    corpsFp = airCorps.CalcFighterPower();
                    string spec;
                    string spec2;

                    if (airCorps.Action == 2)
                    {
                        spec  = "制空:" + RangeString(corpsFp.Interception);
                        spec2 = corpsFp.Difference ? "制空(出撃):" + RangeString(corpsFp.AirCombat) : "";
                    }
                    else
                    {
                        spec  = "制空:" + RangeString(corpsFp.AirCombat);
                        spec2 = corpsFp.Difference ? "制空(防空):" + RangeString(corpsFp.Interception) : "";
                    }
                    var cost = airCorps.CostForSortie;

                    Ship  = new[] { "第一", "第二", "第三" }[number] +" " + airCorps.ActionName;
                    Ship2 = $"出撃コスト:燃{cost[0]}弾{cost[1]}";
                    Spec  = spec + $" 距離:{airCorps.Distance}";
                    Spec2 = spec2;
                }
Exemple #2
0
 public static Record CreateAirCorpsRecord(AirBase.AirCorpsInfo airCorps, int number)
 {
     return(new AirCorpsRecord(airCorps, number));
 }