Files
WulaFallenEmpireRW/1.6/1.6/Defs/HediffDefs/Hediffs_BodyParts_WULA.xml
2026-03-07 11:59:31 +08:00

200 lines
7.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- 关机 -->
<RecipeDef ParentName="SurgeryInstallBodyPartArtificialBase">
<defName>WULA_Shutdown_Synth</defName>
<label>Shutdown</label>
<description>Shut down all systems of this Wula synth to avoid potential risks for a while. A colonist must assist with the shutdown, and powering it back up also requires a colonist.</description>
<jobString>Emergency shutdown.</jobString>
<workAmount>100</workAmount>
<workerClass>Recipe_AddHediff</workerClass>
<hideBodyPartNames>true</hideBodyPartNames>
<targetsBodyPart>false</targetsBodyPart>
<isViolation>true</isViolation>
<researchPrerequisites>
<li>WULA_Shutdown_Technology</li>
</researchPrerequisites>
<uiIconPath>Wula/UI/Commands/WULA_Shutdown_Synth</uiIconPath>
<surgeryOutcomeEffect IsNull="True" />
<!-- Always succeeds -->
<anesthetize>false</anesthetize>
<skillRequirements Inherit="False">
<Medicine>0</Medicine>
</skillRequirements>
<recipeUsers Inherit="False">
<li>WulaSpecies</li> <!-- 只能在乌拉族上执行 -->
</recipeUsers>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<ingredients Inherit="False"/>
<addsHediff>WULA_Shutdown_Synth_Hediff</addsHediff>
</RecipeDef>
<RecipeDef ParentName="FertilitySurgery">
<defName>WULA_Synth_Power_On</defName>
<label>power up</label>
<description>Restart this synth and restore system operation.</description>
<workerClass>Recipe_RemoveHediff</workerClass>
<jobString>Restarting synth.</jobString>
<successfullyRemovedHediffMessage>{0} successfully restarted {1}.</successfullyRemovedHediffMessage>
<uiIconPath>Wula/UI/Commands/WULA_Synth_Power_On</uiIconPath>
<removesHediff>WULA_Shutdown_Synth_Hediff</removesHediff>
<surgeryOutcomeEffect IsNull="True" />
<!-- Always succeeds -->
<anesthetize>false</anesthetize>
<addsHediffOnFailure Inherit="False" />
<ingredients Inherit="False" />
<researchPrerequisites Inherit="False">
<li>WULA_Shutdown_Technology</li>
</researchPrerequisites>
<recipeUsers Inherit="False">
<li>WulaSpecies</li> <!-- 只能在乌拉族上执行 -->
</recipeUsers>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
</RecipeDef>
<HediffDef ParentName="ImplantHediffBase">
<defName>WULA_Shutdown_Synth_Hediff</defName>
<hediffClass>HediffWithComps</hediffClass>
<label>Shutdown</label>
<description>All systems of this mechanical Wula have been shut down—if awakening is needed, assistance from another colonist is required.</description>
<descriptionShort>All systems of this mechanical Wula have been shut down.</descriptionShort>
<!-- <initialSeverity>0.5</initialSeverity> -->
<minSeverity>0.01</minSeverity>
<maxSeverity>1</maxSeverity>
<alwaysShowSeverity>true</alwaysShowSeverity>
<isBad>true</isBad>
<duplicationAllowed>true</duplicationAllowed>
<keepOnBodyPartRestoration>true</keepOnBodyPartRestoration> <!-- true -->
<!-- <defaultInstallPart>Brain</defaultInstallPart> -->
<stages>
<li>
<label>Shutdown</label>
<minSeverity>0</minSeverity>
<capMods>
<li>
<capacity>Consciousness</capacity>
<setMax>0.1</setMax>
</li>
<li>
<capacity>Moving</capacity>
<setMax>0.1</setMax>
</li>
<li>
<capacity>Manipulation</capacity>
<setMax>0.1</setMax>
</li>
</capMods>
</li>
</stages>
</HediffDef>
<!-- 特殊-传送器 -->
<HediffDef ParentName="ImplantHediffBase">
<defName>WULA_AutoJumpdrive</defName>
<label>Micro teleport device</label>
<description>A miniature jumpdrive installed inside Wula Empire Legion synths. It recalls the synth once it reaches its designated combat time.</description>
<spawnThingOnRemoved>WULA_AutoJumpdrive</spawnThingOnRemoved>
<comps>
<li Class="WulaFallenEmpire.HediffCompProperties_DisappearWithEffect">
<disappearsAfterTicks>15000</disappearsAfterTicks>
<showRemainingTime>true</showRemainingTime>
<fleckDef>PsycastAreaEffect</fleckDef>
<fleckScale>2.5</fleckScale>
<dropEquipment>false</dropEquipment>
<destroyCorpse>true</destroyCorpse>
<playSound>true</playSound>
<messageOnDisappear>{0} teleported away from the colony.</messageOnDisappear>
</li>
</comps>
</HediffDef>
<ThingDef Name="WULA_AutoJumpdrive_Thing" ParentName="BodyPartBase">
<defName>WULA_AutoJumpdrive</defName>
<label>Micro teleport device</label>
<description>A miniature jumpdrive installed inside Wula Empire Legion synths. It recalls the synth once it reaches its designated combat time.</description>
<techLevel>Spacer</techLevel>
<graphicData>
<texPath>Things/Item/Health/HealthItem</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>0.80</drawSize>
<color>(189,169,118)</color>
</graphicData>
<statBases>
<MarketValue>400</MarketValue>
</statBases>
<thingCategories>
<li>BodyPartsBionic</li>
</thingCategories>
</ThingDef>
<RecipeDef ParentName="SurgeryInstallImplantBase">
<defName>Install_WULA_AutoJumpdrive</defName>
<label>Install Mini-Jumpdrive</label>
<description>Install Mini-Jumpdrive</description>
<jobString>Installing Mini-Jumpdrive.</jobString>
<ingredients>
<li>
<filter>
<thingDefs>
<li>WULA_AutoJumpdrive</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>WULA_AutoJumpdrive</li>
</thingDefs>
</fixedIngredientFilter>
<appliedOnFixedBodyParts>
<li>Torso</li>
</appliedOnFixedBodyParts>
<addsHediff>WULA_AutoJumpdrive</addsHediff>
</RecipeDef>
<HediffDef ParentName="ImplantHediffBase">
<defName>WULA_AutoJumpdrive_Week</defName>
<label>Micro teleport device</label>
<description>A miniature jumpdrive installed inside Wula Empire Legion synths. It recalls the synth once it reaches its designated combat time.</description>
<spawnThingOnRemoved>WULA_AutoJumpdrive</spawnThingOnRemoved>
<comps>
<li Class="WulaFallenEmpire.HediffCompProperties_DisappearWithEffect">
<disappearsAfterTicks>420000</disappearsAfterTicks>
<showRemainingTime>true</showRemainingTime>
<fleckDef>PsycastAreaEffect</fleckDef>
<fleckScale>2.5</fleckScale>
<dropEquipment>false</dropEquipment>
<destroyCorpse>true</destroyCorpse>
<playSound>true</playSound>
<messageOnDisappear>{0} teleported away from the colony.</messageOnDisappear>
</li>
</comps>
</HediffDef>
<ThingDef ParentName="WULA_AutoJumpdrive_Thing">
<defName>WULA_AutoJumpdrive_Week</defName>
</ThingDef>
<RecipeDef ParentName="SurgeryInstallImplantBase">
<defName>Install_WULA_AutoJumpdrive_Week</defName>
<label>Install Mini-Jumpdrive</label>
<description>Install Mini-Jumpdrive</description>
<jobString>Installing Mini-Jumpdrive.</jobString>
<ingredients>
<li>
<filter>
<thingDefs>
<li>WULA_AutoJumpdrive_Week</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>WULA_AutoJumpdrive_Week</li>
</thingDefs>
</fixedIngredientFilter>
<appliedOnFixedBodyParts>
<li>Torso</li>
</appliedOnFixedBodyParts>
<addsHediff>WULA_AutoJumpdrive_Week</addsHediff>
</RecipeDef>
</Defs>