This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-08-14 21:07:08 +08:00
parent c074a5958a
commit 4e036a5279
9 changed files with 355 additions and 1 deletions

View File

@ -72,6 +72,77 @@
</descriptionHyperlinks>
</RecipeDef>
<RecipeDef ParentName="Milian_GestatingRecipe_BaseI">
<defName>Milian_Mechanoid_FarmII</defName>
<label>Gestate Farm II</label>
<description>Gestate a Milian modeled Farm II.</description>
<researchPrerequisite>Milira_MilianTech_Gestator</researchPrerequisite>
<ingredients Inherit="False">
<li>
<filter>
<thingDefs>
<li>Milira_SunPlateSteel</li>
</thingDefs>
</filter>
<count>55</count>
</li>
<li>
<filter>
<thingDefs>
<li>Plasteel</li>
</thingDefs>
</filter>
<count>35</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SplendidSteel</li>
</thingDefs>
</filter>
<count>165</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SolarCrystal</li>
</thingDefs>
</filter>
<count>4</count>
</li>
<li>
<filter>
<thingDefs>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>6</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_FeatherThread</li>
</thingDefs>
</filter>
<count>85</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_MilianReactor</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<products>
<Milian_Mechanoid_FarmII>1</Milian_Mechanoid_FarmII>
</products>
<descriptionHyperlinks>
<ThingDef>Milian_Mechanoid_FarmII</ThingDef>
</descriptionHyperlinks>
</RecipeDef>
<RecipeDef ParentName="BaseMechanoidResurrectionRecipe">
<defName>Milira_ResurrectMilian_Farm</defName>
<label>Resurrect Milian (Farm)</label>
@ -145,6 +216,7 @@
<fixedIngredientFilter>
<thingDefs>
<li>Corpse_Milian_Mechanoid_FarmI</li>
<li>Corpse_Milian_Mechanoid_FarmII</li>
</thingDefs>
</fixedIngredientFilter>
</RecipeDef>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<HediffDef>
<defName>Milian_ClassHediff_Farm</defName>
<label>Chessman: Farm</label>
<hediffClass>HediffWithComps</hediffClass>
<isBad>false</isBad>
<maxSeverity>1</maxSeverity>
<initialSeverity>0.1</initialSeverity>
<everCurableByItem>false</everCurableByItem>
<defaultLabelColor>(240, 240, 0)</defaultLabelColor>
<description>Grants the power of a Farmer.</description>
<comps>
<li Class="HediffCompProperties_DisappearsOnDeath"/>
</comps>
<stages>
<li>
<minSeverity>0.01</minSeverity>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>0.05</offset>
</li>
</capMods>
<statOffsets>
<WorkSpeedGlobal>0.10</WorkSpeedGlobal>
</statOffsets>
</li>
<li>
<minSeverity>0.25</minSeverity>
<label>Tuning I</label>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>0.8</offset>
</li>
</capMods>
<statOffsets>
<WorkSpeedGlobal>0.2</WorkSpeedGlobal>
</statOffsets>
</li>
<li>
<minSeverity>0.50</minSeverity>
<label>Tuning II</label>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>0.12</offset>
</li>
</capMods>
<statOffsets>
<WorkSpeedGlobal>0.3</WorkSpeedGlobal>
</statOffsets>
</li>
<li>
<minSeverity>0.75</minSeverity>
<label>Tuning III</label>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>0.2</offset>
</li>
</capMods>
<statOffsets>
<WorkSpeedGlobal>0.45</WorkSpeedGlobal>
</statOffsets>
</li>
<li>
<minSeverity>1.0</minSeverity>
<label>Tuning IV</label>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>0.32</offset>
</li>
</capMods>
<statOffsets>
<WorkSpeedGlobal>0.65</WorkSpeedGlobal>
</statOffsets>
</li>
</stages>
</HediffDef>
</Defs>

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- 士兵-完成 -->
<!-- <HediffGiverSetDef>
<defName>Milian_ClassHediffInitial_Pawn</defName>
<hediffGivers>
<li Class="HediffGiver_Birthday">
<hediff>Milian_ClassHediff_Pawn</hediff>
<ageFractionChanceCurve>
<points>
<li>(0, 1.0)</li>
</points>
</ageFractionChanceCurve>
<partsToAffect>
<li>Milian_Brain</li>
</partsToAffect>
<averageSeverityPerDayBeforeGeneration>1</averageSeverityPerDayBeforeGeneration>
</li>
</hediffGivers>
</HediffGiverSetDef> -->
<HediffGiverSetDef>
<defName>Milian_ClassHediffMaintain_Farm</defName>
<hediffGivers>
<li Class="AncotLibrary.HediffGiver_KeepHediff">
<hediff>Milian_ClassHediff_Farm</hediff>
<severityAmount>0.1</severityAmount>
<mtbHours>1</mtbHours>
<partsToAffect>
<li>Milian_Brain</li>
</partsToAffect>
</li>
</hediffGivers>
</HediffGiverSetDef>
<HediffGiverSetDef>
<defName>Milian_HediffInitial_FloatUnit</defName>
<hediffGivers>
<li Class="HediffGiver_Birthday">
<hediff>Milian_FloatUnit</hediff>
<ageFractionChanceCurve>
<points>
<li>(0, 1.0)</li>
</points>
</ageFractionChanceCurve>
<!-- <partsToAffect>
<li>Milian_Brain</li>
</partsToAffect> -->
<averageSeverityPerDayBeforeGeneration>1</averageSeverityPerDayBeforeGeneration>
</li>
</hediffGivers>
</HediffGiverSetDef>
</Defs>

View File

@ -1,8 +1,74 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef Name="Milira_MilianBase_Farm" ParentName="Milira_BaseMilianWalkerA" Abstract="true">
<tools>
<li>
<label>left fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>6.0</power>
<cooldownTime>1.6</cooldownTime>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li>
<label>right fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>6.0</power>
<cooldownTime>1.6</cooldownTime>
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
<race>
<body>Milian_Body</body>
<soundMeleeHitPawn>Pawn_Melee_MechanoidBash_HitPawn</soundMeleeHitPawn>
<soundMeleeHitBuilding>Pawn_Melee_MechanoidBash_HitBuilding</soundMeleeHitBuilding>
<soundMeleeMiss>Pawn_Melee_Punch_Miss</soundMeleeMiss>
<hediffGiverSets>
<!-- <li>Milian_ClassHediffInitial_Pawn</li> -->
<li>Milian_ClassHediffMaintain_Farm</li>
</hediffGiverSets>
</race>
<comps>
<li Class="Milira.CompProperties_PromotionGraphic">
<drawAdditionalGraphicDefault>false</drawAdditionalGraphicDefault>
<floatAmplitude>0.15</floatAmplitude>
<floatSpeed>0.1</floatSpeed>
<flickerSpeed>0.1</flickerSpeed>
<altitudeLayer>Skyfaller</altitudeLayer>
<graphicData>
<texPath>Milira/Effect/Promotion/Promotion_Knight</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
<drawOffset>(0,0,0.75)</drawOffset>
</graphicData>
</li>
<li Class="Milira.CompProperties_GainHediffSpawn">
<hediffDef>Milian_ClassHediff_Farm</hediffDef>
</li>
<!--<li Class="Milira.CompProperties_TargetableWeapon">
<compClass>Milira.CompTargetableWeapon</compClass>
<ignoreQuestLodgerPawns>true</ignoreQuestLodgerPawns>
</li>-->
</comps>
</ThingDef>
<ThingDef Name="Milira_MilianBase_FarmII" ParentName="Milira_MilianBase_Farm" Abstract="true">
<comps>
<li Class="Milira.CompProperties_TargetableWeapon">
<compClass>Milira.CompTargetableWeapon</compClass>
<ignoreQuestLodgerPawns>true</ignoreQuestLodgerPawns>
</li>
</comps>
</ThingDef>
<!--龙鸣I型===========================================================================================================================-->
<ThingDef ParentName="Milira_MilianBase_Pawn">
<ThingDef ParentName="Milira_MilianBase_Farm">
<defName>Milian_Mechanoid_FarmI</defName>
<label>Farm I</label>
<description>Milian the farm I type.\n\nCan't equipe any weapon.</description>
@ -39,4 +105,43 @@
<techHediffsMoney>9999~9999</techHediffsMoney>
</PawnKindDef>
<!--龙鸣II型===========================================================================================================================-->
<ThingDef ParentName="Milira_MilianBase_FarmII">
<defName>Milian_Mechanoid_FarmII</defName>
<label>Farm II</label>
<description>Milian the farm II type.\n\nCan equipe ranged weapon.</description>
<descriptionHyperlinks>
<ThingDef>Milian_Lining</ThingDef>
</descriptionHyperlinks>
<statBases>
<MoveSpeed>4.25</MoveSpeed>
<MarketValue>800</MarketValue>
<ArmorRating_Blunt>0.1</ArmorRating_Blunt>
<ArmorRating_Sharp>0.1</ArmorRating_Sharp>
<BandwidthCost MayRequire="Ludeon.Rimworld.Biotech">2</BandwidthCost>
</statBases>
<race>
<baseHealthScale>1.2</baseHealthScale>
</race>
<comps>
</comps>
<uiIconPath>Milian/Mechanoid_uiIcon/PawnI</uiIconPath>
</ThingDef>
<PawnKindDef ParentName="BaseMilianKind_Mechanoid">
<defName>Milian_Mechanoid_FarmII</defName>
<label>Farm II</label>
<race>Milian_Mechanoid_FarmII</race>
<combatPower>90</combatPower>
<apparelRequired>
<li>Milian_Lining</li>
</apparelRequired>
<weaponMoney>9999~9999</weaponMoney>
<weaponTags>
<li>Milira_PlasmaPistol</li>
</weaponTags>
<techHediffsChance>1</techHediffsChance>
<techHediffsMoney>9999~9999</techHediffsMoney>
</PawnKindDef>
</Defs>

View File

@ -11,6 +11,7 @@
<xpath>Defs/ThingDef[defName="Milian_Lining"]/comps/li/targetableMilianPawnkinds</xpath>
<value>
<li>Milian_Mechanoid_FarmI</li>
<li>Milian_Mechanoid_FarmII</li>
</value>
</li>
</operations>
@ -27,6 +28,7 @@
<xpath>Defs/ThingDef[defName="Milian_Gestator"]/recipes</xpath>
<value>
<li>Milian_Mechanoid_FarmI</li>
<li>Milian_Mechanoid_FarmII</li>
<li>Milira_ResurrectMilian_Farm</li>
</value>
</li>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
<!-- EN: 执子:农夫 -->
<Milian_ClassHediff_Farm.label>执子:农夫</Milian_ClassHediff_Farm.label>
<!-- EN: 赋予「农夫」权能。 -->
<Milian_ClassHediff_Farm.description>赋予「农夫」权能。</Milian_ClassHediff_Farm.description>
<Milian_ClassHediff_Farm.stages.1.label>调谐I</Milian_ClassHediff_Farm.stages.1.label>
<Milian_ClassHediff_Farm.stages.2.label>调谐II</Milian_ClassHediff_Farm.stages.2.label>
<Milian_ClassHediff_Farm.stages.3.label>调谐III</Milian_ClassHediff_Farm.stages.3.label>
<Milian_ClassHediff_Farm.stages.4.label>调谐IV</Milian_ClassHediff_Farm.stages.4.label>
</LanguageData>

View File

@ -3,5 +3,6 @@
<!-- EN: 农民I型 -->
<Milian_Mechanoid_FarmI.label>农民I型</Milian_Mechanoid_FarmI.label>
<Milian_Mechanoid_FarmII.label>农民II型</Milian_Mechanoid_FarmII.label>
</LanguageData>

View File

@ -8,6 +8,13 @@
<!-- EN: Gestating mech. -->
<Milian_Mechanoid_FarmI.jobString>培育机械体中。</Milian_Mechanoid_FarmI.jobString>
<!-- EN: 培育士兵I型 -->
<Milian_Mechanoid_FarmII.label>培育农民II型</Milian_Mechanoid_FarmII.label>
<!-- EN: 培育一个型号为士兵I型的米莉安。 -->
<Milian_Mechanoid_FarmII.description>培育一个型号为农民II型的米莉安。</Milian_Mechanoid_FarmII.description>
<!-- EN: Gestating mech. -->
<Milian_Mechanoid_FarmII.jobString>培育机械体中。</Milian_Mechanoid_FarmII.jobString>
<!-- EN: 复活米莉安:士兵 -->
<Milira_ResurrectMilian_Farm.label>复活米莉安:农民</Milira_ResurrectMilian_Farm.label>
<!-- EN: 复活一个身体尚未被完全摧毁的,职阶为士兵的己方米莉安。 -->

View File

@ -9,5 +9,14 @@
<Milian_Mechanoid_FarmI.tools.left_fist.label>左拳</Milian_Mechanoid_FarmI.tools.left_fist.label>
<!-- EN: right fist -->
<Milian_Mechanoid_FarmI.tools.right_fist.label>右拳</Milian_Mechanoid_FarmI.tools.right_fist.label>
<!-- EN: 士兵I型 -->
<Milian_Mechanoid_FarmII.label>农民II型</Milian_Mechanoid_FarmII.label>
<!-- EN: 型号为士兵I型的米莉安。\n\n可以装备远程武器。 -->
<Milian_Mechanoid_FarmII.description>型号为农民II型的米莉安。\n\n无法装备武器。</Milian_Mechanoid_FarmII.description>
<!-- EN: left fist -->
<Milian_Mechanoid_FarmII.tools.left_fist.label>左拳</Milian_Mechanoid_FarmII.tools.left_fist.label>
<!-- EN: right fist -->
<Milian_Mechanoid_FarmII.tools.right_fist.label>右拳</Milian_Mechanoid_FarmII.tools.right_fist.label>
</LanguageData>