Skip to content

Commit

Permalink
*fixed tactics skill
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphyum committed Jun 15, 2018
1 parent 31fa277 commit 98a98c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
9 changes: 4 additions & 5 deletions ClassLibrary2/CommanderPortraitLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CommanderPortraitLoader</RootNamespace>
<AssemblyName>CommanderPortraitLoader</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -37,11 +38,9 @@
<Reference Include="Assembly-CSharp">
<HintPath>D:\SteamLibrary\steamapps\common\BATTLETECH\BattleTech_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="CsvHelper, Version=7.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\packages\CsvHelper.7.1.0\lib\net45\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net35\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion ClassLibrary2/Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void Postfix(ref SGCharacterCreationWidget __instance, ref Pilot __result
//Settings settings = Helper.LoadSettings();
PilotDef pilotDef = new PilotDef(new HumanDescriptionDef(__result.Description.Id, __result.Description.Callsign, __result.Description.FirstName, __result.Description.LastName,
__result.Description.Callsign, __result.Description.Gender, Faction.NoFaction, __result.Description.Age, __result.Description.Details, __result.pilotDef.PortraitSettings.Description.Icon),
__result.Gunnery, __result.Piloting, __result.Guts, __result.Guts, 0, 3, false, 0, NewVoice.newVoice, Helper.GetAbilities(__result.Gunnery, __result.Piloting, __result.Guts, __result.Guts), AIPersonality.Undefined, 0, __result.pilotDef.PilotTags, 0, 0);
__result.Gunnery, __result.Piloting, __result.Guts, __result.Tactics, 0, 3, false, 0, NewVoice.newVoice, Helper.GetAbilities(__result.Gunnery, __result.Piloting, __result.Guts, __result.Tactics), AIPersonality.Undefined, 0, __result.pilotDef.PilotTags, 0, 0);
pilotDef.PortraitSettings = null;
pilotDef.SetHiringHallStats(true, false, true, false);
__result = new Pilot(pilotDef, "commander", false);
Expand Down
6 changes: 0 additions & 6 deletions ClassLibrary2/ReflectionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ public static object InvokePrivateMethode(object instance, string methodname, ob
return methodInfo.Invoke(instance, parameters);
}

public static void SetPrivateProperty(object instance, string propertyname, object value) {
Type type = instance.GetType();
PropertyInfo property = type.GetProperty(propertyname, BindingFlags.NonPublic | BindingFlags.Instance);
property.SetValue(instance, value);
}

public static void SetPrivateField(object instance, string fieldname, object value) {
Type type = instance.GetType();
FieldInfo field = type.GetField(fieldname, BindingFlags.NonPublic | BindingFlags.Instance);
Expand Down
2 changes: 1 addition & 1 deletion ClassLibrary2/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
<startup><supportedRuntime version="v2.0.50727" /></startup></configuration>
3 changes: 1 addition & 2 deletions ClassLibrary2/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CsvHelper" version="7.1.0" targetFramework="net452" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net35" />
</packages>

0 comments on commit 98a98c3

Please sign in to comment.