Skip to content

Commit 9564c26

Browse files
committed
Version 1.4b
Add Saturable RW support.
1 parent 45b1e3a commit 9564c26

6 files changed

Lines changed: 21 additions & 11 deletions

File tree

.vs/ModActions/v14/.suo

-1.5 KB
Binary file not shown.

ModActions/CommonMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class ModActionsMainMenu : PartModule
5555
{
5656
public void Start()
5757
{
58-
Debug.Log("ModActions Ver. 1.4a Starting.....");
58+
Debug.Log("ModActions Ver. 1.4b Starting.....");
5959
if (!StaticMethods.ListPopulated) //populate our list if this is first load
6060
{
6161
StaticMethods.AllActionsList = new List<ModActionData>();

ModActions/Execute.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,21 @@ public static void ExectueAction(ModActionData action, PartModule pm, KSPActionP
14041404
pm.part.UpdateAutoStrut();
14051405
break;
14061406
}
1407+
case 120: //saturable reaction wheel enable fuel cancel enable
1408+
{
1409+
pm.part.Modules["RWSaturatable"].GetType().GetField("bConsumeResource").SetValue(pm.part.Modules["RWSaturatable"], true);
1410+
break;
1411+
}
1412+
case 121: //saturable reaction wheel enable fuel cancel disable
1413+
{
1414+
pm.part.Modules["RWSaturatable"].GetType().GetField("bConsumeResource").SetValue(pm.part.Modules["RWSaturatable"], false);
1415+
break;
1416+
}
1417+
case 122: //saturable reaction wheel enable fuel cancel toggle
1418+
{
1419+
pm.part.Modules["RWSaturatable"].GetType().GetField("bConsumeResource").SetValue(pm.part.Modules["RWSaturatable"], !(bool)pm.part.Modules["RWSaturatable"].GetType().GetField("bConsumeResource").GetValue(pm.part.Modules["RWSaturatable"]));
1420+
break;
1421+
}
14071422
} //close switch bracket
14081423
MonoBehaviorMethods.resetPartWindows();
14091424
}

ModActions/ModActions.csproj

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<DebugSymbols>true</DebugSymbols>
1717
<DebugType>full</DebugType>
1818
<Optimize>false</Optimize>
19-
<OutputPath>..\..\..\..\1.2.1 Dev\GameData\Diazo\ModActions\</OutputPath>
19+
<OutputPath>..\..\..\..\1.2.2 Dev\GameData\Diazo\ModActions\</OutputPath>
2020
<DefineConstants>DEBUG;TRACE</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
@@ -31,16 +31,11 @@
3131
</PropertyGroup>
3232
<ItemGroup>
3333
<Reference Include="Assembly-CSharp">
34-
<HintPath>..\..\..\..\1.2.1 Dev\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
34+
<HintPath>..\..\..\..\1.2.2 Dev\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
3535
<Private>False</Private>
3636
</Reference>
3737
<Reference Include="Assembly-CSharp-firstpass">
38-
<HintPath>..\..\..\..\1.2.1 Dev\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
39-
<Private>False</Private>
40-
</Reference>
41-
<Reference Include="KSPAssets, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
42-
<SpecificVersion>False</SpecificVersion>
43-
<HintPath>..\..\..\..\1.2.1 Dev\KSP_x64_Data\Managed\KSPAssets.dll</HintPath>
38+
<HintPath>..\..\..\..\1.2.2 Dev\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
4439
<Private>False</Private>
4540
</Reference>
4641
<Reference Include="System" />
@@ -50,11 +45,11 @@
5045
<Reference Include="System.Data" />
5146
<Reference Include="System.Xml" />
5247
<Reference Include="UnityEngine">
53-
<HintPath>..\..\..\..\1.2.1 Dev\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
48+
<HintPath>..\..\..\..\1.2.2 Dev\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
5449
<Private>False</Private>
5550
</Reference>
5651
<Reference Include="UnityEngine.UI">
57-
<HintPath>..\..\..\..\1.2.1 Dev\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
52+
<HintPath>..\..\..\..\1.2.2 Dev\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
5853
<Private>False</Private>
5954
</Reference>
6055
</ItemGroup>
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)