Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Adding rottable check back in
Browse files Browse the repository at this point in the history
  • Loading branch information
KiameV committed Jul 30, 2017
1 parent 3201776 commit 476bf89
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Source/Building_Refrigerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,14 @@ private void CreateFixedStorageSettings()
{
this.fixedStorageSettings = new StorageSettings();
this.fixedStorageSettings.CopyFrom(this.def.building.fixedStorageSettings);
/*foreach (ThingDef td in DefDatabase<ThingDef>.AllDefs)
foreach (ThingDef td in DefDatabase<ThingDef>.AllDefs)
{
if (td.defName.EqualsIgnoreCase("beer"))
//td.defName.EqualsIgnoreCase("eggchickenfertilized") ||
//td.HasComp(typeof(CompRottable)))
if (td.HasComp(typeof(CompRottable)) &&
!this.fixedStorageSettings.filter.Allows(td))
{
this.fixedStorageSettings.filter.SetAllow(td, true);
}
/*else if (td.CanEverDeteriorate == true)
{
this.fixedStorageSettings.filter.SetAllow(td, false);
}* /
}*/
}
}

public new StorageSettings GetParentStoreSettings()
Expand Down

0 comments on commit 476bf89

Please sign in to comment.