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); }
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) })); }
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) })); }
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) })); }
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); }
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) })); }
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); }
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") })); }
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"), "%" })); }
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" })); }
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") })); }
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)); }
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")); }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = PolytechModuleModManager.CreatePolytechModule(inSubType, inLevel); return(false); }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = WarpDriveProgramModManager.CreateWarpDriveProgram(inSubType, inLevel); return(false); }
public virtual void AddStats(PLShipComponent InComp) { }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = ShieldPluginManager.CreateShield(inSubType, inLevel); return(false); }
public virtual void FinalLateAddStats(PLShipComponent InComp) { }
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"); }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = CaptainsChairModManager.CreateCaptainsChair(inSubType, inLevel); return(false); }
public virtual void OnWarp(PLShipComponent InComp) { }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = ExtractorModManager.CreateExtractor(inSubType, inLevel); return(false); }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = ManeuverThrusterPluginManager.CreateManeuverThruster(inSubType, inLevel); return(false); }
public virtual void Tick(PLShipComponent InComp) { }
public override void Tick(PLShipComponent InComp) { InComp.ShipStats.Ship.MyHull.Current -= 0.01f; InComp.ShipStats.HullCurrent -= 0.01f; }
static bool Prefix(int inSubType, int inLevel, ref PLShipComponent __result) { __result = NuclearDeviceModManager.CreateNuclearDevice(inSubType, inLevel); return(false); }
public override string GetStatLineLeft(PLShipComponent InComp) { return(PLLocalize.Localize("Thrust", false) + "\n"); }
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); }
public virtual string GetStatLineLeft(PLShipComponent InComp) { return(""); }