File tree Expand file tree Collapse file tree 7 files changed +11
-7
lines changed
PlayableDeathCultAssassin Expand file tree Collapse file tree 7 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 2727using System . Threading . Tasks ;
2828using Kingmaker . Visual . CharacterSystem ;
2929using Code . GameCore . ElementsSystem ;
30+ using Owlcat . Runtime . Core ;
3031
3132namespace PlayableX . PlayableAdeptaSororitas ;
3233public 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 ( ) ) ;
Original file line number Diff line number Diff 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 ( ) ) ;
Original file line number Diff line number Diff 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 ( ) ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 22 "Releases" : [
33 {
44 "Id" : " PlayableX" ,
5- "Version" : " 1.2.0 "
5+ "Version" : " 1.2.1 "
66 }
77 ]
88}
You can’t perform that action at this time.
0 commit comments