普通的修理包

This commit is contained in:
2025-07-24 13:49:45 +08:00
parent 979eded2db
commit a02373059d
10 changed files with 269 additions and 44 deletions

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="MechSerumBase">
<defName>WULA_MechRepairKit</defName>
<label>机械乌拉修理套件</label>
<description>一种一次性使用的堕落乌拉帝国修理套件,专门用来完全修复机械乌拉。</description>
<graphicData>
<texPath>Things/Item/Special/MechSerumHealer</texPath> <!-- Using original texture for now -->
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<stackLimit>10</stackLimit>
<statBases>
<MarketValue>1500</MarketValue> <!-- Slightly higher value -->
</statBases>
<thingCategories>
<li>Drugs</li>
</thingCategories>
<tradeability>Sellable</tradeability>
<comps>
<li Class="CompProperties_UseEffect">
<compClass>WulaFallenEmpire.CompUseEffect_FixAllHealthConditions</compClass>
</li>
<li Class="CompProperties_UseEffectPlaySound">
<soundOnUsed>MechSerumUsed</soundOnUsed>
</li>
<li Class="CompProperties_UseEffectDestroySelf" />
</comps>
<thingSetMakerTags>
<li>RewardStandardCore</li>
</thingSetMakerTags>
</ThingDef>
<RecipeDef>
<defName>AdministerWULA_MechRepairKit</defName>
<label>施用机械乌拉修理套件</label>
<description>施用一个机械乌拉修理套件,修复乌拉族目标的所有健康状况。</description>
<workerClass>WulaFallenEmpire.Recipe_AdministerWulaMechRepairKit</workerClass> <!-- 更改为自定义的 RecipeWorker -->
<jobString>正在施用机械乌拉修理套件。</jobString>
<workAmount>2500</workAmount> <!-- 增加工作量以适应手术 -->
<workSkill>Medicine</workSkill> <!-- 需要医疗技能 -->
<skillRequirements>
<Medicine>6</Medicine> <!-- 示例:需要医疗技能等级 6 -->
</skillRequirements>
<recipeUsers>
<li>WulaSpecies</li> <!-- 只能在乌拉族上执行 -->
</recipeUsers>
<targetsBodyPart>false</targetsBodyPart> <!-- 仍然作用于整个小人 -->
<anesthetize>false</anesthetize> <!-- 不需要麻醉 -->
<dontShowIfAnyIngredientMissing>true</dontShowIfAnyIngredientMissing>
<!-- 此处无需特定的 surgeryOutcomeEffect因为物品的 CompUseEffect 处理实际治疗 -->
<ingredients>
<li>
<filter>
<thingDefs>
<li>WULA_MechRepairKit</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>WULA_MechRepairKit</li>
</thingDefs>
</fixedIngredientFilter>
<!-- 可选:添加研究前置 -->
<!-- <researchPrerequisite>ComplexMedicines</researchPrerequisite> -->
</RecipeDef>
</Defs>