存营养膏
This commit is contained in:
Binary file not shown.
@@ -63,7 +63,7 @@
|
||||
<li>ARANutrientDispenser</li>
|
||||
</linkableBuildings>
|
||||
<maxDistance>80</maxDistance>
|
||||
<lineTexturePath>ArachnaeSwarm/Wire</lineTexturePath>
|
||||
<lineTexturePath>ArachnaeSwarm/Building/Nutrition_Pie</lineTexturePath>
|
||||
</li>
|
||||
|
||||
<!-- 自身的燃料库 -->
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
<commonality>0</commonality>
|
||||
<degreeDatas>
|
||||
<li>
|
||||
<<<<<<< HEAD
|
||||
<degree>1</degree>
|
||||
=======
|
||||
<label>节肢类昆虫</label>
|
||||
>>>>>>> 377cc3d7ce40e7320d0936dbd14071a1e9cfe27c
|
||||
<description>{PAWN_nameDef} 是一只巨大的节肢类昆虫,多对附肢、镜面反光的外骨骼和扭动的分节身体足以引发人类心底埋藏的强烈恐惧感。\n\n额,你该不会真以为它们是一群美少女吧?</description>
|
||||
<marketValueFactorOffset>-1</marketValueFactorOffset>
|
||||
</li>
|
||||
|
||||
@@ -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<Gizmo> 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)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user