hucow changes

This commit is contained in:
c0ffee12 2021-08-02 11:55:46 -07:00
parent 064871641c
commit 5e807217bc
21 changed files with 373 additions and 23 deletions

View file

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<AbilityDef>
<defName>ConvertToHucow</defName>
<label>convert to hucow</label>
<description>Multiply this pawn's lactation duration and amplify their production for as long as they are lactating.</description>
<jobDef>CastAbilityOnThingMelee</jobDef>
<iconPath>UI/Abilities/WorkDrive</iconPath>
<warmupMoteSocialSymbol>UI/Issues/Lactating</warmupMoteSocialSymbol>
<stunTargetWhileCasting>True</stunTargetWhileCasting>
<showPsycastEffects>False</showPsycastEffects>
<displayGizmoWhileUndrafted>True</displayGizmoWhileUndrafted>
<disableGizmoWhileUndrafted>False</disableGizmoWhileUndrafted>
<hotKey>Misc12</hotKey>
<uiOrder>4</uiOrder>
<warmupStartSound>WorkDrive_Warmup</warmupStartSound>
<statBases>
<Ability_Duration>3000</Ability_Duration>
</statBases>
<verbProperties>
<verbClass>Verb_CastAbilityTouch</verbClass>
<drawAimPie>False</drawAimPie>
<range>-1</range>
<warmupTime>3.0</warmupTime>
<targetParams>
<canTargetAnimals>false</canTargetAnimals>
<canTargetSelf>true</canTargetSelf>
<canTargetBuildings>false</canTargetBuildings>
<canTargetMechs>false</canTargetMechs>
<onlyTargetColonists>true</onlyTargetColonists>
</targetParams>
</verbProperties>
<comps>
<li Class="CompProperties_AbilityGiveHediff">
<compClass>CompAbilityEffect_GiveHediff</compClass>
<hediffDef>Hucow</hediffDef>
<applicableToMechs>False</applicableToMechs>
</li>
<li Class="CRIALactation.CompProperties_AbilityConvertHucow" />
</comps>
</AbilityDef>
</Defs>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<HediffDef ParentName="RoleStatBuff">
<defName>Hucow</defName>
<label>Hucow</label>
<description>This person has been converted to a hucow thanks to someone using the convert to hucow ability. As a result, lactation production speed and yield have been increased, but work and movement speed have been decreased.</description>
<hediffClass>HediffWithComps</hediffClass>
<comps>
<li Class="HediffCompProperties_DisappearsOnDeath" />
<li Class="CRIALactation.HediffCompProperties_StopOnceNotLactating" />
</comps>
<isBad>false</isBad>
<stages>
<li>
<statFactors>
<MilkProductionYield>3.75</MilkProductionYield>
<MilkProductionSpeed>0.5</MilkProductionSpeed>
<WorkSpeedGlobal>0.25</WorkSpeedGlobal>
<MoveSpeed>0.6</MoveSpeed>
</statFactors>
</li>
</stages>
</HediffDef>
</Defs>

View file

@ -20,7 +20,7 @@
<li>Lactating_Essential</li>
</li>
<li>
<li>IdeoRole_Hucow</li>
<li>IdeoRole_HucowHandler</li>
</li>
</requireOne>
<generalRules>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--
<PreceptDef ParentName="PreceptRoleMultiBase">
<defName>IdeoRole_Hucow</defName>
<label>hucow</label>
@ -28,4 +29,102 @@
<li>Hucow</li>
</roleTags>
</PreceptDef>
-->
<PreceptDef ParentName="PreceptRoleSingleBase">
<defName>IdeoRole_HucowHandler</defName>
<label>hucow handler</label>
<description>A special ideoligious status which can convert lactating pawns to hucows, increasing their lactation yield at the cost of their work and movement speed.</description>
<iconPath>UI/Roles/SpecialistMelee</iconPath>
<nameMaker>NamerRoleMoralist</nameMaker>
<roleTags>
<li>HucowHandler</li>
</roleTags>
<roleRequirements>
<li Class="RoleRequirement_SameIdeo">
<labelKey>RoleRequirementLabelSameIdeo</labelKey>
</li>
</roleRequirements>
<roleApparelRequirements>
<li>
<requirement>
<bodyPartGroupsMatchAny>
<li>UpperHead</li>
<li>FullHead</li>
</bodyPartGroupsMatchAny>
<requiredDefs>
<li>Apparel_Headwrap</li>
</requiredDefs>
</requirement>
</li>
<li>
<requirement>
<bodyPartGroupsMatchAny>
<li>UpperHead</li>
<li>FullHead</li>
</bodyPartGroupsMatchAny>
<requiredDefs>
<li>Apparel_Broadwrap</li>
</requiredDefs>
</requirement>
</li>
<li>
<requirement>
<bodyPartGroupsMatchAny>
<li>Torso</li>
<li>Neck</li>
<li>Shoulders</li>
<li>Arms</li>
<li>Legs</li>
</bodyPartGroupsMatchAny>
<requiredDefs>
<li>Apparel_Robe</li>
</requiredDefs>
</requirement>
</li>
<li>
<requirement>
<bodyPartGroupsMatchAny>
<li>UpperHead</li>
</bodyPartGroupsMatchAny>
<requiredDefs>
<li>Apparel_HatHood</li>
</requiredDefs>
</requirement>
</li>
<li>
<requirement>
<bodyPartGroupsMatchAny>
<li>UpperHead</li>
</bodyPartGroupsMatchAny>
<requiredDefs>
<li>Apparel_BowlerHat</li>
</requiredDefs>
</requirement>
</li>
<li MayRequire="Ludeon.RimWorld.Royalty">
<requirement>
<bodyPartGroupsMatchAny>
<li>Torso</li>
</bodyPartGroupsMatchAny>
<requiredTags>
<li>Cape</li>
</requiredTags>
</requirement>
</li>
</roleApparelRequirements>
<roleApparelRequirementCountCurve>
<points>
<li>(0, 1)</li>
<li>(1, 1)</li>
</points>
</roleApparelRequirementCountCurve>
<requiredMemes>
<li>Hucow</li>
</requiredMemes>
<grantedAbilities>
<li>ConvertToHucow</li>
</grantedAbilities>
<displayOrderInImpact>2</displayOrderInImpact>
</PreceptDef>
</Defs>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<StatDef>
<defName>MilkProductionSpeed</defName>
<label>milk production speed multiplier</label>
<minValue>0.001</minValue>
<category>BasicsPawn</category>
<toStringStyle>PercentZero</toStringStyle>
<hideAtValue>1</hideAtValue>
<defaultBaseValue>1</defaultBaseValue>
<showOnAnimals>false</showOnAnimals>
<showOnMechanoids>false</showOnMechanoids>
<displayPriorityInCategory>10000</displayPriorityInCategory>
</StatDef>
<StatDef>
<defName>MilkProductionYield</defName>
<label>milk production yield multiplier</label>
<toStringStyle>PercentZero</toStringStyle>
<minValue>1</minValue>
<category>BasicsPawn</category>
<hideAtValue>1</hideAtValue>
<defaultBaseValue>1</defaultBaseValue>
<showOnAnimals>false</showOnAnimals>
<showOnMechanoids>false</showOnMechanoids>
<displayPriorityInCategory>10001</displayPriorityInCategory>
</StatDef>
</Defs>