This commit is contained in:
2025-08-27 12:08:42 +08:00
parent 864d2e913e
commit 00dfd8469d
2 changed files with 32 additions and 14 deletions

View File

@@ -33,10 +33,10 @@
<li>
<verbClass>Verb_Shoot</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_WULA_RW_Penetrating_Beam_Ranged</defaultProjectile>
<defaultProjectile>Bullet_WULA_RW_Penetrating_Beam_Base</defaultProjectile>
<warmupTime>2</warmupTime>
<range>16</range>
<burstShotCount>2</burstShotCount>
<burstShotCount>3</burstShotCount>
<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
<soundCast>Shot_BeamRepeater</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
@@ -57,6 +57,32 @@
</thingSetMakerTags>
</ThingDef>
<!--没霰弹的光束-->
<ThingDef ParentName="BaseBullet">
<defName>Bullet_WULA_RW_Penetrating_Beam_Base</defName>
<label>穿透光束</label>
<thingClass>WulaFallenEmpire.Projectile_WulaBeam</thingClass>
<modExtensions>
<li Class="WulaFallenEmpire.Wula_BeamPierce_Extension">
<maxHits>-1</maxHits> <!-- -1 for infinite hits -->
<damageFalloff>0</damageFalloff> <!-- 0 for no damage falloff -->
<preventFriendlyFire>false</preventFriendlyFire>
<beamMoteDef>Mote_WULA_RW_Penetrating_Beam</beamMoteDef>
<beamStartOffset>0.5</beamStartOffset>
</li>
</modExtensions>
<graphicData>
<texPath>Things/Projectile/ChargeLanceShot</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile>
<damageDef>BeamBypassShields</damageDef>
<damageAmountBase>5</damageAmountBase>
<armorPenetrationBase>0.8</armorPenetrationBase>
<stoppingPower>1</stoppingPower>
</projectile>
</ThingDef>
<!-- Penetrating Beam Rifle -->
<ThingDef ParentName="BaseHumanMakeableGun">
<defName>WULA_RW_Penetrating_Beam_Rifle</defName>

View File

@@ -323,25 +323,17 @@
<projectile>
<!-- 基础伤害和穿透。对于这个投射物,实际伤害由爆炸决定 -->
<damageDef>Damage_WULA_Plasma_Explosive</damageDef>
<damageAmountBase>16</damageAmountBase>
<damageAmountBase>10</damageAmountBase>
<armorPenetrationBase>0.75</armorPenetrationBase>
<speed>55</speed>
</projectile>
<!-- 1. 使用正确的thingClass -->
<thingClass>WulaFallenEmpire.Projectile_ExplosiveTrackingBullet</thingClass>
<thingClass>WulaFallenEmpire.Projectile_ExplosiveWithTrail</thingClass>
<modExtensions>
<!-- 2. 保留追踪和霰弹ModExtension -->
<li Class="WulaFallenEmpire.TrackingBulletDef">
<homingSpeed>0.1</homingSpeed>
<initRotateAngle>30</initRotateAngle>
<destroyTicksAfterLosingTrack>
<min>60</min>
<max>120</max>
</destroyTicksAfterLosingTrack>
<tailFleckDef>WULA_GunTail_Plasma</tailFleckDef>
</li>
<li Class="WulaFallenEmpire.ShotgunExtension">
<pelletCount>3</pelletCount>
<pelletCount>2</pelletCount>
</li>
<!-- 3. 添加爆炸ModExtension -->
<li Class="WulaFallenEmpire.ExplosiveTrackingBulletDef">
@@ -363,7 +355,7 @@
</graphicData>
<projectile>
<damageDef>Damage_WULA_Plasma_Explosive</damageDef>
<damageAmountBase>16</damageAmountBase>
<damageAmountBase>20</damageAmountBase>
<explosionRadius>2.1</explosionRadius>
<soundExplode>Explosion_EMP</soundExplode>
<armorPenetrationBase>0.75</armorPenetrationBase>