Remove ProcessNullifiedItemDB implementation; ProcessItemName common functionality

This commit is contained in:
Matt Nadareski
2025-01-09 10:01:56 -05:00
parent e12828fa0e
commit 68c235f716
6 changed files with 41 additions and 132 deletions

View File

@@ -132,7 +132,7 @@ namespace SabreTools.DatFiles.Formats
foreach (var kvp in items)
{
// Check for a "null" item
var datItem = ProcessNullifiedItemDB(kvp);
var datItem = new KeyValuePair<long, DatItem>(kvp.Key, ProcessNullifiedItem(kvp.Value));
// Get the machine for the item
var machine = ItemsDB.GetMachineForItem(datItem.Key);

View File

@@ -499,7 +499,7 @@ namespace SabreTools.DatFiles.Formats
WriteStartGame(jtw, kvp.Value);
// Check for a "null" item
var datItem = ProcessNullifiedItemDB(kvp);
var datItem = new KeyValuePair<long, DatItem>(kvp.Key, ProcessNullifiedItem(kvp.Value));
// Write out the item if we're not ignoring
if (!ShouldIgnore(datItem.Value, ignoreblanks))

View File

@@ -328,7 +328,7 @@ namespace SabreTools.DatFiles.Formats
WriteStartGame(xtw, kvp.Value);
// Check for a "null" item
var datItem = ProcessNullifiedItemDB(kvp);
var datItem = new KeyValuePair<long, DatItem>(kvp.Key, ProcessNullifiedItem(kvp.Value));
// Write out the item if we're not ignoring
if (!ShouldIgnore(datItem.Value, ignoreblanks))