Files
2025-10-31 09:57:45 +08:00

31 lines
1.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
/// <summary>
/// 这个组件的XML属性定义。允许在XML中配置加成系数。
/// </summary>
public class CompProperties_PsychicScaling : CompProperties
{
// 每点心灵敏感度超出100%的部分)提供的伤害【增伤】乘数。
public float damageMultiplierPerSensitivityPoint = 1f;
// 每点心灵敏感度低于100%的部分)提供的伤害【减伤】乘数。
// 例如系数为1时50%敏感度将造成 1 - (1 - 0.5) * 1 = 0.5倍伤害。
public float damageReductionMultiplierPerSensitivityPoint = 1f;
public CompProperties_PsychicScaling()
{
compClass = typeof(CompPsychicScaling);
}
}
/// <summary>
/// 附加到武器上的实际组件。它本身只是一个标记真正的逻辑在Harmony Patch中。
/// </summary>
public class CompPsychicScaling : ThingComp
{
public CompProperties_PsychicScaling Props => (CompProperties_PsychicScaling)props;
}
}