2025-7-24

This commit is contained in:
2025-07-24 17:59:10 +08:00
parent b6fb9dfd4c
commit 1b11362c96
5 changed files with 247 additions and 422 deletions

View File

@@ -516,8 +516,71 @@
<!-- ==================== 热情训练器 ==================== -->
<ThingDef Abstract="True" Name="WULA_Syhth_Passion_Trainer">
<!-- <defName>WULA_Syhth_Trainer</defName>
<label>乌拉帝国技能预设</label> -->
<description>一个可以人为调整人格倾向的数据包,使得乌拉帝国合成人在特定领域激发热情,需要通过乌拉帝国合成人特有的神经接口接入,其他种族无法使用。\n\n机械乌拉的存储空间有限每一次使用数据包都会使得任意其他技能失去热情。</description>
<thingClass>ThingWithComps</thingClass>
<category>Item</category>
<drawerType>MapMeshOnly</drawerType>
<techLevel>Archotech</techLevel>
<useHitPoints>true</useHitPoints>
<pathCost>14</pathCost>
<selectable>true</selectable>
<altitudeLayer>Item</altitudeLayer>
<tickerType>Never</tickerType>
<alwaysHaulable>true</alwaysHaulable>
<resourceReadoutPriority>Middle</resourceReadoutPriority>
<thingCategories>
<li>NeurotrainersPsycast</li>
</thingCategories>
<statBases>
<MaxHitPoints>100</MaxHitPoints>
<Beauty>-4</Beauty>
<Mass>1</Mass>
<MarketValue>5</MarketValue>
<DeteriorationRate>0.1</DeteriorationRate>
<WorkToMake>30000</WorkToMake>
</statBases>
<graphicData>
<texPath>Wula/Item/WULA_Syhth_Trainer</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<researchPrerequisites>
<li>WULA_New_Synth_Skill_2_Technology</li>
</researchPrerequisites>
<costList>
<WULA_Charge_Cube>1</WULA_Charge_Cube>
</costList>
<recipeMaker>
<unfinishedThingDef>UnfinishedHealthItemProsthetic</unfinishedThingDef>
<recipeUsers>
<li>WULA_Synth_Server</li>
</recipeUsers>
<useIngredientsForColor>false</useIngredientsForColor>
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
<workSkill>Crafting</workSkill>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Machining</soundWorking>
<displayPriority>650</displayPriority>
</recipeMaker>
<tradeability>None</tradeability>
<comps>
<li Class="CompProperties_Forbiddable"/>
<li Class="CompProperties_UseEffectDestroySelf" />
<!-- <li Class="CompProperties_Usable">
<useJob>UseNeurotrainer</useJob>
<useLabel>123</useLabel>
<showUseGizmo>true</showUseGizmo>
</li>
<li Class="CompProperties_UseEffect_LearnSkill">
<skill>Shooting</skill>
</li> -->
</comps>
</ThingDef>
<!-- Melee -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Melee</defName>
<label>乌拉帝国兴趣度训练包(格斗)</label>
<comps>
@@ -533,13 +596,12 @@
<!-- 指定获得的兴趣度等级。可以是 Minor (小火,官方翻译好奇) 或 Major (大火,官方翻译狂热) -->
<passionGained>Major</passionGained>
<!-- 指定随机失去兴趣度的技能数量范围。格式为 min~max -->
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Shooting -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Shooting</defName>
<label>乌拉帝国兴趣度训练包(射击)</label>
<comps>
@@ -552,13 +614,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Shooting</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Construction -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Construction</defName>
<label>乌拉帝国兴趣度训练包(建造)</label>
<comps>
@@ -571,13 +632,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Construction</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Mining -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Mining</defName>
<label>乌拉帝国兴趣度训练包(采矿)</label>
<comps>
@@ -590,13 +650,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Mining</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Cooking -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Cooking</defName>
<label>乌拉帝国兴趣度训练包(烹饪)</label>
<comps>
@@ -609,13 +668,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Cooking</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Plants -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Plants</defName>
<label>乌拉帝国兴趣度训练包(种植)</label>
<comps>
@@ -628,13 +686,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Plants</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Animals -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Animals</defName>
<label>乌拉帝国兴趣度训练包(驯兽)</label>
<comps>
@@ -647,13 +704,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Animals</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Crafting -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Crafting</defName>
<label>乌拉帝国兴趣度训练包(手工)</label>
<comps>
@@ -666,13 +722,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Crafting</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Artistic -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Artistic</defName>
<label>乌拉帝国兴趣度训练包(艺术)</label>
<comps>
@@ -685,13 +740,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Artistic</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Medicine -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Medicine</defName>
<label>乌拉帝国兴趣度训练包(医疗)</label>
<comps>
@@ -704,13 +758,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Medicine</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Social -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Social</defName>
<label>乌拉帝国兴趣度训练包(社交)</label>
<comps>
@@ -723,13 +776,12 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Social</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
<!-- Intellectual -->
<ThingDef ParentName="WULA_Syhth_Trainer">
<ThingDef ParentName="WULA_Syhth_Passion_Trainer">
<defName>WULA_Syhth_Passion_Trainer_Intellectual</defName>
<label>乌拉帝国兴趣度训练包(智识)</label>
<comps>
@@ -742,9 +794,8 @@
<li Class="WulaFallenEmpire.CompProperties_UseEffect_PassionTrainer">
<skill>Intellectual</skill>
<passionGained>Major</passionGained>
<passionsLostRange>0~1</passionsLostRange>
<passionsLostRange>1~1</passionsLostRange>
</li>
</comps>
</ThingDef>
</Defs>

View File

@@ -1,71 +0,0 @@
<?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>