Skip to content

Commit e82656a

Browse files
committed
Fix Cold Trader origin mod breaking custom AdeptaSororitas/DeathCultAssassin/TechPriest
1 parent dbea1db commit e82656a

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

PlayableX/Info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Id": "PlayableX",
33
"DisplayName": "Playable X",
44
"Author": "ADDB",
5-
"Version": "1.2.0",
5+
"Version": "1.2.1",
66
"ManagerVersion": "0.25.0",
77
"Requirements": [],
88
"AssemblyName": "PlayableX.dll",

PlayableX/OwlcatModificationManifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"UniqueName": "PlayableX",
3-
"Version": "1.2.0",
3+
"Version": "1.2.1",
44
"DisplayName": "Playable X",
55
"Description": "Playable X",
66
"Author": "ADDB",

PlayableX/PlayableAdeptaSororitas/AdeptaSororitasPatches.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
using System.Threading.Tasks;
2828
using Kingmaker.Visual.CharacterSystem;
2929
using Code.GameCore.ElementsSystem;
30+
using Owlcat.Runtime.Core;
3031

3132
namespace PlayableX.PlayableAdeptaSororitas;
3233
public static class AdeptaSororitasPatches {
@@ -50,9 +51,10 @@ private static void GetOriginPath(ref BlueprintOriginPath __result) {
5051
var copy = CopyBlueprint(__result);
5152
try {
5253
var c = copy.Components.OfType<AddFeaturesToLevelUp>().Where(c => c.Group == FeatureGroup.ChargenOccupation).First();
54+
var index = copy.Components.IndexOf(c);
5355
var adeptaSororitasOccupation = ResourcesLibrary.BlueprintsCache.Load("b6962fcc54054af98961dd9a6c0f9e18") as BlueprintFeature;
5456
c.m_Features = new[] { adeptaSororitasOccupation.ToReference<BlueprintFeatureReference>() }.AddRangeToArray(c.m_Features);
55-
copy.Components[1] = c;
57+
copy.Components[index] = c;
5658
__result = copy;
5759
} catch (Exception e) {
5860
Main.log.Log(e.ToString());

PlayableX/PlayableDeathCultAssassin/DeathCultAssassinPatches.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ private static void GetOriginPath(ref BlueprintOriginPath __result) {
5151
var copy = CopyBlueprint(__result);
5252
try {
5353
var c = copy.Components.OfType<AddFeaturesToLevelUp>().Where(c => c.Group == FeatureGroup.ChargenOccupation).First();
54+
var index = copy.Components.IndexOf(c);
5455
var deathCultAssassinOccupation = ResourcesLibrary.BlueprintsCache.Load("9b090810169e4a42b22afd5995d3720d") as BlueprintFeature;
5556
c.m_Features = new[] { deathCultAssassinOccupation.ToReference<BlueprintFeatureReference>() }.AddRangeToArray(c.m_Features);
56-
copy.Components[1] = c;
57+
copy.Components[index] = c;
5758
__result = copy;
5859
} catch (Exception e) {
5960
Main.log.Log(e.ToString());

PlayableX/PlayableTechPriest/TechPriestPatches.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ private static void GetOriginPath(ref BlueprintOriginPath __result) {
5151
var copy = CopyBlueprint(__result);
5252
try {
5353
var c = copy.Components.OfType<AddFeaturesToLevelUp>().Where(c => c.Group == FeatureGroup.ChargenOccupation).First();
54+
var index = copy.Components.IndexOf(c);
5455
var techPriestOccupation = ResourcesLibrary.BlueprintsCache.Load("777d9f9c570443b59120e78f2d9dd515") as BlueprintFeature;
5556
c.m_Features = new[] { techPriestOccupation.ToReference<BlueprintFeatureReference>() }.AddRangeToArray(c.m_Features);
56-
copy.Components[1] = c;
57+
copy.Components[index] = c;
5758
__result = copy;
5859
} catch (Exception e) {
5960
Main.log.Log(e.ToString());

PlayableX/PlayableX.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFramework>net481</TargetFramework>
66
<AssemblyName>PlayableX</AssemblyName>
77
<Description>Playable X</Description>
8-
<Version>1.2.0</Version>
8+
<Version>1.2.1</Version>
99
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1010
<LangVersion>latest</LangVersion>
1111
<RootNamespace>PlayableX</RootNamespace>

Repository.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Releases": [
33
{
44
"Id": "PlayableX",
5-
"Version": "1.2.0"
5+
"Version": "1.2.1"
66
}
77
]
88
}

0 commit comments

Comments
 (0)