Test Gene Gizmo presence

This commit is contained in:
Shabakur 2022-11-19 14:48:57 +01:00
parent 2d7cc13557
commit b49a91af03
12 changed files with 85 additions and 1 deletions

View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<AbilityDef ParentName="AbilityTouchBase">
<defName>PussyHeal</defName>
<label>SexHeal</label>
<description>Use special vagina to quickly tend someone's wounds.</description>
<iconPath>UI/Icons/Genes/Gene_Coagulate</iconPath>
<stunTargetWhileCasting>false</stunTargetWhileCasting>
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
<warmupMote>Mote_CoagulateStencil</warmupMote>
<warmupEffecter>Coagulate</warmupEffecter>
<warmupStartSound>Coagulate_Cast</warmupStartSound>
<jobDef>CastAbilityOnThingMelee</jobDef>
<displayOrder>401</displayOrder>
<verbProperties>
<verbClass>Verb_CastAbilityTouch</verbClass>
<drawAimPie>false</drawAimPie>
<range>-1</range>
<warmupTime>1</warmupTime>
<targetParams>
<canTargetAnimals>false</canTargetAnimals>
<canTargetSelf>false</canTargetSelf>
<canTargetBuildings>false</canTargetBuildings>
<canTargetMechs>false</canTargetMechs>
<canTargetBloodfeeders>true</canTargetBloodfeeders>
</targetParams>
</verbProperties>
<comps>
<li Class="CompProperties_AbilityCoagulate">
<tendQualityRange>0.4~0.8</tendQualityRange>
</li>
<li Class="CompProperties_AbilityRequiresCapacity">
<capacity>Manipulation</capacity>
</li>
</comps>
</AbilityDef>
</Defs>

View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- Mechbreeder -->
<GeneDef>
<defName>rjw_genes_mechbreeder</defName>
<label>Mechbreeder</label>
<description>Pawns with this gene are able to birth mechanoids unharmed.</description>
<iconPath>World/WorldObjects/Expanding/Mechanoids</iconPath>
<displayOrderInCategory>51</displayOrderInCategory>
<displayCategory>Reproduction</displayCategory>
</GeneDef>
<GeneDef>
<defName>rjw_genes_pussyhealer</defName>
<label>Pussy Healer</label>
<labelShortAdj>pussyhealer</labelShortAdj>
<description>Carriers of this gene are able use vaginal sex to tend to others wounds.</description>
<iconPath>UI/Icons/Genes/Gene_Coagulate</iconPath>
<displayCategory>Ability</displayCategory>
<abilities>
<li>Coagulate</li>
</abilities>
<descriptionHyperlinks>
<AbilityDef>Coagulate</AbilityDef>
</descriptionHyperlinks>
<biostatMet>-1</biostatMet>
<minAgeActive>3</minAgeActive>
<symbolPack>
<suffixSymbols>
<li><symbol>life</symbol></li>
<li><symbol>clotter</symbol></li>
<li><symbol>tender</symbol></li>
</suffixSymbols>
</symbolPack>
</GeneDef>
</Defs>

View file

@ -14,5 +14,6 @@ namespace shabe_genesaddons
public static readonly GeneDef rjw_genes_mechbreeder;
public static readonly GeneDef rjw_genes_insectincubator;
public static readonly GeneDef rjw_genes_insectbreeder;
public static readonly GeneDef rjw_genes_pussyhealer;
}
}

View file

@ -36,6 +36,15 @@ namespace shabe_genesaddons
return pawn.genes.HasGene(GeneDefOf.rjw_genes_insectbreeder);
}
public static bool isPussyHealer(Pawn pawn)
{
if (pawn.genes == null)
{
return false;
}
return pawn.genes.HasGene(GeneDefOf.rjw_genes_pussyhealer);
}
public static float MaxEggSizeMul(Pawn pawn)
{
float MaxEggSize = 1;

View file

@ -1 +1 @@
ff74a59b31c039c8864c2dee676c22b8a9c415ad
c1c0f4fe54bc76d32a3a02d0a8c80a72c6c5e818