Compare commits

...

1 Commits

Author SHA1 Message Date
ProjectKoi-Kalo\Kalo
19db016772 OilTransfusion 2024-08-28 00:13:44 +08:00
3 changed files with 46 additions and 4 deletions

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<RecipeDef ParentName="PN_Surgery">
<defName>PN_EmergencyOilTransfusion</defName>
<label>Emergency Oil Transfusion</label>
<description>Use Pnl Fuel to reduce the effects of oil loss.</description>
<jobString>performing oil transfusion on TargetA.</jobString>
<workAmount>800</workAmount>
<hideBodyPartNames>true</hideBodyPartNames>
<targetsBodyPart>false</targetsBodyPart>
<anesthetize>false</anesthetize>
<workerClass>Recipe_BloodTransfusion</workerClass>
<surgeryOutcomeEffect IsNull="True" /> <!-- Always succeeds -->
<ingredients>
<li>
<filter>
<thingDefs>
<li>PN_AutomatonFuel</li>
</thingDefs>
</filter>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>PN_AutomatonFuel</li>
</thingDefs>
</fixedIngredientFilter>
</RecipeDef>
</Defs>

View File

@ -15,4 +15,8 @@
<PN_RemoveAutoRepairSystem.description>移除自动修复系统</PN_RemoveAutoRepairSystem.description> <PN_RemoveAutoRepairSystem.description>移除自动修复系统</PN_RemoveAutoRepairSystem.description>
<PN_RemoveAutoRepairSystem.jobString>移除自动修复系统中</PN_RemoveAutoRepairSystem.jobString> <PN_RemoveAutoRepairSystem.jobString>移除自动修复系统中</PN_RemoveAutoRepairSystem.jobString>
<PN_EmergencyOilTransfusion.label>紧急输油</PN_EmergencyOilTransfusion.label>
<PN_EmergencyOilTransfusion.description>使用Pnl燃料来减少漏油对姬关人形的影响。</PN_EmergencyOilTransfusion.description>
<PN_EmergencyOilTransfusion.jobString>正在对TargetA进行紧急输油。</PN_EmergencyOilTransfusion.jobString>
</LanguageData> </LanguageData>

View File

@ -4,10 +4,17 @@
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationAdd">
<xpath>/Defs/PawnKindDef[defName="PN_Testsubject"]</xpath> <xpath>/Defs/PawnKindDef[defName="PN_Testsubject"]</xpath>
<value> <value>
<techHediffsRequired> <techHediffsRequired>
<li>PN_ExperimentalEngineCore</li> <li>PN_ExperimentalEngineCore</li>
<li>PN_AutoRepairSystem</li> <li>PN_AutoRepairSystem</li>
</techHediffsRequired> </techHediffsRequired>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Paniel_Race"]/recipes</xpath>
<value>
<li>PN_EmergencyOilTransfusion</li>
</value> </value>
</Operation> </Operation>