传送器

This commit is contained in:
2025-11-25 17:31:19 +08:00
parent 79a02f99e0
commit e0b156f687
11 changed files with 794 additions and 18 deletions

View File

@@ -1031,9 +1031,9 @@
<!-- 支援 -->
<AbilityDef>
<defName>WULA_Support_Shield_Projection</defName>
<label>护盾投射</label>
<description>以启动拒止舰的止戈立场,在指定地点投射一面球形护盾,阻挡并反射所有的外来射弹</description>
<defName>WULA_Support_Holographic_Flag</defName>
<label>空投旗帜</label>
<description>从拒止舰队上扔一面全息旗帜到指定地点,激励附近的乌拉星人更英勇地战斗</description>
<iconPath>Wula/UI/Abilities/WULA_Firepower_Minigun_Strafe</iconPath>
<cooldownTicksRange>1</cooldownTicksRange>
<hotKey>Misc12</hotKey>
@@ -1051,10 +1051,42 @@
</targetParams>
</verbProperties>
<comps>
<li Class="WulaFallenEmpire.CompProperties_GlobalFlyOverCooldown">
<globalCooldownTicks>1000</globalCooldownTicks>
<requiredFacility>BombardmentFacility</requiredFacility>
<li Class="WulaFallenEmpire.CompProperties_AbilityCallSkyfaller">
<delayTicks>0</delayTicks>
<skyfallerDef>WULA_Holographic_Flag_Building_Skyfaller</skyfallerDef>
<previewRadius>15</previewRadius>
<previewColor>(1,1,1,0.5)</previewColor>
</li>
<li Class="WulaFallenEmpire.CompProperties_RequireFlyOverFacility">
<requiredFacility>FactoryFacility</requiredFacility>
<facilityNotFoundMessage>需要拥有&lt;color=#BD2F31>&lt;i>支援设施&lt;/i>&lt;/color>设施的战舰在地图上才能进行轨道炮击支援</facilityNotFoundMessage>
</li>
<!-- <li Class="WulaFallenEmpire.CompProperties_AbilityResearchPrereq">
<requiredResearch>WULA_Firepower_Minigun_Technology</requiredResearch>
</li> -->
</comps>
</AbilityDef>
<AbilityDef>
<defName>WULA_Support_Shield_Projection</defName>
<label>护盾投射</label>
<description>从拒止舰队上扔一面附拒止护盾的全息旗帜到指定地点,激励附近的乌拉星人更英勇地战斗。拒止护盾可以反射所有的敌方射弹,己方的开火不受影响。\n\n在工作一段时间后该系统将自行烧毁。</description>
<iconPath>Wula/UI/Abilities/WULA_Firepower_Minigun_Strafe</iconPath>
<cooldownTicksRange>1</cooldownTicksRange>
<hotKey>Misc12</hotKey>
<casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
<verbProperties>
<verbClass>Verb_CastAbility</verbClass>
<drawAimPie>false</drawAimPie>
<requireLineOfSight>false</requireLineOfSight>
<warmupTime>1</warmupTime>
<range>120</range>
<targetable>true</targetable>
<targetParams>
<canTargetSelf>false</canTargetSelf>
<canTargetLocations>true</canTargetLocations>
</targetParams>
</verbProperties>
<comps>
<li Class="WulaFallenEmpire.CompProperties_AbilityCallSkyfaller">
<delayTicks>0</delayTicks>
<skyfallerDef>WULA_Support_Shield_Projection_Skyfaller</skyfallerDef>
@@ -1071,4 +1103,41 @@
</li> -->
</comps>
</AbilityDef>
<AbilityDef>
<defName>WULA_Support_AreaTeleporter</defName>
<label>区域传送器</label>
<description>从拒止舰队上扔一面附拒止护盾的全息旗帜到指定地点,激励附近的乌拉星人更英勇地战斗。拒止护盾可以反射所有的敌方射弹,己方的开火不受影响。\n\n在工作一段时间后该系统将自行烧毁。</description>
<iconPath>Wula/UI/Abilities/WULA_Firepower_Minigun_Strafe</iconPath>
<cooldownTicksRange>1</cooldownTicksRange>
<hotKey>Misc12</hotKey>
<casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
<verbProperties>
<verbClass>Verb_CastAbility</verbClass>
<drawAimPie>false</drawAimPie>
<requireLineOfSight>false</requireLineOfSight>
<warmupTime>1</warmupTime>
<range>120</range>
<targetable>true</targetable>
<targetParams>
<canTargetSelf>false</canTargetSelf>
<canTargetLocations>true</canTargetLocations>
</targetParams>
</verbProperties>
<comps>
<li Class="WulaFallenEmpire.CompProperties_AbilityCallSkyfaller">
<delayTicks>0</delayTicks>
<skyfallerDef>WULA_Support_AreaTeleporter_Skyfaller</skyfallerDef>
<previewRadius>20</previewRadius>
<previewColor>(0.6,0.8,0.8,0.5)</previewColor>
</li>
<li Class="WulaFallenEmpire.CompProperties_RequireFlyOverFacility">
<!-- <flyOverDef></flyOverDef> -->
<requiredFacility>FactoryFacility</requiredFacility>
<facilityNotFoundMessage>需要拥有&lt;color=#BD2F31>&lt;i>支援设施&lt;/i>&lt;/color>设施的战舰在地图上才能进行轨道炮击支援</facilityNotFoundMessage>
</li>
<!-- <li Class="WulaFallenEmpire.CompProperties_AbilityResearchPrereq">
<requiredResearch>WULA_Firepower_Minigun_Technology</requiredResearch>
</li> -->
</comps>
</AbilityDef>
</Defs>

View File

@@ -167,7 +167,9 @@
<li>WULA_CallMotherShip</li>
<li>WULA_CallConstructionShip</li>
<li>WULA_ClearFlightPath</li>
<li>WULA_Support_Holographic_Flag</li>
<li>WULA_Support_Shield_Projection</li>
<li>WULA_Support_AreaTeleporter</li>
</abilityDefs>
</li>
</comps>

View File

@@ -300,7 +300,7 @@
<defaultLabelColor>(0.52, 1, 0.95)</defaultLabelColor>
<comps>
<li Class="HediffCompProperties_Disappears">
<disappearsAfterTicks>120</disappearsAfterTicks>
<disappearsAfterTicks>125</disappearsAfterTicks>
<showRemainingTime>false</showRemainingTime>
</li>
<li Class="HediffCompProperties_DisappearsOnDeath"/>
@@ -309,11 +309,12 @@
<li>
<minSeverity>0</minSeverity>
<statOffsets>
<MentalBreakThreshold>-0.01</MentalBreakThreshold>
<MentalBreakThreshold>-0.1</MentalBreakThreshold>
<MoveSpeed>0.5</MoveSpeed>
</statOffsets>
<statFactors>
<AimingDelayFactor>0.9</AimingDelayFactor>
<ShootingAccuracyPawn>1</ShootingAccuracyPawn>
<ShootingAccuracyPawn>1.25</ShootingAccuracyPawn>
<MeleeDamageFactor>1.1</MeleeDamageFactor>
<MeleeCooldownFactor>0.9</MeleeCooldownFactor>
</statFactors>

View File

@@ -2297,6 +2297,7 @@
<initialSeverity>0.5</initialSeverity>
<onlyPawnsInSameFaction>true</onlyPawnsInSameFaction>
<checkIntervalTicks>120</checkIntervalTicks>
<hediffDurationTicks>125</hediffDurationTicks>
<allowedRaces>
<li>WulaSpecies</li>
</allowedRaces>
@@ -2359,4 +2360,43 @@
</li>
</comps>
</ThingDef>
<ThingDef ParentName="WULA_Holographic_Flag_Skyfaller">
<defName>WULA_Support_AreaTeleporter_Skyfaller</defName>
<label>P.I.A全息旗帜附区域传送器落地中</label>
<skyfaller>
<spawnThing>WULA_Support_AreaTeleporter</spawnThing>
</skyfaller>
</ThingDef>
<ThingDef ParentName="WULA_Holographic_Flag_Building">
<defName>WULA_Support_AreaTeleporter</defName>
<label>P.I.A全息旗帜附区域传送器</label>
<description>乌拉帝国行星封锁机关的全息旗帜,除了宣誓主权外,也能激励附近的乌拉星人更加凶狠地战斗。这面旗帜的底座附带了一个区域传送器,可以使得机械乌拉在旗帜区域内传送。\n\n在工作一段时间后该系统将自行烧毁。</description>
<comps>
<li Class="WulaFallenEmpire.CompProperties_CustomRadius">
<radius>20</radius> <!-- 半径大小 -->
<color>(1, 1, 1)</color> <!-- 绿色圆圈 -->
<radiusOffset>0</radiusOffset> <!-- 半径偏移 -->
<showInGUI>true</showInGUI>
<label>传送范围</label>
<description>区域传送器提供的传送范围</description>
<defaultVisible>true</defaultVisible>
</li>
<li Class="CompProperties_Lifespan">
<lifespanTicks>3600</lifespanTicks>
</li>
<li Class="WulaFallenEmpire.CompProperties_AreaTeleporter">
<teleportRadius>20</teleportRadius>
<stunTicks>60</stunTicks>
<allowedRaces>
<li>WulaSpecies</li>
</allowedRaces>
<onlyPawnsInSameFaction>true</onlyPawnsInSameFaction>
<entryEffecter>Skip_Entry</entryEffecter>
<exitEffecter>Skip_Exit</exitEffecter>
<teleportSound>Psycast_Skip_Entry</teleportSound>
</li>
</comps>
</ThingDef>
</Defs>