This commit is contained in:
2025-11-20 17:31:17 +08:00
parent 60a4c6de65
commit 6dc949158a
15 changed files with 789 additions and 805 deletions

View File

@@ -0,0 +1,39 @@
using RimWorld;
using Verse;
using UnityEngine;
namespace WulaFallenEmpire
{
public class CompProperties_AreaShield : CompProperties
{
public float radius = 5.9f;
public int baseHitPoints = 100;
public int rechargeDelay = 3200;
public int rechargeHitPointsIntervalTicks = 60;
public EffecterDef absorbEffecter;
public EffecterDef interceptEffecter;
public EffecterDef breakEffecter;
public EffecterDef reactivateEffecter;
public Color color = Color.cyan;
public int startupDelay = 0;
// 拦截设置
public bool interceptGroundProjectiles = true;
public bool interceptNonHostileProjectiles = false;
public bool interceptAirProjectiles = true;
// 反射设置
public bool canReflect = false;
public float reflectChance = 0.5f;
public float reflectAngleRange = 30f;
public int reflectCost = 1;
public EffecterDef reflectEffecter;
public CompProperties_AreaShield()
{
compClass = typeof(ThingComp_AreaShield);
}
}
}