mirror of
https://github.com/4sval/FModel.git
synced 2026-04-22 17:47:51 -05:00
Fortnite: Rarity fix
This commit is contained in:
parent
2b459a785b
commit
1fbba80769
|
|
@ -36,6 +36,7 @@ public class BaseIcon : UCreator
|
|||
|
||||
if (Object.TryGetValue(out FInstancedStruct[] dataList, "DataList"))
|
||||
{
|
||||
GetRarity(dataList);
|
||||
GetSeries(dataList);
|
||||
Preview = Utils.GetBitmap(dataList);
|
||||
}
|
||||
|
|
@ -139,6 +140,12 @@ public class BaseIcon : UCreator
|
|||
GetSeries(export);
|
||||
}
|
||||
|
||||
private void GetRarity(FInstancedStruct[] s)
|
||||
{
|
||||
if (s.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out EFortRarity _, "Rarity") == true) is { } dl)
|
||||
GetRarity(dl.NonConstStruct.Get<EFortRarity>("Rarity"));
|
||||
}
|
||||
|
||||
private void GetSeries(FInstancedStruct[] s)
|
||||
{
|
||||
if (s.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out FPackageIndex _, "Series") == true) is { } dl)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user