mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Made Animal Hybrid Names Translatable and Changeable, closes #76
This commit is contained in:
		
							parent
							
								
									5a4c90a42b
								
							
						
					
					
						commit
						93b9feb2a9
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								Common/Languages/English/Keyed/Bestiality.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Common/Languages/English/Keyed/Bestiality.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LanguageData>
 | 
			
		||||
	<rjw_genes_bestiality_hybrid_name>animal-hybrid</rjw_genes_bestiality_hybrid_name>
 | 
			
		||||
</LanguageData>
 | 
			
		||||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ using HarmonyLib;
 | 
			
		|||
using RimWorld;
 | 
			
		||||
using Verse;
 | 
			
		||||
using rjw;
 | 
			
		||||
using static RimWorld.PsychicRitualRoleDef;
 | 
			
		||||
 | 
			
		||||
namespace RJW_BGS
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +44,9 @@ namespace RJW_BGS
 | 
			
		|||
 | 
			
		||||
                    // The mix-breed babies should be labelled hybrids
 | 
			
		||||
                    baby.genes.hybrid = true;
 | 
			
		||||
                    baby.genes.xenotypeName = "Hybrid";
 | 
			
		||||
 | 
			
		||||
                    //reason = "AbilityDisabledNoFertilinGene".Translate(this.parent.pawn);
 | 
			
		||||
                    baby.genes.xenotypeName = "rjw_genes_bestiality_hybrid".Translate();
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue