mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Fix #69 by adding looking for the Sexperience mod
This commit is contained in:
		
							parent
							
								
									a3a6273b86
								
							
						
					
					
						commit
						e805cfe025
					
				
					 2 changed files with 30 additions and 19 deletions
				
			
		| 
						 | 
					@ -1,3 +1,9 @@
 | 
				
			||||||
 | 
					# 1.3.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**Fixes:** 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Fixed the `GatheredCum`Fertilin Ingestion Patch throwing an Error for people without Sexperience (Fixes #69 (nice))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 1.3.2
 | 
					# 1.3.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Fixes:**
 | 
					**Fixes:**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,10 @@
 | 
				
			||||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
<Patch>
 | 
					<Patch>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<!-- 
 | 
						<!-- 
 | 
				
			||||||
		DevNote:
 | 
							DevNote:
 | 
				
			||||||
		There used to be an issue with a Gene-Mod Called "Cum-Addiction Gene". That mod just overwrote the complete UsedCondom.xml and Sexperience Cum.xml
 | 
							There used to be an issue with a Gene-Mod Called "Cum-Addiction Gene". That mod just overwrote the
 | 
				
			||||||
 | 
						complete UsedCondom.xml and Sexperience Cum.xml
 | 
				
			||||||
		This would lead to two types of failures: 
 | 
							This would lead to two types of failures: 
 | 
				
			||||||
		A) If this mod was before the other mod, changes were just overwritten
 | 
							A) If this mod was before the other mod, changes were just overwritten
 | 
				
			||||||
		B) If this mod was after, there was an issue in targetting the XML throwing a patch error
 | 
							B) If this mod was after, there was an issue in targetting the XML throwing a patch error
 | 
				
			||||||
| 
						 | 
					@ -11,26 +12,30 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		This patch was kindly mirrored after Infis Patch of UsedCondoms. 
 | 
							This patch was kindly mirrored after Infis Patch of UsedCondoms. 
 | 
				
			||||||
	-->
 | 
						-->
 | 
				
			||||||
 | 
						<Operation Class="PatchOperationFindMod">
 | 
				
			||||||
	<Operation Class="PatchOperationConditional">
 | 
							<mods>
 | 
				
			||||||
		<xpath>Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers</xpath>
 | 
								<li>RJW Sexperience</li>
 | 
				
			||||||
		<nomatch Class="PatchOperationAdd">
 | 
							</mods>
 | 
				
			||||||
			<xpath>/Defs/ThingDef[defName="GatheredCum"]/ingestible</xpath>
 | 
							<match Class="PatchOperationConditional">
 | 
				
			||||||
			<value>
 | 
								<xpath>Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers</xpath>
 | 
				
			||||||
				<outcomeDoers>
 | 
								<nomatch Class="PatchOperationAdd">
 | 
				
			||||||
 | 
									<xpath>/Defs/ThingDef[defName="GatheredCum"]/ingestible</xpath>
 | 
				
			||||||
 | 
									<value>
 | 
				
			||||||
 | 
										<outcomeDoers>
 | 
				
			||||||
 | 
											<li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset">
 | 
				
			||||||
 | 
												<FertilinPerUnit>1</FertilinPerUnit>
 | 
				
			||||||
 | 
											</li>
 | 
				
			||||||
 | 
										</outcomeDoers>
 | 
				
			||||||
 | 
									</value>
 | 
				
			||||||
 | 
								</nomatch>
 | 
				
			||||||
 | 
								<match Class="PatchOperationAdd">
 | 
				
			||||||
 | 
									<xpath>Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers</xpath>
 | 
				
			||||||
 | 
									<value>
 | 
				
			||||||
					<li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset">
 | 
										<li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset">
 | 
				
			||||||
						<FertilinPerUnit>1</FertilinPerUnit>
 | 
											<FertilinPerUnit>1</FertilinPerUnit>
 | 
				
			||||||
					</li>
 | 
										</li>
 | 
				
			||||||
				</outcomeDoers>
 | 
									</value>
 | 
				
			||||||
			</value>
 | 
								</match>
 | 
				
			||||||
		</nomatch>
 | 
					 | 
				
			||||||
		<match Class="PatchOperationAdd">
 | 
					 | 
				
			||||||
			<xpath>Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers</xpath>
 | 
					 | 
				
			||||||
			<value>
 | 
					 | 
				
			||||||
				<li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset">
 | 
					 | 
				
			||||||
						<FertilinPerUnit>1</FertilinPerUnit>
 | 
					 | 
				
			||||||
					</li>
 | 
					 | 
				
			||||||
			</value>
 | 
					 | 
				
			||||||
		</match>
 | 
							</match>
 | 
				
			||||||
	</Operation>
 | 
						</Operation>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue