Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaDesigns committed Nov 8, 2023
1 parent b784b6a commit 6902f22
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions Tiger/Schema/Activity/Activity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ private string GetBubbleNameFromBubbleIndex(int index)
public IEnumerable<ActivityEntities> EnumerateActivityEntities(FileHash UnkActivity = null)
{
Tag<SUnkActivity_SK> tag = FileResourcer.Get().GetSchemaTag<SUnkActivity_SK>(UnkActivity);
Console.WriteLine(UnkActivity.ToString());

foreach (var entry in tag.TagData.Unk50)
{
foreach (var entry2 in entry.Unk08)
Expand Down Expand Up @@ -95,7 +93,6 @@ private List<FileHash> CollapseResourceParent(FileHash hash)
if (table.Unk00.TagData.DataTable.TagData.DataEntries.Count > 0)
{
items.Add(table.Unk00.TagData.DataTable.Hash);
Console.WriteLine($"{table.Unk00.TagData.DataTable.Hash}");
}
}
}
Expand All @@ -112,7 +109,6 @@ private List<FileHash> CollapseResourceParent(FileHash hash)
if (table.Unk00.TagData.DataTable.TagData.DataEntries.Count > 0)
{
items.Add(table.Unk00.TagData.DataTable.Hash);
Console.WriteLine($"{table.Unk00.TagData.DataTable.Hash}");
}
}
}
Expand All @@ -129,7 +125,6 @@ private List<FileHash> CollapseResourceParent(FileHash hash)
if (table.Unk00.TagData.DataTable.TagData.DataEntries.Count > 0)
{
items.Add(table.Unk00.TagData.DataTable.Hash);
Console.WriteLine($"{table.Unk00.TagData.DataTable.Hash}");
}
}
}
Expand Down Expand Up @@ -278,26 +273,6 @@ private List<FileHash> CollapseResourceParent(FileHash hash)
}
}
break;

case D2Class_F88C8080:
case D2Class_FA988080:
if(resource.EntityResourceParent.TagData.EntityResource.TagData.UnkHash80 != null)
{
var unk80 = FileResourcer.Get().GetSchemaTag<D2Class_6B908080>(resource.EntityResourceParent.TagData.EntityResource.TagData.UnkHash80.Hash);
//Console.WriteLine($"-{resource.EntityResourceParent.TagData.EntityResource.Hash}");
foreach (var worldid in resourceValue.Unk58)
{
// Console.WriteLine($"{worldid.FNVHash}: WorldID {worldid.WorldID}");
foreach (var a in unk80.TagData.Unk08)
{
if (a.Unk00.Value.Name.Value is not null)
{
//Console.WriteLine($"{Helpers.Fnv(a.Unk00.Value.Name.Value, true):X2} {a.Unk00.Value.Name.Value}");
}
}
}
}
break;
}
}
}
Expand Down Expand Up @@ -325,13 +300,11 @@ private Dictionary<ulong, string> GetWorldIDs(FileHash hash)
var unk80 = FileResourcer.Get().GetSchemaTag<D2Class_6B908080>(resource.EntityResourceParent.TagData.EntityResource.TagData.UnkHash80.Hash);
foreach (var worldid in resourceValue.Unk58)
{
//Console.WriteLine($"{worldid.FNVHash}: WorldID {worldid.WorldID}");
foreach (var a in unk80.TagData.Unk08)
{
if (a.Unk00.Value.Name.Value is not null)
{
var fnv = Helpers.Fnv(a.Unk00.Value.Name.Value, true).ToString("X2");
//Console.WriteLine($"{fnv}: {a.Unk00.Value.Name.Value}");
if (worldid.FNVHash == fnv)
{
items.TryAdd(worldid.WorldID, a.Unk00.Value.Name.Value);
Expand Down

0 comments on commit 6902f22

Please sign in to comment.