Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 707b5e7

Browse files
author
sumghai
committed
Remove all designated survival meals from meal generation
For sumghai#64
1 parent ecd9e7c commit 707b5e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1.3/Assemblies/Replimat.dll

0 Bytes
Binary file not shown.

Source/ReplimatUtility.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public static ThingDef PickMeal(Pawn eater, Pawn getter)
7575

7676
List<ThingDef> allowedMeals = ThingCategoryDefOf.Foods.DescendantThingDefs.Where(x => x.ingestible.preferability >= FoodPreferability.DesperateOnly && ((x.ingestible.foodType & allowedFoodTypes) != FoodTypeFlags.None) && RepMatWillEat(eater, x, getter)).ToList();
7777

78-
// Manually remove Packaged Survival Meals, as pawns should only be getting "fresh" food to meet their immediate food needs
79-
// (Survival Meals are reserved for caravans, as per custom gizmo)
80-
allowedMeals.Remove(ThingDefOf.MealSurvivalPack);
78+
// Manually remove any survival meals, as pawns should only be getting "fresh" food to meet their immediate food needs
79+
// (Survival meals are reserved for caravans, as per custom gizmo)
80+
allowedMeals.RemoveAll((ThingDef d) => GetSurvivalMealChoices().Contains(d));
8181

8282
// Remove meals from a blacklist (stored in the Replimat Computer)
8383
allowedMeals.RemoveAll((ThingDef d) => replimatRestrictions.disallowedMeals.Contains(d));

0 commit comments

Comments
 (0)