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,21 @@
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
public class CompProperties_DamageRelay : CompProperties
{
public float damageRelayRatio = 0.3f; // 继续传递伤害的比例
public bool relayOnlyToSameFaction = true; // 是否只传递给同派系建筑
public FloatRange healthThreshold = new FloatRange(0.1f, 1f); // 生命值阈值(低于此值才开始传递)
// 效果设置
public EffecterDef relayEffecter;
public SoundDef relaySound;
public CompProperties_DamageRelay()
{
compClass = typeof(CompDamageRelay);
}
}
}