コード例 #1
0
        public override void FinalLateAddStats(PLShipComponent InComp)
        {
            PLCPU InCPU = InComp as PLCPU;

            InCPU.ShipStats.EMDetection          *= 1f + .1f * InCPU.LevelMultiplier(0.2f, 1f);
            InCPU.ShipStats.ShieldsChargeRate    *= 1f + .1f * InCPU.LevelMultiplier(0.2f, 1f);
            InCPU.ShipStats.ShieldsChargeRateMax *= 1f + .1f * InCPU.LevelMultiplier(0.2f, 1f);
            InCPU.ShipStats.TurretChargeFactor   *= 1f + .1f * InCPU.LevelMultiplier(0.2f, 1f);
        }
コード例 #2
0
 public override string GetStatLineLeft(PLShipComponent InComp)
 {
     return(string.Concat(new string[]
     {
         PLLocalize.Localize("Charge Rate", false),
         "\n",
         PLLocalize.Localize("Range", false),
         "\n",
         PLLocalize.Localize("Charges Per Fuel", false)
     }));
 }
コード例 #3
0
 public override string GetStatLineLeft(PLShipComponent InComp)
 {
     return(string.Concat(new string[]
     {
         PLLocalize.Localize("Integrity", false),
         "\n",
         PLLocalize.Localize("Charge Rate", false),
         "\n",
         PLLocalize.Localize("Min For QT Shields", false)
     }));
 }
コード例 #4
0
 public override string GetStatLineLeft(PLShipComponent InComp)
 {
     return(string.Concat(new string[]
     {
         PLLocalize.Localize("Max Temp", false),
         "\n",
         PLLocalize.Localize("Emer. Cooldown", false),
         "\n",
         PLLocalize.Localize("Output", false)
     }));
 }
コード例 #5
0
        static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
        {
            int subtypeformodded = inSubType - HullPlatingModManager.Instance.VanillaHullPlatingMaxType;

            if (subtypeformodded <= HullPlatingModManager.Instance.HullPlatingTypes.Count && subtypeformodded > -1)
            {
                Logger.Info("Creating HullPlating from list info");
                __result       = HullPlatingModManager.Instance.HullPlatingTypes[subtypeformodded].PLHullPlating;
                __result.Level = inLevel;
                return(false);
            }
            return(true);
        }
コード例 #6
0
 public override string GetStatLineLeft(PLShipComponent InComp)
 {
     return(string.Concat(new string[]
     {
         PLLocalize.Localize("Max Damage", false),
         "\n",
         PLLocalize.Localize("Damage Range", false),
         "\n",
         PLLocalize.Localize("Fuel Burn Rate", false),
         "\n",
         PLLocalize.Localize("Turn Speed", false)
     }));
 }
コード例 #7
0
        static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
        {
            int subtypeformodded = inSubType - MegaTurretPluginManager.Instance.VanillaMegaTurretMaxType;

            if (subtypeformodded <= MegaTurretPluginManager.Instance.MegaTurretTypes.Count && subtypeformodded > -1)
            {
                Logger.Info("Creating MegaTurret from list info");
                __result       = MegaTurretPluginManager.Instance.MegaTurretTypes[subtypeformodded].PLMegaTurret;
                __result.Level = inLevel;
                return(false);
            }
            return(true);
        }
コード例 #8
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLWarpDrive me = InComp as PLWarpDrive;

            return(string.Concat(new string[]
            {
                (me.ChargeSpeed * me.LevelMultiplier(0.25f, 1f)).ToString("0"),
                "\n",
                (me.WarpRange * 100f * me.LevelMultiplier(0.2f, 1f)).ToString("0"),
                "\n",
                me.NumberOfChargingNodes.ToString("0")
            }));
        }
コード例 #9
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLShieldGenerator me = InComp as PLShieldGenerator;

            return(string.Concat(new string[]
            {
                (me.Max * me.LevelMultiplier(0.25f, 1f)).ToString("0"),
                "\n",
                (me.ChargeRateMax * me.LevelMultiplier(0.5f, 1f)).ToString("0"),
                "\n",
                (me.MinIntegrityPercentForQuantumShield * 100f).ToString("0"),
                "%"
            }));
        }
コード例 #10
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLReactor me = InComp as PLReactor;

            return(string.Concat(new string[]
            {
                (me.TempMax * me.LevelMultiplier(0.1f, 1f)).ToString("0"),
                " kP\n",
                me.EmergencyCooldownTime.ToString("0.0"),
                " sec\n",
                ((float)me.OriginalEnergyOutputMax * me.LevelMultiplier(0.1f, 1f)).ToString("0"),
                " MW"
            }));
        }
コード例 #11
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLNuclearDevice me = InComp as PLNuclearDevice;

            return(string.Concat(new string[]
            {
                (me.MaxDamage * me.LevelMultiplier(0.15f, 1f)).ToString("0"),
                "\n",
                (me.Range * me.LevelMultiplier(0.2f, 1f)).ToString("0"),
                "\n",
                me.FuelBurnRate.ToString("0.0"),
                "\n",
                (me.TurnRate * 100f * me.LevelMultiplier(0.2f, 1f)).ToString("0")
            }));
        }
コード例 #12
0
        public override string GetStatLineLeft(PLShipComponent InComp)
        {
            PLHull me = InComp as PLHull;

            if (me.SubType == 9)
            {
                return(string.Concat(new string[]
                {
                    PLLocalize.Localize("Integrity", false),
                    "\n",
                    PLLocalize.Localize("Armor", false),
                    "\n",
                    PLLocalize.Localize("Armor (Max)", false)
                }));
            }
            return(PLLocalize.Localize("Integrity", false) + "\n" + PLLocalize.Localize("Armor", false));
        }
コード例 #13
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLHull me = InComp as PLHull;

            if (me.SubType == 9)
            {
                return(string.Concat(new string[]
                {
                    (me.Max * me.LevelMultiplier(0.2f, 1f)).ToString("0"),
                    "\n",
                    (me.Armor * 250f * me.LevelMultiplier(0.15f, 1f)).ToString("0"),
                    "\n",
                    (500f * me.LevelMultiplier(0.15f, 1f)).ToString("0")
                }));
            }
            return((me.Max * me.LevelMultiplier(0.2f, 1f)).ToString("0") + "\n" + (this.Armor * 250f * me.LevelMultiplier(0.15f, 1f)).ToString("0"));
        }
コード例 #14
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = PolytechModuleModManager.CreatePolytechModule(inSubType, inLevel);
     return(false);
 }
コード例 #15
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = WarpDriveProgramModManager.CreateWarpDriveProgram(inSubType, inLevel);
     return(false);
 }
コード例 #16
0
 public virtual void AddStats(PLShipComponent InComp)
 {
 }
コード例 #17
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = ShieldPluginManager.CreateShield(inSubType, inLevel);
     return(false);
 }
コード例 #18
0
 public virtual void FinalLateAddStats(PLShipComponent InComp)
 {
 }
コード例 #19
0
        public override string GetStatLineRight(PLShipComponent InComp)
        {
            PLThruster me = InComp as PLThruster;

            return(((float)me.m_MaxOutput * me.LevelMultiplier(0.18f, 1f) * 100f).ToString("0") + "\n");
        }
コード例 #20
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = CaptainsChairModManager.CreateCaptainsChair(inSubType, inLevel);
     return(false);
 }
コード例 #21
0
 public virtual void OnWarp(PLShipComponent InComp)
 {
 }
コード例 #22
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = ExtractorModManager.CreateExtractor(inSubType, inLevel);
     return(false);
 }
コード例 #23
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = ManeuverThrusterPluginManager.CreateManeuverThruster(inSubType, inLevel);
     return(false);
 }
コード例 #24
0
 public virtual void Tick(PLShipComponent InComp)
 {
 }
コード例 #25
0
 public override void Tick(PLShipComponent InComp)
 {
     InComp.ShipStats.Ship.MyHull.Current -= 0.01f;
     InComp.ShipStats.HullCurrent         -= 0.01f;
 }
コード例 #26
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = NuclearDeviceModManager.CreateNuclearDevice(inSubType, inLevel);
     return(false);
 }
コード例 #27
0
 public override string GetStatLineLeft(PLShipComponent InComp)
 {
     return(PLLocalize.Localize("Thrust", false) + "\n");
 }
コード例 #28
0
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = HullModManager.CreateHull(inSubType, inLevel);
     return(false);
 }
 static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result)
 {
     __result = MissionShipComponentModManager.CreateMissionShipComponent(inSubType, inLevel);
     return(false);
 }
コード例 #30
0
 public virtual string GetStatLineLeft(PLShipComponent InComp)
 {
     return("");
 }