暂存改动物吃营养膏

This commit is contained in:
2025-09-19 20:24:07 +08:00
parent 2a6343097d
commit a2c81a86ad
3 changed files with 8 additions and 1 deletions

View File

@@ -121,6 +121,13 @@ namespace ArachnaeSwarm
var currentMealDef = dispenser.DispensableDef;
if (currentMealDef == null) continue;
// Use the game's built-in social properness check.
// This correctly handles colonists, prisoners, visitors, and animals (wild vs tame).
if (!dispenser.IsSociallyProper(getter))
{
continue;
}
// Check if the dispenser is usable
if (!dispenser.CanDispenseNow || dispenser.IsForbidden(getter) || !eater.WillEat(currentMealDef, getter))
{