Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Source/SpaceDust/Modules/ModuleSpaceDustHarvester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class HarvestedResource
public string Name = "undefined";
// The basic efficiency, applied at local V = 0
public float BaseEfficiency;
public double MinHarvestValue = 0.0001d;
public double density = 0.05;
public double MinHarvestValue = 0.0001d; // t/m^3 (0.08 atm)
public double density = 0.05; // KSP resource mass (t/unit)


public HarvestedResource() { }
Expand Down Expand Up @@ -59,12 +59,11 @@ public class ModuleSpaceDustHarvester : PartModule
[KSPField(isPersistant = false)]
public float IntakeSpeedStatic = 0f;

// The velocity to use when the intake is static
// The effective area of the intake
[KSPField(isPersistant = false)]
public float IntakeArea = 0f;

// Maps how well the intake works as velocity increases. 0 = nothing, 1= baseEfficiency

[KSPField(isPersistant = false)]
public FloatCurve IntakeVelocityScale;

Expand Down Expand Up @@ -114,7 +113,7 @@ public class ModuleSpaceDustHarvester : PartModule
[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = false, guiName = "#LOC_SpaceDust_ModuleSpaceDustHarvester_Field_IntakeSpeed")]
public string IntakeSpeed = "";

// UI field for showing sscoop status
// UI field for showing scoop status
[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = false, guiName = "#LOC_SpaceDust_ModuleSpaceDustHarvester_Field_Scoop")]
public string ScoopUI = "";

Expand Down
4 changes: 2 additions & 2 deletions Source/SpaceDust/Modules/ModuleSpaceDustScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public class ModuleSpaceDustScanner : PartModule
[KSPField(isPersistant = false)]
public float minResToLeave = 0.1f;

/// Am i enabled?
/// Does the scanner work in vacuum?
[KSPField(isPersistant = false)]
public bool ScanInSpace = true;

/// Am i enabled?
/// Does the scanner work in atmosphere?
[KSPField(isPersistant = false)]
public bool ScanInAtmosphere = true;

Expand Down
6 changes: 3 additions & 3 deletions Source/SpaceDust/Modules/ModuleSpaceDustTelescope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class ModuleSpaceDustTelescope : PartModule
[KSPField(isPersistant = true)]
public float CurrentPowerConsumption = 1f;

// Current cost to run the scanner
// Number of slots the telescope is equipped with
[KSPField(isPersistant = true)]
public int Slots = 2;

Expand Down Expand Up @@ -91,9 +91,9 @@ public class ModuleSpaceDustTelescope : PartModule
[KSPField(isPersistant = false)]
public double ObjectiveDiameter = 1.8d;

// Size of the lens
// Field of view (in radians)
[KSPField(isPersistant = false)]
public double FieldOfView = 1.8d;
public double FieldOfView = 0.001d; // 3.4 arcminutes

[KSPEvent(guiActive = true, guiActiveEditor = true, guiName = "#LOC_SpaceDust_ModuleSpaceDustTelescope_Event_EnableTelescope", active = true)]
public void EnableTelescope()
Expand Down
4 changes: 2 additions & 2 deletions Source/SpaceDust/Modules/ScannedResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public class ScannedResource
public string Name = "";
public DiscoverMode DiscoverMode;
public DiscoverMode IdentifyMode;
public double LocalThreshold = 0.01;
public double LocalThreshold = 1e-5; // t/m^3 (0.008 atm)
public double DiscoverRange = 70000;
public double IdentifyRange = 30000;
public double density = 0.05;
public double density = 0.05; // KSP resource mass (t/unit)

private const string DISCOVER_MODE_PARAMETER_NAME = "DiscoverMode";
private const string IDENTIFY_MODE_PARAMETER_NAME = "IdentifyMode";
Expand Down
2 changes: 1 addition & 1 deletion Source/SpaceDust/SpaceDustInstrument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void Load(ConfigNode node)
// Configure the default curve
AtmosphereEffect = new FloatCurve();
AtmosphereEffect.Add(0f, 1f);
AtmosphereEffect.Add(70000f, 5f);
AtmosphereEffect.Add(70000f, 0.5f);
AtmosphereEffect.Add(500000f, 0f);
ConfigNode floatCurveNode = new ConfigNode();
if (node.TryGetNode(ATMOSPHERE_PARAMETER_NAME, ref floatCurveNode))
Expand Down