This commit is contained in:
Tourswen
2025-11-26 21:37:25 +08:00
parent 21cb3f4ecb
commit c91c222801
24 changed files with 536 additions and 471 deletions

View File

@@ -0,0 +1,22 @@
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
public class CompProperties_DamageInterceptor : CompProperties
{
public float damageTransferRatio = 1f; // 完全拦截并转移伤害
public string targetBuildingDefName = "WULA_Sky_Lock"; // 目标建筑类型
public bool requireSameFaction = true; // 是否需要同派系
public FloatRange healthThreshold = new FloatRange(0f, 1f); // 生命值阈值范围
// 效果设置
public EffecterDef interceptEffecter;
public SoundDef interceptSound;
public CompProperties_DamageInterceptor()
{
compClass = typeof(CompDamageInterceptor);
}
}
}