mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Added new Gene on Orgasm Rush
This commit is contained in:
		
							parent
							
								
									6604f1206b
								
							
						
					
					
						commit
						4344302b16
					
				
					 7 changed files with 59 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -50,9 +50,15 @@
 | 
			
		|||
  </GeneCategoryDef>
 | 
			
		||||
 | 
			
		||||
  <GeneCategoryDef>
 | 
			
		||||
    <defName>rjw_damage</defName>
 | 
			
		||||
    <defName>rjw_genes_damage</defName>
 | 
			
		||||
    <label>Genital Related Damage</label>
 | 
			
		||||
    <displayPriorityInXenotype>11</displayPriorityInXenotype>
 | 
			
		||||
  </GeneCategoryDef>
 | 
			
		||||
 | 
			
		||||
  <GeneCategoryDef>
 | 
			
		||||
    <defName>rjw_genes_special</defName>
 | 
			
		||||
    <label>Genital Related Damage</label>
 | 
			
		||||
    <displayPriorityInXenotype>8</displayPriorityInXenotype>
 | 
			
		||||
  </GeneCategoryDef>
 | 
			
		||||
  
 | 
			
		||||
</Defs>
 | 
			
		||||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
  <GeneDef MayRequire="LustLicentia.RJWLabs">
 | 
			
		||||
    <defName>rjw_genes_elasticity</defName>
 | 
			
		||||
    <label>Elasticity</label>
 | 
			
		||||
    <displayCategory>rjw_damage</displayCategory>
 | 
			
		||||
    <displayCategory>rjw_genes_damage</displayCategory>
 | 
			
		||||
    <description>This Xenotype cannot get stretched by huge penetrators.</description>
 | 
			
		||||
    <iconPath>Genes/Icons/Elasticity</iconPath>
 | 
			
		||||
    <geneClass>RJW_Genes.Gene_Elasticity</geneClass>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										13
									
								
								Common/Defs/Genes/GeneDefs_SexSpecial.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Common/Defs/Genes/GeneDefs_SexSpecial.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<Defs>
 | 
			
		||||
    <GeneDef>
 | 
			
		||||
        <defName>rjw_genes_orgasm_rush</defName>
 | 
			
		||||
        <label>Orgasm Rush</label>
 | 
			
		||||
        <displayCategory>rjw_genes_special</displayCategory>
 | 
			
		||||
        <description>On Orgasm, carriers of this gene get a boost in activity. (rest-need is partially filled)</description>
 | 
			
		||||
        <biostatCpx>1</biostatCpx>
 | 
			
		||||
        <iconPath>UI/Memes/FleshPurity</iconPath>
 | 
			
		||||
        <displayOrderInCategory>1</displayOrderInCategory>
 | 
			
		||||
    </GeneDef>
 | 
			
		||||
    
 | 
			
		||||
</Defs>
 | 
			
		||||
| 
						 | 
				
			
			@ -10,6 +10,8 @@ namespace RJW_Genes
 | 
			
		|||
		public static readonly GeneCategoryDef rjw_genes_genitalia_size;
 | 
			
		||||
		public static readonly GeneCategoryDef rjw_genes_gender;
 | 
			
		||||
		public static readonly GeneCategoryDef rjw_genes_breeding;
 | 
			
		||||
		public static readonly GeneCategoryDef rjw_genes_damage;
 | 
			
		||||
		public static readonly GeneCategoryDef rjw_genes_special;
 | 
			
		||||
 | 
			
		||||
		// Base Genitalia Types
 | 
			
		||||
		public static readonly GeneDef rjw_genes_equine_genitalia;
 | 
			
		||||
| 
						 | 
				
			
			@ -65,5 +67,9 @@ namespace RJW_Genes
 | 
			
		|||
 | 
			
		||||
		// Damage & Side Effects 
 | 
			
		||||
		[MayRequire("LustLicentia.RJWLabs")] public static readonly GeneDef rjw_genes_elasticity;
 | 
			
		||||
 | 
			
		||||
		// Special
 | 
			
		||||
		public static readonly GeneDef rjw_genes_orgasm_rush;
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										31
									
								
								Source/Genes/Special/Patch_OrgasmRush.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								Source/Genes/Special/Patch_OrgasmRush.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
using HarmonyLib;
 | 
			
		||||
using rjw;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace RJW_Genes
 | 
			
		||||
{
 | 
			
		||||
	
 | 
			
		||||
	[HarmonyPatch(typeof(SexUtility), nameof(SexUtility.SatisfyPersonal))]
 | 
			
		||||
	public static class Patch_OrgasmRush
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		private const float REST_INCREASE = 0.05f;
 | 
			
		||||
 | 
			
		||||
		public static void Postfix(SexProps props)
 | 
			
		||||
		{
 | 
			
		||||
			// ShortCuts: Exit Early if Pawn or Partner are null (can happen with Animals or Masturbation)
 | 
			
		||||
			if (props.pawn == null || !props.hasPartner())
 | 
			
		||||
				return;
 | 
			
		||||
 | 
			
		||||
			if (props.pawn.genes.HasGene(GeneDefOf.rjw_genes_orgasm_rush))
 | 
			
		||||
            {
 | 
			
		||||
				props.pawn.needs.rest.CurLevel += REST_INCREASE;
 | 
			
		||||
            }
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -116,6 +116,7 @@
 | 
			
		|||
    <Compile Include="Genes\Genitalia\GenitaliaChanger.cs" />
 | 
			
		||||
    <Compile Include="Genes\RJW_Gene.cs" />
 | 
			
		||||
    <Compile Include="Genes\Genitalia\GenitaliaUtility.cs" />
 | 
			
		||||
    <Compile Include="Genes\Special\Patch_OrgasmRush.cs" />
 | 
			
		||||
    <Compile Include="HarmonyInit.cs" />
 | 
			
		||||
    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
			
		||||
    <Compile Include="RJW_Genes.cs" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue