这对吗

This commit is contained in:
2025-11-25 15:29:35 +08:00
parent d608f1a07c
commit 79a02f99e0
11 changed files with 529 additions and 182 deletions

View File

@@ -0,0 +1,40 @@
using RimWorld;
using Verse;
using System.Collections.Generic;
namespace WulaFallenEmpire
{
public class CompProperties_GiveHediffsInRange : CompProperties
{
public float range = 10f;
public TargetingParameters targetingParameters;
public HediffDef hediff;
public ThingDef mote;
public bool hideMoteWhenNotDrafted;
public float initialSeverity = 1f;
public bool onlyPawnsInSameFaction = true;
// 新增:种族筛选
public List<ThingDef> allowedRaces;
public List<ThingDef> excludedRaces;
public bool requireHumanlike = false;
public bool requireAnimal = false;
public bool requireMechanoid = false;
// 新增:效果控制
public bool affectAllies = true;
public bool affectEnemies = true;
public bool affectNeutrals = true;
public bool affectPrisoners = false;
public bool affectSlaves = false;
// 新增:间隔控制
public int checkIntervalTicks = 60;
public int hediffDurationTicks = -1; // -1 表示永久
public CompProperties_GiveHediffsInRange()
{
compClass = typeof(CompGiveHediffsInRange);
}
}
}