mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Field enum cleanup, part 1
This commit is contained in:
@@ -189,10 +189,6 @@ namespace SabreTools.Library.DatItems
|
||||
if (filter.DatItem_Default.MatchesNeutral(null, Default) == false)
|
||||
return false;
|
||||
|
||||
// Filter on conditions
|
||||
if (filter.DatItem_Conditions.MatchesNeutral(null, Conditions != null ? (bool?)(Conditions.Count > 0) : null) == false)
|
||||
return false;
|
||||
|
||||
// Filter on individual conditions
|
||||
if (Conditions != null)
|
||||
{
|
||||
@@ -222,9 +218,6 @@ namespace SabreTools.Library.DatItems
|
||||
if (fields.Contains(Field.DatItem_Default))
|
||||
Default = null;
|
||||
|
||||
if (fields.Contains(Field.DatItem_Conditions))
|
||||
Conditions = null;
|
||||
|
||||
if (Conditions != null)
|
||||
{
|
||||
foreach (Condition condition in Conditions)
|
||||
@@ -272,9 +265,6 @@ namespace SabreTools.Library.DatItems
|
||||
if (fields.Contains(Field.DatItem_Default))
|
||||
Default = newItem.Default;
|
||||
|
||||
if (fields.Contains(Field.DatItem_Conditions))
|
||||
Conditions = newItem.Conditions;
|
||||
|
||||
// Field replacement doesn't make sense for DatItem_Condition*
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user