Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
including the values used in part.cfgs would be smart...
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed May 13, 2016
1 parent fac176a commit 2aa4eda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FilterExtension/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace FilterExtensions
[KSPAddon(KSPAddon.Startup.MainMenu, true)]
public class Core : MonoBehaviour
{
public static readonly Version version = new Version(2, 5, 1, 0);
public static readonly Version version = new Version(2, 5, 3, 0);

private static Core instance;
public static Core Instance
Expand Down
10 changes: 5 additions & 5 deletions FilterExtension/Utility/PartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ public static bool checkCategory(AvailablePart part, string[] value)
return value.Contains("Pods", StringComparer.OrdinalIgnoreCase);
case PartCategories.Propulsion:
if (isEngine(part))
return value.Contains("Engines", StringComparer.OrdinalIgnoreCase);
return value.Contains("Engines", StringComparer.OrdinalIgnoreCase) || value.Contains("Engine", StringComparer.OrdinalIgnoreCase);
else
return value.Contains("Fuel Tanks", StringComparer.OrdinalIgnoreCase);
return value.Contains("Fuel Tanks", StringComparer.OrdinalIgnoreCase) || value.Contains("FuelTank", StringComparer.OrdinalIgnoreCase);
case PartCategories.Engine:
return value.Contains("Engines", StringComparer.OrdinalIgnoreCase);
return value.Contains("Engines", StringComparer.OrdinalIgnoreCase) || value.Contains("Engine", StringComparer.OrdinalIgnoreCase);
case PartCategories.FuelTank:
return value.Contains("Fuel Tanks", StringComparer.OrdinalIgnoreCase);
return value.Contains("Fuel Tanks", StringComparer.OrdinalIgnoreCase) || value.Contains("FuelTank", StringComparer.OrdinalIgnoreCase);
case PartCategories.Control:
return value.Contains("Control", StringComparer.OrdinalIgnoreCase);
case PartCategories.Structural:
return value.Contains("Structural", StringComparer.OrdinalIgnoreCase);
case PartCategories.Aero:
return value.Contains("Aerodynamics", StringComparer.OrdinalIgnoreCase);
return value.Contains("Aerodynamics", StringComparer.OrdinalIgnoreCase) || value.Contains("Aero", StringComparer.OrdinalIgnoreCase);
case PartCategories.Utility:
return value.Contains("Utility", StringComparer.OrdinalIgnoreCase);
case PartCategories.Science:
Expand Down
Binary file modified GameData/000_FilterExtensions/FilterExtensions.dll
Binary file not shown.

0 comments on commit 2aa4eda

Please sign in to comment.