This commit is contained in:
2025-08-15 10:30:27 +08:00
parent 9232704b8b
commit c4b282bd01
5 changed files with 26 additions and 27 deletions

View File

@@ -20,8 +20,8 @@ namespace WulaFallenEmpire
public bool interceptNonHostileProjectiles = false;
public bool interceptAirProjectiles = true;
public SoundDef soundIntercept;
public SoundDef soundBreak;
public EffecterDef soundInterceptEffecter;
public EffecterDef soundBreakEffecter;
public EffecterDef reactivateEffect;
public Color color = new Color(0.5f, 0.5f, 0.9f);
@@ -174,8 +174,7 @@ namespace WulaFallenEmpire
lastInterceptAngle = projectile.ExactPosition.AngleToFlat(PawnOwner.TrueCenter());
lastInterceptTicks = Find.TickManager.TicksGame;
drawInterceptCone = true;
if (Props.soundIntercept != null) Props.soundIntercept.PlayOneShot(new TargetInfo(PawnOwner.Position, PawnOwner.Map));
EffecterDefOf.Interceptor_BlockedProjectile.Spawn(PawnOwner.Position, PawnOwner.Map);
if (Props.soundInterceptEffecter != null) Props.soundInterceptEffecter.Spawn(PawnOwner.Position, PawnOwner.Map).Cleanup();
if (projectile.DamageDef == DamageDefOf.EMP && !Props.isImmuneToEMP)
{
@@ -232,8 +231,7 @@ namespace WulaFallenEmpire
{
if (PawnOwner.Spawned)
{
if (Props.soundBreak != null) Props.soundBreak.PlayOneShot(new TargetInfo(PawnOwner.Position, PawnOwner.Map));
EffecterDefOf.Shield_Break.SpawnAttached(PawnOwner, PawnOwner.MapHeld, Props.radius);
if (Props.soundBreakEffecter != null) Props.soundBreakEffecter.SpawnAttached(PawnOwner, PawnOwner.MapHeld, Props.radius).Cleanup();
}
currentHitPoints = 0;
ticksToReset = Props.rechargeDelay;