mirror of
https://github.com/4sval/FModel.git
synced 2026-04-17 15:07:27 -05:00
Added Unattainable rarity and fixed json null
This commit is contained in:
parent
a145564524
commit
ed1828f6d3
|
|
@ -92,9 +92,9 @@ namespace FModel.Methods.Assets.IconCreator
|
|||
RarityCollectionIndexes rColor = RarityCollectionIndexes.Uncommon;
|
||||
switch (rarityToken != null ? rarityToken.Value<string>() : string.Empty)
|
||||
{
|
||||
/*case "EFortRarity::Legendary": OLD IMPOSSIBLE (T9) but its EFortRarity doesn't exist anymore and T9 is now T7
|
||||
case "EFortRarity::Unattainable": //OLD IMPOSSIBLE (T9) but its EFortRarity doesn't exist anymore and T9 is now T7
|
||||
rColor = RarityCollectionIndexes.Impossible_T7;
|
||||
break;*/
|
||||
break;
|
||||
case "EFortRarity::Transcendent":
|
||||
rColor = RarityCollectionIndexes.Transcendent;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -487,14 +487,14 @@ namespace FModel.Methods.Utilities
|
|||
if (json.StartsWith("[") && json.EndsWith("]"))
|
||||
{
|
||||
JArray AssetArray = JArray.FromObject(AssetData);
|
||||
AssetMainToken = AssetArray[0];
|
||||
AssetMainToken = AssetArray.Count() > 0 ? AssetArray[0] : null;
|
||||
}
|
||||
else if (json.StartsWith("{") && json.EndsWith("}"))
|
||||
{
|
||||
AssetMainToken = AssetData;
|
||||
}
|
||||
|
||||
return AssetMainToken;
|
||||
return !string.IsNullOrEmpty(AssetMainToken.ToString()) ? AssetMainToken : null;
|
||||
}
|
||||
|
||||
public static T GetPropertyTag<T>(JArray properties, string name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user