diff --git a/1.6/1.6/Assemblies/ArachnaeSwarm.dll b/1.6/1.6/Assemblies/ArachnaeSwarm.dll index b103b2e..6841c01 100644 Binary files a/1.6/1.6/Assemblies/ArachnaeSwarm.dll and b/1.6/1.6/Assemblies/ArachnaeSwarm.dll differ diff --git a/1.6/1.6/Defs/Thing_building/ARA_NutrientNetworkBuilding.xml b/1.6/1.6/Defs/Thing_building/ARA_NutrientNetworkBuilding.xml index 608db59..b747be1 100644 --- a/1.6/1.6/Defs/Thing_building/ARA_NutrientNetworkBuilding.xml +++ b/1.6/1.6/Defs/Thing_building/ARA_NutrientNetworkBuilding.xml @@ -63,7 +63,7 @@
  • ARANutrientDispenser
  • 80 - ArachnaeSwarm/Wire + ArachnaeSwarm/Building/Nutrition_Pie diff --git a/1.6/1.6/Defs/TraitDefs/ARA_Traits.xml b/1.6/1.6/Defs/TraitDefs/ARA_Traits.xml index 58aa77c..0ba7bc9 100644 --- a/1.6/1.6/Defs/TraitDefs/ARA_Traits.xml +++ b/1.6/1.6/Defs/TraitDefs/ARA_Traits.xml @@ -5,11 +5,8 @@ 0
  • -<<<<<<< HEAD 1 -======= ->>>>>>> 377cc3d7ce40e7320d0936dbd14071a1e9cfe27c {PAWN_nameDef} 是一只巨大的节肢类昆虫,多对附肢、镜面反光的外骨骼和扭动的分节身体足以引发人类心底埋藏的强烈恐惧感。\n\n额,你该不会真以为它们是一群美少女吧? -1
  • diff --git a/Source/ArachnaeSwarm/Building_ARANutrientDispenser.cs b/Source/ArachnaeSwarm/Building_ARANutrientDispenser.cs index 733faab..b225481 100644 --- a/Source/ArachnaeSwarm/Building_ARANutrientDispenser.cs +++ b/Source/ArachnaeSwarm/Building_ARANutrientDispenser.cs @@ -1,6 +1,8 @@ using RimWorld; using Verse; using Verse.Sound; // Ensure this is present +using System.Collections.Generic; +using System.Linq; namespace ArachnaeSwarm { @@ -62,5 +64,14 @@ namespace ArachnaeSwarm if (this.dispenserProps == null) return false; return this.nutritionComp != null && this.nutritionComp.Fuel >= this.dispenserProps.nutritionCostPerDispense; } + + public override IEnumerable GetGizmos() + { + // base.GetGizmos() provides the "Build Hopper" gizmo, which we don't want. + // We filter it out here. + return base.GetGizmos().Where(gizmo => + !(gizmo is Designator_Build designator && designator.PlacingDef == ThingDefOf.Hopper) + ); + } } } \ No newline at end of file