mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Some Progress on Damaging Genitalia - but it's tricky
This commit is contained in:
		
							parent
							
								
									0190be4392
								
							
						
					
					
						commit
						cda3ad1317
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
					@ -41,7 +41,7 @@
 | 
				
			||||||
				<infectionChance>0.15</infectionChance>
 | 
									<infectionChance>0.15</infectionChance>
 | 
				
			||||||
			</li>
 | 
								</li>
 | 
				
			||||||
			<li Class="HediffCompProperties_GetsPermanent">
 | 
								<li Class="HediffCompProperties_GetsPermanent">
 | 
				
			||||||
				<permanentLabel>rupture scar</permanentLabel>
 | 
									<permanentLabel>tear scar</permanentLabel>
 | 
				
			||||||
			</li>
 | 
								</li>
 | 
				
			||||||
		</comps>
 | 
							</comps>
 | 
				
			||||||
		<injuryProps>
 | 
							<injuryProps>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,6 +53,8 @@ namespace RJW_Genes
 | 
				
			||||||
            switch (props.sexType)
 | 
					            switch (props.sexType)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                case xxx.rjwSextype.Oral:
 | 
					                case xxx.rjwSextype.Oral:
 | 
				
			||||||
 | 
					                case xxx.rjwSextype.Fellatio:
 | 
				
			||||||
 | 
					                case xxx.rjwSextype.Cunnilingus:
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        float penetrated_bodysize = GetBodySize(damaged);
 | 
					                        float penetrated_bodysize = GetBodySize(damaged);
 | 
				
			||||||
                        float damage = CalculateSizeRelatedDamage(penetrator_bodysize, penetrator_genitalsize, penetrated_bodysize, 0.0f);
 | 
					                        float damage = CalculateSizeRelatedDamage(penetrator_bodysize, penetrator_genitalsize, penetrated_bodysize, 0.0f);
 | 
				
			||||||
| 
						 | 
					@ -66,9 +68,11 @@ namespace RJW_Genes
 | 
				
			||||||
                        DamageWorker.Apply(dInfo, damaged);
 | 
					                        DamageWorker.Apply(dInfo, damaged);
 | 
				
			||||||
                    } break;
 | 
					                    } break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case xxx.rjwSextype.Vaginal:
 | 
					                case xxx.rjwSextype.Vaginal:
 | 
				
			||||||
 | 
					                case xxx.rjwSextype.Scissoring:
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        Hediff vagina = Genital_Helper.get_AllPartsHediffList(damaged).First(part => Genital_Helper.is_vagina(part));
 | 
					                        Hediff vagina = Genital_Helper.get_AllPartsHediffList(damaged).FirstOrDefault(part => Genital_Helper.is_vagina(part));
 | 
				
			||||||
                        if (vagina == null) return;
 | 
					                        if (vagina == null) return;
 | 
				
			||||||
                        CompHediffBodyPart comps = vagina.TryGetComp<rjw.CompHediffBodyPart>();
 | 
					                        CompHediffBodyPart comps = vagina.TryGetComp<rjw.CompHediffBodyPart>();
 | 
				
			||||||
                        float penetrated_bodysize = GetBodySize(damaged, vagina);
 | 
					                        float penetrated_bodysize = GetBodySize(damaged, vagina);
 | 
				
			||||||
| 
						 | 
					@ -85,7 +89,7 @@ namespace RJW_Genes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case xxx.rjwSextype.Anal:
 | 
					                case xxx.rjwSextype.Anal:
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        Hediff anus = Genital_Helper.get_AllPartsHediffList(damaged).First(part => Genital_Helper.is_anus(part));
 | 
					                        Hediff anus = Genital_Helper.get_AllPartsHediffList(damaged).FirstOrDefault(part => Genital_Helper.is_anus(part));
 | 
				
			||||||
                        if (anus == null) return;
 | 
					                        if (anus == null) return;
 | 
				
			||||||
                        CompHediffBodyPart comps = anus.TryGetComp<rjw.CompHediffBodyPart>();
 | 
					                        CompHediffBodyPart comps = anus.TryGetComp<rjw.CompHediffBodyPart>();
 | 
				
			||||||
                        float penetrated_bodysize = GetBodySize(damaged, anus);
 | 
					                        float penetrated_bodysize = GetBodySize(damaged, anus);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue