存营养膏

This commit is contained in:
2025-09-19 20:06:29 +08:00
parent 0b6ae6c398
commit 2a6343097d
4 changed files with 12 additions and 4 deletions

Binary file not shown.

View File

@@ -63,7 +63,7 @@
<li>ARANutrientDispenser</li>
</linkableBuildings>
<maxDistance>80</maxDistance>
<lineTexturePath>ArachnaeSwarm/Wire</lineTexturePath>
<lineTexturePath>ArachnaeSwarm/Building/Nutrition_Pie</lineTexturePath>
</li>
<!-- 自身的燃料库 -->

View File

@@ -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>

View File

@@ -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)
);
}
}
}