38 lines
1.6 KiB
C#
38 lines
1.6 KiB
C#
using RimWorld;
|
|
using System;
|
|
using UnityEngine;
|
|
using Verse;
|
|
|
|
namespace ArachnaeSwarm
|
|
{
|
|
/// <summary>
|
|
/// 灵能负载消耗属性
|
|
/// </summary>
|
|
public class CompProperties_AbilityPsychicLoadCost : CompProperties_AbilityEffect
|
|
{
|
|
#region 字段
|
|
public FloatRange loadCostRange = new FloatRange(1f, 5f); // 负载消耗范围
|
|
public bool useFixedCost = false; // 是否使用固定值
|
|
public float fixedLoadCost = 3f; // 固定负载消耗
|
|
public bool showCostInGizmo = true; // 在Gizmo中显示消耗
|
|
public string customLabel; // 自定义标签
|
|
public bool ignoreOverloadCheck = true; // 忽略超载检查(总是可以施放)
|
|
public EffecterDef successEffecter; // 成功施放效果
|
|
public EffecterDef overloadEffecter; // 超载施放效果
|
|
|
|
// 超载惩罚设置
|
|
public bool applyOverloadPenalty = true; // 是否应用超载惩罚
|
|
public float consciousnessSourceDamageMult = 1f; // 意识来源部位伤害倍数
|
|
public HediffDef overloadPenaltyHediff; // 超载惩罚Hediff
|
|
public bool destroyConsciousnessSource = true; // 是否摧毁意识来源部位
|
|
#endregion
|
|
|
|
#region 构造函数
|
|
public CompProperties_AbilityPsychicLoadCost()
|
|
{
|
|
compClass = typeof(CompAbilityEffect_PsychicLoadCost);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|