-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<SpecialThingFilters> | ||
|
||
<SpecialThingFilterDef> | ||
<defName>AllowNoIngredients</defName> | ||
<label>allow things with ingredients</label> | ||
<description>Allow things with ingredients in their recipes.</description> | ||
<parentCategory>Root</parentCategory> | ||
<allowedByDefault>true</allowedByDefault> | ||
<saveKey>AllowNoIngredients</saveKey> | ||
<configurable>false</configurable> | ||
<workerClass>ReclaimFabric.SpecialThingFilterWorker_NoIngredients</workerClass> | ||
</SpecialThingFilterDef> | ||
|
||
</SpecialThingFilters> | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Source/ReclaimFabric/SpecialThingFilterWorker_NoIngredients.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using Verse; | ||
using RimWorld; | ||
|
||
namespace ReclaimFabric | ||
{ | ||
public class SpecialThingFilterWorker_NoIngredients : SpecialThingFilterWorker | ||
{ | ||
public override bool Matches(Thing t) | ||
{ | ||
return this.AlwaysMatches(t.def); | ||
} | ||
|
||
public override bool AlwaysMatches(ThingDef def) | ||
{ | ||
return def.costList == null && def.stuffCategories == null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
Source/ReclaimFabric/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+21 KB
(140%)
Source/ReclaimFabric/obj/Debug/ReclaimFabric.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.