天锁机制

This commit is contained in:
2025-11-26 17:28:36 +08:00
parent 826de7b5da
commit 0930887841
9 changed files with 402 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
public class CompProperties_DamageTransfer : CompProperties
{
public float damageTransferRatio = 0.8f; // 伤害转移比例 (80%)
public float maxTransferRange = 30f; // 最大转移范围
public bool requireLineOfSight = false; // 是否需要视线
public bool transferAllDamageTypes = true; // 是否转移所有伤害类型
public FloatRange healthThreshold = new FloatRange(0f, 1f); // 生命值阈值(低于此值才触发)
// 效果设置
public EffecterDef transferEffecter;
public SoundDef transferSound;
public CompProperties_DamageTransfer()
{
compClass = typeof(CompDamageTransfer);
}
}
}