2025-7-21
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,62 +0,0 @@
|
|||||||
# 修复乌拉能量喂食系统需求文档
|
|
||||||
|
|
||||||
## 介绍
|
|
||||||
|
|
||||||
乌拉堕落帝国模组中的能量喂食系统存在严重问题。当乌拉族进入关机状态需要能量补充时,自定义的 `WULA_IngestEnergy` JobDriver 出现了任务循环、物品转移错误和错误执行者等问题。本文档定义了修复这些问题的需求。
|
|
||||||
|
|
||||||
## 需求
|
|
||||||
|
|
||||||
### 需求 1:修复任务重复创建问题
|
|
||||||
|
|
||||||
**用户故事:** 作为玩家,我希望当乌拉族需要能量补充时,只有一个殖民者执行喂食任务,而不是多个殖民者同时尝试执行相同任务。
|
|
||||||
|
|
||||||
#### 验收标准
|
|
||||||
|
|
||||||
1. 当乌拉族进入关机状态时,系统应该只创建一个 `WULA_IngestEnergy` 任务
|
|
||||||
2. 当一个殖民者已经预留了能量核心时,其他殖民者不应该创建相同的任务
|
|
||||||
3. 当任务失败时,系统应该正确清理预留状态,允许其他殖民者重新尝试
|
|
||||||
4. 系统不应该在单个tick内创建多个相同的任务
|
|
||||||
|
|
||||||
### 需求 2:修复物品转移逻辑
|
|
||||||
|
|
||||||
**用户故事:** 作为玩家,我希望殖民者能够正确地拾取和转移能量核心,而不会出现"物品不存在"的错误。
|
|
||||||
|
|
||||||
#### 验收标准
|
|
||||||
|
|
||||||
1. 当殖民者执行 `WULA_IngestEnergy` 任务时,应该能够成功拾取目标能量核心
|
|
||||||
2. 当能量核心被其他殖民者拾取或消耗时,当前任务应该正确失败并清理状态
|
|
||||||
3. 当能量核心不存在或无法访问时,任务应该立即失败而不是进入循环
|
|
||||||
4. 物品转移应该使用正确的 Toil 方法,确保物品状态一致性
|
|
||||||
|
|
||||||
### 需求 3:确保正确的任务执行者和目标
|
|
||||||
|
|
||||||
**用户故事:** 作为玩家,我希望殖民者将能量核心喂给需要能量的乌拉族,而不是自己消耗能量核心。
|
|
||||||
|
|
||||||
#### 验收标准
|
|
||||||
|
|
||||||
1. 当执行 `WULA_IngestEnergy` 任务时,殖民者应该将能量核心给予目标乌拉族
|
|
||||||
2. 能量应该补充到目标乌拉族的 `Need_WulaEnergy` 中,而不是执行者的需求
|
|
||||||
3. 只有目标乌拉族应该从关机状态中恢复,执行者不应该受到影响
|
|
||||||
4. 任务完成后,能量核心应该被正确消耗,目标乌拉族应该获得能量
|
|
||||||
|
|
||||||
### 需求 4:改进任务验证和错误处理
|
|
||||||
|
|
||||||
**用户故事:** 作为玩家,我希望当能量喂食任务遇到问题时,系统能够优雅地处理错误,而不是进入无限循环。
|
|
||||||
|
|
||||||
#### 验收标准
|
|
||||||
|
|
||||||
1. 当目标乌拉族不再需要能量时,任务应该自动取消
|
|
||||||
2. 当能量核心不可用时,任务应该失败并提供适当的错误信息
|
|
||||||
3. 当执行者无法到达目标时,任务应该超时失败
|
|
||||||
4. 系统应该记录详细的调试信息以便问题诊断
|
|
||||||
|
|
||||||
### 需求 5:优化 WorkGiver 逻辑
|
|
||||||
|
|
||||||
**用户故事:** 作为玩家,我希望系统能够智能地分配能量喂食任务,避免资源冲突和重复工作。
|
|
||||||
|
|
||||||
#### 验收标准
|
|
||||||
|
|
||||||
1. WorkGiver 应该检查目标能量核心是否已被其他任务预留
|
|
||||||
2. WorkGiver 应该验证执行者能够到达目标乌拉族和能量核心
|
|
||||||
3. WorkGiver 应该优先选择距离最近的可用能量核心
|
|
||||||
4. WorkGiver 应该正确处理囚犯和殖民者的不同喂食逻辑
|
|
||||||
@@ -106,6 +106,9 @@
|
|||||||
<maxSeverity>1</maxSeverity>
|
<maxSeverity>1</maxSeverity>
|
||||||
</li>
|
</li>
|
||||||
</comps>
|
</comps>
|
||||||
|
<tradeTags>
|
||||||
|
<li>TechHediff</li>
|
||||||
|
</tradeTags>
|
||||||
</ThingDef>
|
</ThingDef>
|
||||||
<HediffDef ParentName="Wula_ImplantHediffBase_T2">
|
<HediffDef ParentName="Wula_ImplantHediffBase_T2">
|
||||||
<defName>WULA_Energy_Furnace_Hediff_Overdrive</defName>
|
<defName>WULA_Energy_Furnace_Hediff_Overdrive</defName>
|
||||||
@@ -193,6 +196,63 @@
|
|||||||
</li>
|
</li>
|
||||||
</comps>
|
</comps>
|
||||||
</HediffDef>
|
</HediffDef>
|
||||||
|
<ThingDef ParentName="BodyPartProstheticMakeableBase">
|
||||||
|
<defName>WULA_Energy_Furnace_Regulator</defName>
|
||||||
|
<label>中央能源炉-调节组件</label>
|
||||||
|
<description>安装于能源炉的特殊改件,能够微调机械乌拉的能量系统,提高能量上限并降低能量消耗速度。</description>
|
||||||
|
<graphicData>
|
||||||
|
<texPath>Things/Item/Health/HealthItem</texPath>
|
||||||
|
<graphicClass>Graphic_Single</graphicClass>
|
||||||
|
</graphicData>
|
||||||
|
<recipeMaker Inherit="False">
|
||||||
|
<researchPrerequisite>WULA_Synth_Addons_2_Technology</researchPrerequisite>
|
||||||
|
<recipeUsers>
|
||||||
|
<li>WULA_Cube_Productor_Energy</li>
|
||||||
|
</recipeUsers>
|
||||||
|
</recipeMaker>
|
||||||
|
<costList>
|
||||||
|
<Steel>200</Steel>
|
||||||
|
<ComponentIndustrial>10</ComponentIndustrial>
|
||||||
|
<WULA_Charge_Cube>5</WULA_Charge_Cube>
|
||||||
|
</costList>
|
||||||
|
<tradeTags>
|
||||||
|
<li>TechHediff</li>
|
||||||
|
</tradeTags>
|
||||||
|
<comps>
|
||||||
|
<li Class="CompProperties_Usable">
|
||||||
|
<compClass>CompUsableImplant</compClass>
|
||||||
|
<useJob>UseItem</useJob>
|
||||||
|
<useLabel>安装中央能源炉调节组件</useLabel>
|
||||||
|
<!-- <userMustHaveHediff>WULA_Addons_Antenna_Hediff_Base</userMustHaveHediff> -->
|
||||||
|
</li>
|
||||||
|
<li Class="CompProperties_UseEffectDestroySelf" />
|
||||||
|
<li Class="CompProperties_UseEffectInstallImplant">
|
||||||
|
<hediffDef>WULA_Energy_Furnace_Hediff_Regulator</hediffDef>
|
||||||
|
<bodyPart>WULA_Energy_Furnace_Bodypart</bodyPart>
|
||||||
|
<canUpgrade>false</canUpgrade>
|
||||||
|
<maxSeverity>1</maxSeverity>
|
||||||
|
</li>
|
||||||
|
</comps>
|
||||||
|
</ThingDef>
|
||||||
|
<HediffDef ParentName="Wula_ImplantHediffBase_T1">
|
||||||
|
<defName>WULA_Energy_Furnace_Hediff_Regulator</defName>
|
||||||
|
<label>调节组件</label>
|
||||||
|
<description>安装于能源炉的特殊改件,提高能量上限并降低能量消耗速度。</description>
|
||||||
|
<!-- <spawnThingOnRemoved>WULA_Energy_Furnace_Regulator</spawnThingOnRemoved> -->
|
||||||
|
<addedPartProps>
|
||||||
|
<partEfficiency>1.0</partEfficiency>
|
||||||
|
</addedPartProps>
|
||||||
|
<stages>
|
||||||
|
<li>
|
||||||
|
<statOffsets> <!-- StatOffset 是加法偏移量,正数增加,负数减少 -->
|
||||||
|
<WulaEnergyMaxLevelOffset>0.5</WulaEnergyMaxLevelOffset>
|
||||||
|
</statOffsets>
|
||||||
|
<statFactors> <!-- StatFactor 是乘法因子,小于 1.0 减少,大于 1.0 增加 -->
|
||||||
|
<WulaEnergyFallRateFactor>0.9</WulaEnergyFallRateFactor>
|
||||||
|
</statFactors>
|
||||||
|
</li>
|
||||||
|
</stages>
|
||||||
|
</HediffDef>
|
||||||
<ThingDef ParentName="BodyPartProstheticMakeableBase">
|
<ThingDef ParentName="BodyPartProstheticMakeableBase">
|
||||||
<defName>WULA_Energy_Furnace_Hunger</defName>
|
<defName>WULA_Energy_Furnace_Hunger</defName>
|
||||||
<label>中央能源炉-偷吃组件</label>
|
<label>中央能源炉-偷吃组件</label>
|
||||||
@@ -228,6 +288,9 @@
|
|||||||
<maxSeverity>1</maxSeverity>
|
<maxSeverity>1</maxSeverity>
|
||||||
</li>
|
</li>
|
||||||
</comps>
|
</comps>
|
||||||
|
<tradeTags>
|
||||||
|
<li>TechHediff</li>
|
||||||
|
</tradeTags>
|
||||||
</ThingDef>
|
</ThingDef>
|
||||||
<HediffDef ParentName="Wula_ImplantHediffBase_T2">
|
<HediffDef ParentName="Wula_ImplantHediffBase_T2">
|
||||||
<defName>WULA_Energy_Furnace_Hediff_Hunger</defName>
|
<defName>WULA_Energy_Furnace_Hediff_Hunger</defName>
|
||||||
@@ -515,7 +578,7 @@
|
|||||||
</recipeUsers>
|
</recipeUsers>
|
||||||
</recipeMaker>
|
</recipeMaker>
|
||||||
</ThingDef>
|
</ThingDef>
|
||||||
<HediffDef ParentName="ImplantHediffBase">
|
<HediffDef ParentName="ImplantHediffBase">
|
||||||
<defName>WULA_Addons_Antenna_Hediff_Base</defName>
|
<defName>WULA_Addons_Antenna_Hediff_Base</defName>
|
||||||
<hediffClass>Hediff_Mechlink</hediffClass>
|
<hediffClass>Hediff_Mechlink</hediffClass>
|
||||||
<label>基础上线链路天线</label>
|
<label>基础上线链路天线</label>
|
||||||
@@ -985,6 +1048,7 @@
|
|||||||
</comps>
|
</comps>
|
||||||
</HediffDef>
|
</HediffDef>
|
||||||
|
|
||||||
|
<!-- 抽魂 -->
|
||||||
<RecipeDef ParentName="SurgeryInstallBodyPartArtificialBase">
|
<RecipeDef ParentName="SurgeryInstallBodyPartArtificialBase">
|
||||||
<defName>WULA_Extract_Soul_Wedge</defName>
|
<defName>WULA_Extract_Soul_Wedge</defName>
|
||||||
<label>提取魂楔</label>
|
<label>提取魂楔</label>
|
||||||
@@ -1071,4 +1135,91 @@
|
|||||||
</li>
|
</li>
|
||||||
</stages>
|
</stages>
|
||||||
</HediffDef>
|
</HediffDef>
|
||||||
|
|
||||||
|
<!-- 背景故事重置 -->
|
||||||
|
<ThingDef ParentName="BodyPartProstheticMakeableBase">
|
||||||
|
<defName>Wula_BackstoryRegeneratorImplant</defName>
|
||||||
|
<label>合成人人格数据包</label>
|
||||||
|
<description>从乌拉帝国上行链路下载的数据包,内含随机的人格数据,机械乌拉在使用后会改变其人格,这会重置它禁止的工作,但是不会重设其热情和特质。\n\n新的人格有可能和旧人格一模一样!</description>
|
||||||
|
<thingClass>ThingWithComps</thingClass>
|
||||||
|
<graphicData>
|
||||||
|
<texPath>Wula/Item/WULA_Syhth_Trainer</texPath>
|
||||||
|
<graphicClass>Graphic_Single</graphicClass>
|
||||||
|
</graphicData>
|
||||||
|
<statBases>
|
||||||
|
<MarketValue>1500</MarketValue>
|
||||||
|
<Mass>0.1</Mass>
|
||||||
|
</statBases>
|
||||||
|
<recipeMaker>
|
||||||
|
<researchPrerequisites Inherit="False">
|
||||||
|
<li>WULA_New_Synth_Skill_Technology</li>
|
||||||
|
</researchPrerequisites>
|
||||||
|
<researchPrerequisite>WULA_Synth_Addons_2_Technology</researchPrerequisite>
|
||||||
|
<skillRequirements>
|
||||||
|
<Crafting>8</Crafting>
|
||||||
|
</skillRequirements>
|
||||||
|
<recipeUsers Inherit="False">
|
||||||
|
<li>WULA_Synth_Server</li>
|
||||||
|
</recipeUsers>
|
||||||
|
</recipeMaker>
|
||||||
|
<costList>
|
||||||
|
<Steel>50</Steel>
|
||||||
|
<ComponentSpacer>1</ComponentSpacer>
|
||||||
|
<WULA_Charge_Cube>1</WULA_Charge_Cube>
|
||||||
|
</costList>
|
||||||
|
<comps>
|
||||||
|
<li Class="CompProperties_Usable">
|
||||||
|
<compClass>CompUsableImplant</compClass>
|
||||||
|
<useJob>UseItem</useJob>
|
||||||
|
<useLabel>使用 {0_label}</useLabel>
|
||||||
|
</li>
|
||||||
|
<li Class="CompProperties_UseEffectInstallImplant">
|
||||||
|
<hediffDef>Wula_RegenerateBackstory</hediffDef>
|
||||||
|
<bodyPart>Brain</bodyPart>
|
||||||
|
</li>
|
||||||
|
<li Class="CompProperties_UseEffectDestroySelf" />
|
||||||
|
</comps>
|
||||||
|
</ThingDef>
|
||||||
|
<HediffDef ParentName="ImplantHediffBase">
|
||||||
|
<defName>Wula_RegenerateBackstory</defName>
|
||||||
|
<label>backstory regenerator</label>
|
||||||
|
<labelNoun>a backstory regenerator</labelNoun>
|
||||||
|
<description>A backstory regenerator is installed.</description>
|
||||||
|
<spawnThingOnRemoved>Wula_BackstoryRegeneratorImplant</spawnThingOnRemoved>
|
||||||
|
<comps>
|
||||||
|
<li Class="WulaFallenEmpire.HediffCompProperties_RegenerateBackstory">
|
||||||
|
<spawnCategories>
|
||||||
|
<li>Wula_Backstory_Categories</li>
|
||||||
|
</spawnCategories>
|
||||||
|
<regenerateChildhood>false</regenerateChildhood>
|
||||||
|
</li>
|
||||||
|
</comps>
|
||||||
|
</HediffDef>
|
||||||
|
<RecipeDef ParentName="SurgeryInstallImplantBase">
|
||||||
|
<defName>InstallWulaBackstoryRegenerator</defName>
|
||||||
|
<label>install backstory regenerator</label>
|
||||||
|
<description>Installs a backstory regenerator.</description>
|
||||||
|
<jobString>Installing backstory regenerator.</jobString>
|
||||||
|
<ingredients>
|
||||||
|
<li>
|
||||||
|
<filter>
|
||||||
|
<thingDefs>
|
||||||
|
<li>Wula_BackstoryRegeneratorImplant</li>
|
||||||
|
</thingDefs>
|
||||||
|
</filter>
|
||||||
|
<count>1</count>
|
||||||
|
</li>
|
||||||
|
</ingredients>
|
||||||
|
<fixedIngredientFilter>
|
||||||
|
<thingDefs>
|
||||||
|
<li>Wula_BackstoryRegeneratorImplant</li>
|
||||||
|
</thingDefs>
|
||||||
|
</fixedIngredientFilter>
|
||||||
|
<appliedOnFixedBodyParts>
|
||||||
|
<li>Brain</li>
|
||||||
|
</appliedOnFixedBodyParts>
|
||||||
|
<addsHediff>Wula_RegenerateBackstory</addsHediff>
|
||||||
|
</RecipeDef>
|
||||||
|
|
||||||
|
<!-- 能量电池 -->
|
||||||
</Defs>
|
</Defs>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<HediffDef>
|
<HediffDef>
|
||||||
<defName>WULA_Shutdown</defName>
|
<defName>WULA_Shutdown</defName>
|
||||||
<label>停机</label>
|
<label>停机</label>
|
||||||
<description>机体能量已完全耗尽,所有非核心功能已下线,需要立刻补充能量。</description>
|
<description>机械乌拉的机体能量已完全耗尽,所有非核心功能已下线,需要立刻补充能量。\n\n如果需要重启机械乌拉,你需要建造一个抢修点或者合成人修复站,可以从事医生职位的殖民者将会把失能的机械乌拉带到修复站,并使用乌拉帝国能源核心重启机械乌拉。</description>
|
||||||
<hediffClass>HediffWithComps</hediffClass>
|
<hediffClass>HediffWithComps</hediffClass>
|
||||||
<isBad>true</isBad>
|
<isBad>true</isBad>
|
||||||
<stages>
|
<stages>
|
||||||
|
|||||||
@@ -1,86 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<Defs>
|
|
||||||
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
<ThingDef ParentName="BodyPartProstheticMakeableBase">
|
|
||||||
=======
|
|
||||||
<ThingDef>
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
<defName>Wula_BackstoryRegeneratorImplant</defName>
|
|
||||||
<label>backstory regenerator</label>
|
|
||||||
<thingClass>ThingWithComps</thingClass>
|
|
||||||
<description>A one-use implant that restructures a person's memories and experiences, effectively giving them a new backstory. The process is unstable and the implant is consumed on use.</description>
|
|
||||||
<statBases>
|
|
||||||
<MarketValue>1500</MarketValue>
|
|
||||||
<Mass>0.1</Mass>
|
|
||||||
</statBases>
|
|
||||||
<recipeMaker>
|
|
||||||
<researchPrerequisite>Prosthetics</researchPrerequisite>
|
|
||||||
<skillRequirements>
|
|
||||||
<Crafting>8</Crafting>
|
|
||||||
</skillRequirements>
|
|
||||||
<recipeUsers>
|
|
||||||
<li>FabricationBench</li>
|
|
||||||
</recipeUsers>
|
|
||||||
</recipeMaker>
|
|
||||||
<costList>
|
|
||||||
<Plasteel>50</Plasteel>
|
|
||||||
<ComponentIndustrial>5</ComponentIndustrial>
|
|
||||||
</costList>
|
|
||||||
<comps>
|
|
||||||
<li Class="CompProperties_Usable">
|
|
||||||
<compClass>CompUsableImplant</compClass>
|
|
||||||
<useJob>UseItem</useJob>
|
|
||||||
<useLabel>使用 {0_label}</useLabel>
|
|
||||||
</li>
|
|
||||||
<li Class="CompProperties_UseEffectInstallImplant">
|
|
||||||
<hediffDef>Wula_RegenerateBackstory</hediffDef>
|
|
||||||
<bodyPart>Brain</bodyPart>
|
|
||||||
</li>
|
|
||||||
<li Class="CompProperties_UseEffectDestroySelf" />
|
|
||||||
</comps>
|
|
||||||
</ThingDef>
|
|
||||||
|
|
||||||
<HediffDef ParentName="ImplantHediffBase">
|
|
||||||
<defName>Wula_RegenerateBackstory</defName>
|
|
||||||
<label>backstory regenerator</label>
|
|
||||||
<labelNoun>a backstory regenerator</labelNoun>
|
|
||||||
<description>A backstory regenerator is installed.</description>
|
|
||||||
<spawnThingOnRemoved>Wula_BackstoryRegeneratorImplant</spawnThingOnRemoved>
|
|
||||||
<comps>
|
|
||||||
<li Class="WulaFallenEmpire.HediffCompProperties_RegenerateBackstory">
|
|
||||||
<spawnCategories>
|
|
||||||
<li>Wula_Backstory_Categories</li>
|
|
||||||
</spawnCategories>
|
|
||||||
<regenerateChildhood>false</regenerateChildhood>
|
|
||||||
</li>
|
|
||||||
</comps>
|
|
||||||
</HediffDef>
|
|
||||||
|
|
||||||
<RecipeDef ParentName="SurgeryInstallImplantBase">
|
|
||||||
<defName>InstallWulaBackstoryRegenerator</defName>
|
|
||||||
<label>install backstory regenerator</label>
|
|
||||||
<description>Installs a backstory regenerator.</description>
|
|
||||||
<jobString>Installing backstory regenerator.</jobString>
|
|
||||||
<ingredients>
|
|
||||||
<li>
|
|
||||||
<filter>
|
|
||||||
<thingDefs>
|
|
||||||
<li>Wula_BackstoryRegeneratorImplant</li>
|
|
||||||
</thingDefs>
|
|
||||||
</filter>
|
|
||||||
<count>1</count>
|
|
||||||
</li>
|
|
||||||
</ingredients>
|
|
||||||
<fixedIngredientFilter>
|
|
||||||
<thingDefs>
|
|
||||||
<li>Wula_BackstoryRegeneratorImplant</li>
|
|
||||||
</thingDefs>
|
|
||||||
</fixedIngredientFilter>
|
|
||||||
<appliedOnFixedBodyParts>
|
|
||||||
<li>Brain</li>
|
|
||||||
</appliedOnFixedBodyParts>
|
|
||||||
<addsHediff>Wula_RegenerateBackstory</addsHediff>
|
|
||||||
</RecipeDef>
|
|
||||||
|
|
||||||
</Defs>
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<defName>WULA_Energy</defName>
|
<defName>WULA_Energy</defName>
|
||||||
<needClass>WulaFallenEmpire.Need_WulaEnergy</needClass>
|
<needClass>WulaFallenEmpire.Need_WulaEnergy</needClass>
|
||||||
<label>能量</label>
|
<label>能量</label>
|
||||||
<description>乌拉帝国的合成人正常活动需要能量维持,否则身体机能将持续恶化,最终导致有机部分不可逆的死亡。\n\n机械乌拉和常规机械体不同,她们只有一种指定的能量接口,只能通过能源核心补充能量,在乌拉帝国编织体工作台制造这种核心。</description>
|
<description>乌拉帝国的合成人正常活动需要能量维持,在缺少能量时将倒地不起,无法进行任何工作。\n\n机械乌拉和常规机械体不同,她们只有一种指定的能量接口,只能通过能源核心补充能量,在乌拉帝国编织体工作台制造这种核心。</description>
|
||||||
<listPriority>800</listPriority>
|
<listPriority>800</listPriority>
|
||||||
<major>true</major>
|
<major>true</major>
|
||||||
<onlyIfCausedByHediff>true</onlyIfCausedByHediff>
|
<onlyIfCausedByHediff>true</onlyIfCausedByHediff>
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
<showUnitTicks>true</showUnitTicks>
|
<showUnitTicks>true</showUnitTicks>
|
||||||
<modExtensions>
|
<modExtensions>
|
||||||
<li Class="WulaFallenEmpire.NeedDefExtension_Energy">
|
<li Class="WulaFallenEmpire.NeedDefExtension_Energy">
|
||||||
<fallPerDay>1.6</fallPerDay>
|
<fallPerDay>1</fallPerDay>
|
||||||
<maxLevel>1.0</maxLevel>
|
<maxLevel>1.0</maxLevel>
|
||||||
<deliverEnergyThreshold>0.5</deliverEnergyThreshold>
|
<deliverEnergyThreshold>0.05</deliverEnergyThreshold>
|
||||||
</li>
|
</li>
|
||||||
</modExtensions>
|
</modExtensions>
|
||||||
</NeedDef>
|
</NeedDef>
|
||||||
|
|||||||
@@ -2,19 +2,19 @@
|
|||||||
<Defs>
|
<Defs>
|
||||||
<StatDef>
|
<StatDef>
|
||||||
<defName>WulaEnergyMaxLevelOffset</defName>
|
<defName>WulaEnergyMaxLevelOffset</defName>
|
||||||
<label>乌拉能量上限偏移</label>
|
<label>机械乌拉能量上限</label>
|
||||||
<description>影响乌拉族能量上限的偏移量。</description>
|
<description>影响机械乌拉能量上限的偏移量。</description>
|
||||||
<category>PawnMisc</category>
|
<category>PawnMisc</category>
|
||||||
<defaultBaseValue>0</defaultBaseValue>
|
|
||||||
<minValue>-1</minValue>
|
<minValue>-1</minValue>
|
||||||
<maxValue>1</maxValue>
|
<defaultBaseValue>1</defaultBaseValue>
|
||||||
|
<!-- <maxValue>1</maxValue> -->
|
||||||
<toStringStyle>PercentZero</toStringStyle>
|
<toStringStyle>PercentZero</toStringStyle>
|
||||||
</StatDef>
|
</StatDef>
|
||||||
|
|
||||||
<StatDef>
|
<StatDef>
|
||||||
<defName>WulaEnergyFallRateFactor</defName>
|
<defName>WulaEnergyFallRateFactor</defName>
|
||||||
<label>乌拉能量消耗速度因子</label>
|
<label>机械乌拉能量消耗速度</label>
|
||||||
<description>影响乌拉族能量消耗速度的乘数因子。</description>
|
<description>影响机械乌拉能量消耗速度的乘数因子。</description>
|
||||||
<category>PawnMisc</category>
|
<category>PawnMisc</category>
|
||||||
<defaultBaseValue>1</defaultBaseValue>
|
<defaultBaseValue>1</defaultBaseValue>
|
||||||
<minValue>0</minValue>
|
<minValue>0</minValue>
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<Defs>
|
|
||||||
<ThingDef ParentName="BodyPartBionicBase">
|
|
||||||
<defName>WULA_Energy_Regulator</defName>
|
|
||||||
<label>乌拉能量调节器</label>
|
|
||||||
<description>一个先进的乌拉植入物,能够微调宿主的能量系统,提高能量上限并降低能量消耗速度。</description>
|
|
||||||
<graphicData>
|
|
||||||
<texPath>Things/Item/Health/HealthItem</texPath>
|
|
||||||
<graphicClass>Graphic_Single</graphicClass>
|
|
||||||
</graphicData>
|
|
||||||
<statBases>
|
|
||||||
<MarketValue>1500</MarketValue>
|
|
||||||
<Mass>0.5</Mass>
|
|
||||||
</statBases>
|
|
||||||
<techLevel>Archotech</techLevel>
|
|
||||||
<recipeMaker>
|
|
||||||
<researchPrerequisite>WULA_New_Synth_Skill_Technology</researchPrerequisite>
|
|
||||||
<recipeUsers>
|
|
||||||
<li>WULA_Synth_Server</li>
|
|
||||||
</recipeUsers>
|
|
||||||
<skillRequirements>
|
|
||||||
<Crafting>10</Crafting>
|
|
||||||
</skillRequirements>
|
|
||||||
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
|
|
||||||
<workSkill>Crafting</workSkill>
|
|
||||||
<effectWorking>Smith</effectWorking>
|
|
||||||
<soundWorking>Recipe_Machining</soundWorking>
|
|
||||||
<displayPriority>650</displayPriority>
|
|
||||||
</recipeMaker>
|
|
||||||
<costList>
|
|
||||||
<Plasteel>50</Plasteel>
|
|
||||||
<ComponentSpacer>2</ComponentSpacer>
|
|
||||||
<WULA_Charge_Cube>5</WULA_Charge_Cube>
|
|
||||||
</costList>
|
|
||||||
<thingSetMakerTags>
|
|
||||||
<li>RewardStandardMidFreq</li>
|
|
||||||
</thingSetMakerTags>
|
|
||||||
<tradeTags>
|
|
||||||
<li>TechHediff</li>
|
|
||||||
</tradeTags>
|
|
||||||
</ThingDef>
|
|
||||||
|
|
||||||
<HediffDef ParentName="ImplantHediffBase">
|
|
||||||
<defName>WULA_Energy_Regulator_Implant</defName>
|
|
||||||
<label>乌拉能量调节器</label>
|
|
||||||
<description>已安装乌拉能量调节器。这提高了能量上限并降低了能量消耗速度。</description>
|
|
||||||
<spawnThingOnRemoved>WULA_Energy_Regulator</spawnThingOnRemoved>
|
|
||||||
<addedPartProps>
|
|
||||||
<partEfficiency>1.0</partEfficiency>
|
|
||||||
</addedPartProps>
|
|
||||||
<stages>
|
|
||||||
<li>
|
|
||||||
<statOffsets> <!-- StatOffset 是加法偏移量,正数增加,负数减少 -->
|
|
||||||
<WulaEnergyMaxLevelOffset>0.2</WulaEnergyMaxLevelOffset> <!-- 能量上限增加 0.2 -->
|
|
||||||
</statOffsets>
|
|
||||||
<statFactors> <!-- StatFactor 是乘法因子,小于 1.0 减少,大于 1.0 增加 -->
|
|
||||||
<WulaEnergyFallRateFactor>0.8</WulaEnergyFallRateFactor> <!-- 能量消耗速度变为原来的 80% -->
|
|
||||||
</statFactors>
|
|
||||||
</li>
|
|
||||||
</stages>
|
|
||||||
</HediffDef>
|
|
||||||
</Defs>
|
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
<ThingDef Abstract="True" Name="WULA_Syhth_Trainer">
|
<ThingDef Abstract="True" Name="WULA_Syhth_Trainer">
|
||||||
<!-- <defName>WULA_Syhth_Trainer</defName>
|
<!-- <defName>WULA_Syhth_Trainer</defName>
|
||||||
<label>乌拉帝国技能预设</label> -->
|
<label>乌拉帝国技能预设</label> -->
|
||||||
<description>一个蕴含了提升特定技能所需知识的数据包,需要通过乌拉帝国合成人特有的神经接口接入,其他种族无法使用。</description>
|
<description>一个蕴含了提升特定技能所需知识的数据包,需要通过乌拉帝国合成人特有的神经接口接入,其他种族无法使用。\n\n机械乌拉的存储空间有限,每一次使用数据包都会迫使其遗忘其他非目标技能并损失经验值,没有热情的技能将更快被遗忘。</description>
|
||||||
<thingClass>ThingWithComps</thingClass>
|
<thingClass>ThingWithComps</thingClass>
|
||||||
<category>Item</category>
|
<category>Item</category>
|
||||||
<drawerType>MapMeshOnly</drawerType>
|
<drawerType>MapMeshOnly</drawerType>
|
||||||
@@ -245,8 +245,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Shooting</skill>
|
<skill>Shooting</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>25000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -264,8 +264,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Melee</skill>
|
<skill>Melee</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -283,8 +283,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Animals</skill>
|
<skill>Animals</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -302,8 +302,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Artistic</skill>
|
<skill>Artistic</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -321,8 +321,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Construction</skill>
|
<skill>Construction</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -340,8 +340,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Cooking</skill>
|
<skill>Cooking</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -359,8 +359,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Crafting</skill>
|
<skill>Crafting</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -378,8 +378,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Intellectual</skill>
|
<skill>Intellectual</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -397,8 +397,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Medicine</skill>
|
<skill>Medicine</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -416,8 +416,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Mining</skill>
|
<skill>Mining</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -435,8 +435,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Plants</skill>
|
<skill>Plants</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
@@ -454,8 +454,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
<li Class="WulaFallenEmpire.CompProperties_UseEffect_WulaSkillTrainer">
|
||||||
<skill>Social</skill>
|
<skill>Social</skill>
|
||||||
<xpGainAmount>100000</xpGainAmount>
|
<xpGainAmount>50000</xpGainAmount>
|
||||||
<baseLossAmount>5000</baseLossAmount>
|
<baseLossAmount>10000</baseLossAmount>
|
||||||
<noPassionLossFactor>2.0</noPassionLossFactor>
|
<noPassionLossFactor>2.0</noPassionLossFactor>
|
||||||
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
<minorPassionLossFactor>1.5</minorPassionLossFactor>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -609,6 +609,20 @@
|
|||||||
</researchPrerequisites>
|
</researchPrerequisites>
|
||||||
</ThingDef>
|
</ThingDef>
|
||||||
|
|
||||||
|
<!-- 乌拉族睡眠点 -->
|
||||||
|
<ThingDef ParentName="SleepingSpotBase">
|
||||||
|
<defName>Wula_SleepingSpot</defName>
|
||||||
|
<label>乌拉帝国抢修点</label>
|
||||||
|
<description>指定一块地方,供机械乌拉躺下以进行抢修。</description>
|
||||||
|
<graphicData>
|
||||||
|
<texPath>Things/Building/Furniture/Bed/SleepSpot</texPath>
|
||||||
|
<graphicClass>Graphic_Multi</graphicClass>
|
||||||
|
<drawSize>(3,4)</drawSize>
|
||||||
|
</graphicData>
|
||||||
|
<size>(1,2)</size>
|
||||||
|
<designationHotKey>Misc1</designationHotKey>
|
||||||
|
</ThingDef>
|
||||||
|
|
||||||
<!-- 联络台 -->
|
<!-- 联络台 -->
|
||||||
<!-- <ThingDef ParentName="BuildingBase">
|
<!-- <ThingDef ParentName="BuildingBase">
|
||||||
<defName>WULA_Communicator_Station</defName>
|
<defName>WULA_Communicator_Station</defName>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
<canLayDown>true</canLayDown>
|
<canLayDown>true</canLayDown>
|
||||||
<validBeds>
|
<validBeds>
|
||||||
<li>WULA_Charging_Station_Synth</li>
|
<li>WULA_Charging_Station_Synth</li>
|
||||||
|
<li>Wula_SleepingSpot</li>
|
||||||
</validBeds>
|
</validBeds>
|
||||||
<!-- 各种零件定义 -->
|
<!-- 各种零件定义 -->
|
||||||
<alienPartGenerator Inherit="False">
|
<alienPartGenerator Inherit="False">
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<LanguageData>
|
|
||||||
|
|
||||||
<Wula_RegenerateBackstoryHediff.label>背景故事重塑</Wula_RegenerateBackstoryHediff.label>
|
|
||||||
<Wula_RegenerateBackstoryHediff.description>这个效果会重新生成小人的背景故事,然后自行移除。</Wula_RegenerateBackstoryHediff.description>
|
|
||||||
|
|
||||||
</LanguageData>
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<LanguageData>
|
|
||||||
|
|
||||||
<Wula_BackstoryRegeneratorImplant.label>背景故事重构器</Wula_BackstoryRegeneratorImplant.label>
|
|
||||||
<Wula_BackstoryRegeneratorImplant.description>一种一次性植入物,可以重构一个人的记忆和经历,有效地赋予他们一个新的背景故事。该过程不稳定,植入物在使用后会被消耗。</Wula_BackstoryRegeneratorImplant.description>
|
|
||||||
|
|
||||||
<Wula_RegenerateBackstory.label>背景故事重构器</Wula_RegenerateBackstory.label>
|
|
||||||
<Wula_RegenerateBackstory.labelNoun>一个背景故事重构器</Wula_RegenerateBackstory.labelNoun>
|
|
||||||
<Wula_RegenerateBackstory.description>背景故事重构器已安装。</Wula_RegenerateBackstory.description>
|
|
||||||
|
|
||||||
<InstallWulaBackstoryRegenerator.label>安装背景故事重构器</InstallWulaBackstoryRegenerator.label>
|
|
||||||
<InstallWulaBackstoryRegenerator.description>安装一个背景故事重构器。</InstallWulaBackstoryRegenerator.description>
|
|
||||||
<InstallWulaBackstoryRegenerator.jobString>正在安装背景故事重构器。</InstallWulaBackstoryRegenerator.jobString>
|
|
||||||
|
|
||||||
</LanguageData>
|
|
||||||
Reference in New Issue
Block a user