mirror of
				https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
				synced 2024-08-15 00:43:19 +00:00 
			
		
		
		
	Fixed SecondaryRomanceChanceFactor transpiler
This commit is contained in:
		
							parent
							
								
									a19953c688
								
							
						
					
					
						commit
						83ffa00fb6
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
using HarmonyLib;
 | 
			
		||||
using Mono.Cecil.Cil;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using RJWSexperience.Ideology.HistoryEvents;
 | 
			
		||||
| 
						 | 
				
			
			@ -145,7 +146,7 @@ namespace RJWSexperience.Ideology.Patches
 | 
			
		|||
			// store results in the same place original loop does and remove everything else until Endfinaly
 | 
			
		||||
 | 
			
		||||
			IEnumerator<CodeInstruction> enumerator = instructions.GetEnumerator();
 | 
			
		||||
			bool endOfInstructions = enumerator.MoveNext();
 | 
			
		||||
			bool endOfInstructions = !enumerator.MoveNext();
 | 
			
		||||
 | 
			
		||||
			// Find and replace GetRelations
 | 
			
		||||
			while (!endOfInstructions)
 | 
			
		||||
| 
						 | 
				
			
			@ -160,7 +161,7 @@ namespace RJWSexperience.Ideology.Patches
 | 
			
		|||
				}
 | 
			
		||||
 | 
			
		||||
				yield return instruction;
 | 
			
		||||
				endOfInstructions = enumerator.MoveNext();
 | 
			
		||||
				endOfInstructions = !enumerator.MoveNext();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (endOfInstructions)
 | 
			
		||||
| 
						 | 
				
			
			@ -179,7 +180,7 @@ namespace RJWSexperience.Ideology.Patches
 | 
			
		|||
					break;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				endOfInstructions = enumerator.MoveNext();
 | 
			
		||||
				endOfInstructions = !enumerator.MoveNext();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (endOfInstructions)
 | 
			
		||||
| 
						 | 
				
			
			@ -197,7 +198,7 @@ namespace RJWSexperience.Ideology.Patches
 | 
			
		|||
					break;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				endOfInstructions = enumerator.MoveNext();
 | 
			
		||||
				endOfInstructions = !enumerator.MoveNext();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (endOfInstructions)
 | 
			
		||||
| 
						 | 
				
			
			@ -211,6 +212,8 @@ namespace RJWSexperience.Ideology.Patches
 | 
			
		|||
			{
 | 
			
		||||
				yield return enumerator.Current;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (Prefs.DevMode) Log.Message("[RSI] Successfully transpiled Pawn_RelationsTracker.SecondaryRomanceChanceFactor");
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		[HarmonyPatch(typeof(Precept), nameof(Precept.GetTip))]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue