diff --git a/1.6/1.6/Assemblies/ArachnaeSwarm.dll b/1.6/1.6/Assemblies/ArachnaeSwarm.dll
index f2f7291..2feb296 100644
Binary files a/1.6/1.6/Assemblies/ArachnaeSwarm.dll and b/1.6/1.6/Assemblies/ArachnaeSwarm.dll differ
diff --git a/Source/ArachnaeSwarm/ArachnaeSwarm.csproj b/Source/ArachnaeSwarm/ArachnaeSwarm.csproj
index aa05642..dbb9672 100644
--- a/Source/ArachnaeSwarm/ArachnaeSwarm.csproj
+++ b/Source/ArachnaeSwarm/ArachnaeSwarm.csproj
@@ -181,6 +181,7 @@
+
diff --git a/Source/ArachnaeSwarm/Thing_Comps/ARA_IngestionOutcomeDoer_GiveHediff/IngestionOutcomeDoer_GiveHediffByRace.cs b/Source/ArachnaeSwarm/Thing_Comps/ARA_IngestionOutcomeDoer_GiveHediff/IngestionOutcomeDoer_GiveHediffByRace.cs
index f460f00..9e3de3b 100644
--- a/Source/ArachnaeSwarm/Thing_Comps/ARA_IngestionOutcomeDoer_GiveHediff/IngestionOutcomeDoer_GiveHediffByRace.cs
+++ b/Source/ArachnaeSwarm/Thing_Comps/ARA_IngestionOutcomeDoer_GiveHediff/IngestionOutcomeDoer_GiveHediffByRace.cs
@@ -24,14 +24,13 @@ namespace ArachnaeSwarm
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested, int ingestedCount)
{
- // 如果列表是空的或null,则默认对所有的pawn进行操作
- if (!targetRaces.Contains(pawn.def))
+ // 如果 targetRaces 列表有内容,并且当前pawn的种族不在列表中,则不执行任何操作。
+ if (!targetRaces.NullOrEmpty() && !targetRaces.Contains(pawn.def))
{
return;
}
- else if (targetRaces.NullOrEmpty())
- {
- }
+
+ // 如果列表为空,或者pawn的种族在列表中,则继续执行后续代码
Hediff hediff = HediffMaker.MakeHediff(hediffDef, pawn);
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity);
AddictionUtility.ModifyChemicalEffectForToleranceAndBodySize(pawn, toleranceChemical, ref effect, multiplyByGeneToleranceFactors, divideByBodySize);
diff --git a/Source/ArachnaeSwarm/Verbs/Projectiles/Projectile_CruiseMissile.cs b/Source/ArachnaeSwarm/Verbs/Projectiles/Projectile_CruiseMissile.cs
index b17c4ae..647dbb0 100644
--- a/Source/ArachnaeSwarm/Verbs/Projectiles/Projectile_CruiseMissile.cs
+++ b/Source/ArachnaeSwarm/Verbs/Projectiles/Projectile_CruiseMissile.cs
@@ -37,7 +37,6 @@ namespace ArachnaeSwarm
private CruiseMissileProperties settings;
private bool flag2;
private Vector3 Randdd;
- private Vector3 position2;
public Vector3 ExPos;
public bool isDummy = false;