Skip to content

Commit

Permalink
Enhancement:
Browse files Browse the repository at this point in the history
- Added SignalModifier into Setting.cfg
  • Loading branch information
HaullyGames committed Feb 27, 2018
1 parent c53a4fd commit 90d2ee6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,4 +6,6 @@ Fev 11: CryoTank - CryoTank Compatibility has been fixed

Fev 12: Science - Laboratory analysis_rate *= crew_qtty * crew_lvl_avg;

Fev 13: SSPX - SSPX Redux compatibility has been fixed
Fev 13: SSPX - SSPX Redux compatibility has been fixed

Fev 26: Signal - Added SignalModifier into Setting.cfg
Binary file added GameData/Kerbalism.zip
Binary file not shown.
Binary file modified GameData/Kerbalism/Debug/Kerbalism-Continued_Debug.dll.debug
Binary file not shown.
Binary file modified GameData/Kerbalism/Kerbalism-Continued.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion GameData/Kerbalism/Settings.cfg
Expand Up @@ -5,7 +5,7 @@ Kerbalism
// user-defined features
Reliability = true // component malfunctions and critical failures
Signal = false // communications using low-gain and high-gain antennas
Signal = true // communications using low-gain and high-gain antennas
KCommNet = false // Use CommNet(100%) as Signal system for Kerbalism, if Signal = true && KCommNet = true, will assume Signal as active
AdvancedEC = false // add ecCost to keep module working, add ecCost to Extend\Retract (Deploy.cfg has the modules supported list)
Science = true // science data storage, transmission and analysis
Expand Down Expand Up @@ -46,6 +46,7 @@ Kerbalism
// signal settings
UnlinkedControl = none // available control for unlinked vessels: 'none', 'limited' or 'full'
ExtendedAntenna = true // antenna only work if extended
SignalModifier = 10 // antenna range modifier
// science settings
ScienceDialog = true // keep showing the stock science dialog
Expand Down
4 changes: 3 additions & 1 deletion src/Modules/Antenna.cs
Expand Up @@ -41,7 +41,9 @@ public override void OnStart(StartState state)
extended |= part.FindModuleImplementing<ModuleAnimationGroup>() == null;

if (cost == 0) cost = dist / 50000000;
if(rate == 0) rate = cost * 0.064;
if (rate == 0) rate = cost * 0.064;

dist *= Settings.SignalModifier;

// create data stream, used if science system is disabled
stream = new DataStream();
Expand Down
4 changes: 3 additions & 1 deletion src/System/Settings.cs
Expand Up @@ -57,8 +57,9 @@ public static void Parse()
StormEjectionSpeed = Lib.ConfigValue(cfg, "StormEjectionSpeed", 1000000.0); // 0.33% c

// signal
UnlinkedControl = Lib.ConfigEnum(cfg, "UnlinkedControl", UnlinkedCtrl.none);
UnlinkedControl = Lib.ConfigEnum(cfg, "UnlinkedControl", UnlinkedCtrl.none);
ExtendedAntenna = Lib.ConfigValue(cfg, "ExtendedAntenna", true);
SignalModifier = Lib.ConfigValue(cfg, "SignalModifier", 1.0);

// science
ScienceDialog = Lib.ConfigValue(cfg, "ScienceDialog", true);
Expand Down Expand Up @@ -126,6 +127,7 @@ public static void Parse()
// signal
public static UnlinkedCtrl UnlinkedControl; // available control for unlinked vessels: 'none', 'limited' or 'full'
public static bool ExtendedAntenna; // antenna only work if extended
public static double SignalModifier; // antenna range modifier

// science
public static bool ScienceDialog; // keep showing the stock science dialog
Expand Down

0 comments on commit 90d2ee6

Please sign in to comment.