Files
WulaFallenEmpireRW/Source/WulaFallenEmpire/ThingComp/WULA_AreaDamage/CompProperties_AreaDamage.cs
2025-11-21 11:50:58 +08:00

34 lines
1.4 KiB
C#
Raw 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
{
public class CompProperties_AreaDamage : CompProperties
{
public float radius = 5f; // A: 伤害半径
public int damageIntervalTicks = 60; // B: 伤害间隔(帧数)
public DamageDef damageDef; // C: 伤害类型
public int damageAmount = 10; // 基础伤害量
// 伤害缩放设置
public bool scaleWithPsychicSensitivity = false; // 是否随心灵敏感度缩放
public float minDamageFactor = 0.5f; // 最低伤害倍率0.0-1.0
public float maxDamageFactor = 2.0f; // 最高伤害倍率
public bool useFixedScaling = false; // 是否使用固定缩放值
public float fixedDamageFactor = 1.0f; // 固定伤害倍率
// 目标过滤
public bool affectFriendly = false; // 是否影响友方
public bool affectNeutral = true; // 是否影响中立
public bool affectHostile = true; // 是否影响敌方
public bool affectBuildings = true; // 是否影响建筑
public bool affectPawns = true; // 是否影响生物
public bool affectPlants = false; // 是否影响植物
public CompProperties_AreaDamage()
{
compClass = typeof(CompAreaDamage);
}
}
}