added filter workers

This commit is contained in:
c0ffee 2022-08-12 00:23:45 -07:00
parent 8810840d48
commit bcf2b42d6d
3 changed files with 24 additions and 1 deletions

View file

@ -79,6 +79,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="CRIALactation\Defs\PreceptDefs\Precepts_Lactating_Role.xml" />
<Content Include="CRIALactation\Defs\SpecialThingFilterDefs\Items_Resource_Milk.xml" />
<Content Include="LoadFolders.xml" />
<Content Include="Textures\UI\Issues\Lactating.png" />
<Content Include="Textures\UI\Memes\Hucow.png" />

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<SpecialThingFilterDef>
<defName>AllowWithHumanMilk</defName>
<label>allow food with human milk</label>
<description>Allow food that was made with human milk.</description>
<parentCategory>Foods</parentCategory>
<allowedByDefault>true</allowedByDefault>
<saveKey>allowWithHumanMilk</saveKey>
<workerClass>CRIALactation.SpecialThingFilterWorker_Milk</workerClass>
</SpecialThingFilterDef>
<SpecialThingFilterDef>
<defName>AllowWithoutHumanMilk</defName>
<label>allow food without human milk</label>
<description>Allow normal food.</description>
<parentCategory>Foods</parentCategory>
<allowedByDefault>true</allowedByDefault>
<saveKey>allowWithoutHumanMilk</saveKey>
<workerClass>CRIALactation.SpecialThingFilterWorker_NoMilk</workerClass>
</SpecialThingFilterDef>
</Defs>

View file

@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Verse;
namespace CRIALactation.Source.ThingFilters
namespace CRIALactation
{
class SpecialThingFilterWorker_Milk : SpecialThingFilterWorker_MilkBase
{