Update output
This commit is contained in:
+12
-1
@@ -21,14 +21,25 @@ namespace Pf2eDataScrapper.Importers.Implementations.Pf2eFoundry.Compendium
|
|||||||
|
|
||||||
protected readonly List<string> DictionaryPaths = [
|
protected readonly List<string> DictionaryPaths = [
|
||||||
"Actor.character.items.[].system.items",
|
"Actor.character.items.[].system.items",
|
||||||
|
"Actor.character.items.[].system.overlays",
|
||||||
|
"Item.ancestry.system.items",
|
||||||
"Item.ancestry.system.boosts",
|
"Item.ancestry.system.boosts",
|
||||||
"Item.background.system.boosts",
|
"Item.background.system.boosts",
|
||||||
"Item.background.system.items",
|
"Item.background.system.items",
|
||||||
"Item.class.system.items",
|
"Item.class.system.items",
|
||||||
|
"Item.consumable.system.spell.system.damage",
|
||||||
|
"Item.consumable.system.spell.system.overlays",
|
||||||
|
"Item.deity.system.spells",
|
||||||
"Item.feat.system.subfeatures.proficiencies",
|
"Item.feat.system.subfeatures.proficiencies",
|
||||||
"Item.kit.system.items",
|
"Item.kit.system.items",
|
||||||
|
"Item.kit.system.items.[value].items",
|
||||||
"Item.spell.system.damage",
|
"Item.spell.system.damage",
|
||||||
"Item.spell.system.heightening.damage"
|
"Item.spell.system.heightening.damage",
|
||||||
|
"Item.spell.system.heightening.levels",
|
||||||
|
"Item.spell.system.heightening.levels.[value].damage",
|
||||||
|
"Item.spell.system.overlays",
|
||||||
|
"Item.spell.system.overlays.[value].system.damage",
|
||||||
|
"Item.spell.system.overlays.[value].system.heightening"
|
||||||
];
|
];
|
||||||
|
|
||||||
public override AbstractSchemaType Resolve(SchemaNode node, JToken? value)
|
public override AbstractSchemaType Resolve(SchemaNode node, JToken? value)
|
||||||
|
|||||||
@@ -134,6 +134,11 @@ namespace Pf2eDataScrapper.SchemaBuilder
|
|||||||
return Types[0].ToString();
|
return Types[0].ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Types.Count == 0)
|
||||||
|
{
|
||||||
|
return "empty";
|
||||||
|
}
|
||||||
|
|
||||||
List<string> result = ["mixed"];
|
List<string> result = ["mixed"];
|
||||||
|
|
||||||
foreach (var type in Types)
|
foreach (var type in Types)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Pf2eDataScrapper.SchemaBuilder.Types
|
|||||||
/// <returns>Строковое представление элемента.</returns>
|
/// <returns>Строковое представление элемента.</returns>
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{GetTypeName()} {Parent.Path}";
|
return $"{GetTypeName()} {{{Parent.Path}}}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace Pf2eDataScrapper.SchemaBuilder.Types
|
|||||||
{
|
{
|
||||||
if (a.IsNullable && !b.IsNullable)
|
if (a.IsNullable && !b.IsNullable)
|
||||||
{
|
{
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Compare(a.Name, b.Name, StringComparison.Ordinal);
|
return string.Compare(a.Name, b.Name, StringComparison.Ordinal);
|
||||||
|
|||||||
Reference in New Issue
Block a user