暂存
This commit is contained in:
Binary file not shown.
@@ -558,90 +558,7 @@
|
||||
<destroyableByDamage>false</destroyableByDamage>
|
||||
</BodyPartDef>
|
||||
|
||||
<BodyDef>
|
||||
<defName>WULA_AI_Heavy_Panzer_Body</defName>
|
||||
<label>智能战车</label>
|
||||
<corePart>
|
||||
<def>Torso</def>
|
||||
<height>Middle</height>
|
||||
<depth>Outside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
<parts>
|
||||
<!-- 脖子和头部 -->
|
||||
<li>
|
||||
<def>WULA_Outer_Armor_Bodypart</def>
|
||||
<coverage>0.99</coverage>
|
||||
<height>Top</height>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
<parts>
|
||||
<li>
|
||||
<def>WULA_Panzer_Core_Bodypart</def>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>WULA_AI_Core_Bodypart</def>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>SightSensor</def>
|
||||
<coverage>0.13</coverage>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>WULA_Panzer_OutBrust_Bodypart</def>
|
||||
<customLabel>第一反推喷气孔</customLabel>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>WULA_Panzer_OutBrust_Bodypart</def>
|
||||
<customLabel>第二反推喷气孔</customLabel>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>WULA_Panzer_OutBrust_Bodypart</def>
|
||||
<customLabel>第三反推喷气孔</customLabel>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
<li>
|
||||
<def>WULA_Panzer_OutBrust_Bodypart</def>
|
||||
<customLabel>第四反推喷气孔</customLabel>
|
||||
<coverage>0.025</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>Torso</li>
|
||||
</groups>
|
||||
</li>
|
||||
</parts>
|
||||
</li>
|
||||
</parts>
|
||||
</corePart>
|
||||
</BodyDef>
|
||||
|
||||
<BodyDef>
|
||||
<defName>Wula_AI_Engineer_Mother_Body</defName>
|
||||
<label>开拓单元</label>
|
||||
@@ -881,4 +798,5 @@
|
||||
</parts>
|
||||
</corePart>
|
||||
</BodyDef>
|
||||
|
||||
</Defs>
|
||||
@@ -6,7 +6,11 @@
|
||||
<description>如果缺乏定期维护,身体机能将会出现衰退迹象。需要进入维护舱进行修复。</description>
|
||||
<hediffClass>HediffWithComps</hediffClass>
|
||||
<defaultLabelColor>(0.8, 0.35, 0.35)</defaultLabelColor>
|
||||
<isBad>true</isBad>
|
||||
<isBad>false</isBad>
|
||||
<initialSeverity>0</initialSeverity>
|
||||
<minSeverity>0</minSeverity>
|
||||
<maxSeverity>2</maxSeverity>
|
||||
<!--<lethalSeverity>2</lethalSeverity>-->
|
||||
<comps>
|
||||
<li Class="WulaFallenEmpire.HediffCompProperties_MaintenanceNeed">
|
||||
<thresholdDays>60</thresholdDays>
|
||||
@@ -41,7 +45,7 @@
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>-0.10</offset>
|
||||
<offset>-0.20</offset>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
@@ -51,7 +55,17 @@
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<offset>-0.25</offset>
|
||||
<setMax>0.5</setMax>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
<li>
|
||||
<label>崩坏</label>
|
||||
<minSeverity>2.0</minSeverity>
|
||||
<capMods>
|
||||
<li>
|
||||
<capacity>Consciousness</capacity>
|
||||
<setMax>0.1</setMax>
|
||||
</li>
|
||||
</capMods>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Defs>
|
||||
|
||||
<JobDef>
|
||||
<defName>WULA_HaulToMaintenancePod</defName>
|
||||
<defName>WULA_LoadComponentsToMaintenancePod</defName>
|
||||
<driverClass>WulaFallenEmpire.JobDriver_HaulToMaintenancePod</driverClass>
|
||||
<reportString>正在为维护舱补充修复组件。</reportString>
|
||||
<allowOpportunisticPrefix>true</allowOpportunisticPrefix>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<comps>
|
||||
<li Class="CompProperties_Forbiddable" />
|
||||
<li Class="CompProperties_Usable">
|
||||
<useJob>WULA_IngestWulaEnergy</useJob>
|
||||
<useJob>Ingest</useJob>
|
||||
<useLabel>从能量核心中摄取能量</useLabel>
|
||||
<showUseGizmo>true</showUseGizmo>
|
||||
</li>
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace WulaFallenEmpire
|
||||
List<FloatMenuOption> options = new List<FloatMenuOption>();
|
||||
foreach (Pawn p in parent.Map.mapPawns.FreeColonists)
|
||||
{
|
||||
if (p.health.hediffSet.HasHediff(Props.hediffToRemove))
|
||||
if (Props.hediffToRemove != null && p.health.hediffSet.HasHediff(Props.hediffToRemove))
|
||||
{
|
||||
float required = RequiredComponents(p);
|
||||
if (storedComponents >= required)
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace WulaFallenEmpire
|
||||
return null;
|
||||
}
|
||||
|
||||
Job job = JobMaker.MakeJob(JobDefOf_WULA.WULA_HaulToMaintenancePod, component, t);
|
||||
Job job = JobMaker.MakeJob(JobDefOf_WULA.WULA_LoadComponentsToMaintenancePod, component, t);
|
||||
job.count = Math.Min(component.stackCount, (int)(comp.Props.capacity - comp.storedComponents));
|
||||
return job;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user