Skip to content

Commit

Permalink
- Updated for BT 1.9
Browse files Browse the repository at this point in the history
- Replaced NuGet JSON DLL with BT JSON DLL
- Fixed issue where 'Withdraw in X' turns wasn't displayed properly
  • Loading branch information
IceRaptor committed Feb 22, 2020
1 parent e74ba6e commit 43fc506
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
<Reference Include="IRBTModUtils">
<HintPath>E:\steam\SteamApps\common\BATTLETECH\Mods\IRBTModUtils\IRBTModUtils.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>E:\steam\SteamApps\common\BATTLETECH\BattleTech_Data\Managed\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -90,7 +91,6 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
6 changes: 5 additions & 1 deletion DisorderlyWithdrawal/DisorderlyWithdrawal/Patches/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static bool Prefix(CombatHUDRetreatEscMenu __instance, CombatGameState __
}

public static void OnContinue() {
Mod.Log.Debug($"CHUDREM:ORC OnContinue");
Mod.Log.Trace($"CHUDREM:ORC OnContinue");
ModState.HUD.SelectionHandler.GenericPopup = null;
}
}
Expand Down Expand Up @@ -199,6 +199,10 @@ static void Postfix(TurnDirector __instance, int round) {

ModState.RetreatButton.SetState(ButtonState.Enabled, false);
ModState.RetreatButtonText.SetText($"Withdraw");
} else {
int roundsToWait = ModState.CanWithdrawOnRound - round;
Mod.Log.Info($" -- Player must wait:{roundsToWait} rounds for pickup.");
ModState.RetreatButtonText.SetText($"In { roundsToWait } Rounds");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.5.3.0")]
[assembly: AssemblyFileVersion("0.5.3.0")]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
4 changes: 0 additions & 4 deletions DisorderlyWithdrawal/DisorderlyWithdrawal/packages.config

This file was deleted.

2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "DisorderlyWithdrawal",
"Enabled": true,
"Version": "0.5.3",
"Version": "0.6.0",
"Description": "Makes hot-withdrawals more realistic",
"Author": "IceRaptor",
"Website": "https://github.com/IceRaptor/DisorderlyWithdrawal",
Expand Down

0 comments on commit 43fc506

Please sign in to comment.