2025-8-23

This commit is contained in:
2025-08-23 12:07:46 +08:00
parent 260a66bce2
commit 0e418e7160
4 changed files with 116 additions and 118 deletions

View File

@@ -51,6 +51,24 @@
<comps>
<!--加上这个组件的机械体会直接跳过原版指挥范围判定-->
<li Class="WulaFallenEmpire.CompProperties_GlobalMechCommand" />
<li Class="WulaFallenEmpire.CompProperties_AutoMechCarrier">
<freeProduction>true</freeProduction> <!-- 改为消耗资源以测试独立成本 -->
<disableHediff>WULA_MechCarrierSwitchHediff</disableHediff>
<fixedIngredient>Steel</fixedIngredient>
<maxIngredientCount>500</maxIngredientCount> <!-- 定义最大资源容量 -->
<startingIngredientCount>500</startingIngredientCount> <!-- 定义初始资源数量 -->
<costPerPawn>999</costPerPawn> <!-- 设置一个很高的全局默认成本,以确保独立成本生效 -->
<cooldownTicks>9999</cooldownTicks> <!-- 设置一个很高的全局默认冷却,以确保独立冷却生效 -->
<productionQueue>
<li>
<pawnKind>Mech_WULA_Cat_Bomb</pawnKind>
<count>8</count>
<cooldownTicks>50</cooldownTicks> <!-- 独立冷却: 10秒 -->
</li>
</productionQueue>
<spawnEffecter>WarqueenWarUrchinsSpawned</spawnEffecter>
<spawnedMechEffecter>WarUrchinSpawned</spawnedMechEffecter>
</li>
</comps>
</ThingDef>
<AbilityDef>
@@ -96,6 +114,46 @@
<label>PMu-7A"斯托洛维耶"</label>
<description>乌拉帝国的机械开拓单元,通常被投放到荒无人烟的星球上进行初步开发。这种型号的开拓单元可以生产装备轻型武器的乌拉猫猫,并且可以在战场上投放低角护盾。</description>
<uiIconPath>Wula/Things/Wula_AI_Bomb_Mother/Wula_AI_Bomb_Mother_Icon</uiIconPath>
<comps Inherit="False">
<!--加上这个组件的机械体会直接跳过原版指挥范围判定-->
<li Class="WulaFallenEmpire.CompProperties_GlobalMechCommand" />
<li Class="WulaFallenEmpire.CompProperties_AutoMechCarrier">
<freeProduction>true</freeProduction> <!-- 改为消耗资源以测试独立成本 -->
<disableHediff>WULA_MechCarrierSwitchHediff</disableHediff>
<fixedIngredient>Steel</fixedIngredient>
<maxIngredientCount>500</maxIngredientCount> <!-- 定义最大资源容量 -->
<startingIngredientCount>500</startingIngredientCount> <!-- 定义初始资源数量 -->
<costPerPawn>999</costPerPawn> <!-- 设置一个很高的全局默认成本,以确保独立成本生效 -->
<cooldownTicks>9999</cooldownTicks> <!-- 设置一个很高的全局默认冷却,以确保独立冷却生效 -->
<productionQueue>
<li>
<pawnKind>Mech_WULA_Cat_Inf</pawnKind>
<count>8</count>
<cooldownTicks>50</cooldownTicks> <!-- 独立冷却: 10秒 -->
</li>
<li>
<pawnKind>Mech_WULA_Cat_Inf_Slow</pawnKind>
<count>8</count>
<cooldownTicks>600</cooldownTicks> <!-- 独立冷却: 10秒 -->
</li>
</productionQueue>
<spawnEffecter>WarqueenWarUrchinsSpawned</spawnEffecter>
<spawnedMechEffecter>WarUrchinSpawned</spawnedMechEffecter>
</li>
<li Class="CompProperties_CanBeDormant" />
<li Class="CompProperties_WakeUpDormant">
<wakeUpOnDamage>true</wakeUpOnDamage>
<wakeUpCheckRadius>30</wakeUpCheckRadius>
<wakeUpSound>MechanoidsWakeUp</wakeUpSound>
</li>
<li MayRequire="Ludeon.RimWorld.Biotech" Class="CompProperties_OverseerSubject">
<needsOverseerEffect>MechUncontrolled</needsOverseerEffect>
<delayUntilFeralCheck>60000</delayUntilFeralCheck>
<feralMtbDays>10</feralMtbDays>
<feralCascadeRadialDistance>25</feralCascadeRadialDistance>
</li>
<li MayRequire="Ludeon.RimWorld.Biotech" Class="CompProperties_MechRepairable" />
</comps>
</ThingDef>
<AbilityDef>
<defName>Wula_AI_Engineer_Mother_Attack_Ability</defName>
@@ -214,10 +272,19 @@
<shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>5</drawSize>
<shadowData>
<volume>(1.8, 1.6, 1.65)</volume>
<offset>(0, 0, -0.65)</offset>
</shadowData>
</bodyGraphicData>
</li>
</lifeStages>
<weaponMoney>99999~99999</weaponMoney>
<abilities>
<li>WULA_GiveSwitchHediff</li> <!-- 添加“停止生产”技能 -->
<li>WULA_RemoveSwitchHediff</li> <!-- 保留“恢复生产”技能 -->
<li>Wula_AI_Engineer_Mother_Ability</li>
</abilities>
<weaponTags>
<li>Wula_AI_Engineer_Mother_Weapon</li>
@@ -246,10 +313,11 @@
</li>
</lifeStages>
<weaponMoney>99999~99999</weaponMoney>
<weaponTags>
<li>Wula_AI_Engineer_Mother_Attack_Weapon</li>
</weaponTags>
<abilities>
<li>WULA_GiveSwitchHediff</li> <!-- 添加“停止生产”技能 -->
<li>WULA_RemoveSwitchHediff</li> <!-- 保留“恢复生产”技能 -->
<li>Wula_AI_Engineer_Mother_Attack_Ability</li>
</abilities>
<controlGroupPortraitZoom>0.3</controlGroupPortraitZoom>
</PawnKindDef>
@@ -404,7 +472,7 @@
<uiIconPath>Wula/Things/WULA_Commander_Cat/WULA_Cat_Thin_south</uiIconPath>
<race>
<baseHealthScale>3</baseHealthScale>
<thinkTreeConstant>SentryDroneConstant</thinkTreeConstant>
<thinkTreeConstant>WULA_Mech_Flyer_Constant</thinkTreeConstant>
<baseBodySize>0.7</baseBodySize>
<hasCorpse>false</hasCorpse>
<body>Mech_Light</body>
@@ -464,7 +532,7 @@
<description>乌拉帝国的一种小型机械体装备了一把DLa-4"云母"突击步枪附下挂刺刀,以在战场上拖住敌军。</description>
<uiIconPath>Wula/Things/WULA_Attack_Cat/WULA_Cat_Thin_south</uiIconPath>
<race>
<thinkTreeConstant>SentryDroneConstant</thinkTreeConstant>
<thinkTreeConstant>WULA_Mech_Flyer_Constant</thinkTreeConstant>
<baseBodySize>0.7</baseBodySize>
<hasCorpse>false</hasCorpse>
<body>Mech_Light</body>
@@ -519,7 +587,7 @@
</li>
</lifeStages>
</PawnKindDef>
<PawnKindDef ParentName="Mech_WULA_Cat_Soldier_PawnKind" MayRequire="Ludeon.RimWorld.Odyssey">
<PawnKindDef Name="Mech_WULA_Cat_Inf" ParentName="Mech_WULA_Cat_Soldier_PawnKind" MayRequire="Ludeon.RimWorld.Odyssey">
<defName>Mech_WULA_Cat_Inf</defName>
<label>步兵乌拉猫猫</label>
<race>Mech_WULA_Cat_Inf</race>
@@ -528,6 +596,9 @@
<li>Wula_Assault_Cat_Weapon</li>
</weaponTags>
</PawnKindDef>
<PawnKindDef ParentName="Mech_WULA_Cat_Inf" MayRequire="Ludeon.RimWorld.Odyssey">
<defName>Mech_WULA_Cat_Inf_Slow</defName>
</PawnKindDef>
<PawnKindDef ParentName="Mech_WULA_Cat_Soldier_PawnKind" MayRequire="Ludeon.RimWorld.Odyssey">
<defName>Mech_WULA_Cat_Commander</defName>
<label>指挥官乌拉猫猫</label>