There's no sight more beautiful to you than a strange brew bubbling in a beaker, and you consume your ingenious elixirs with abandon. You're fascinated by uncovering the secrets of science and the natural world, and you're constantly experimenting in your lab or on the go with inventive concoctions for every eventuality. You are fearless in the face of risk, hurling explosive or toxic creations at your foes. Your unique path toward greatness is lined with alchemical brews that push your mind and body to their limits.
\n@UUID[Compendium.pf2e.journals.JournalEntry.kzxu2dI7tFxv6Ix6.JournalEntryPage.Om4e4tsgNWrComie]{Alchemist}
" - }, - "generalFeatLevels": { - "value": [ - 3, - 7, - 11, - 15, - 19 - ] - }, - "hp": 8, - "items": { - "4bdrn": { - "img": "icons/tools/laboratory/mortar-liquid-pink.webp", - "level": 1, - "name": "Alchemy", - "uuid": "Compendium.pf2e.classfeatures.Item.Alchemy" - }, - "CJ528": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 11, - "name": "Chemical Hardiness", - "uuid": "Compendium.pf2e.classfeatures.Item.Chemical Hardiness" - }, - "JK2gV": { - "img": "icons/consumables/potions/potion-round-stopped-yellow-green.webp", - "level": 15, - "name": "Alchemical Weapon Mastery", - "uuid": "Compendium.pf2e.classfeatures.Item.Alchemical Weapon Mastery" - }, - "NY2Su": { - "img": "icons/creatures/eyes/human-single-blue.webp", - "level": 9, - "name": "Perception Expertise", - "uuid": "Compendium.pf2e.classfeatures.Item.Perception Expertise" - }, - "Q1cDZ": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 15, - "name": "Explosion Dodger", - "uuid": "Compendium.pf2e.classfeatures.Item.Explosion Dodger" - }, - "SWNkG": { - "img": "icons/equipment/chest/breastplate-collared-steel.webp", - "level": 19, - "name": "Medium Armor Mastery", - "uuid": "Compendium.pf2e.classfeatures.Item.Medium Armor Mastery" - }, - "aay1e": { - "img": "systems/pf2e/icons/features/classes/walls-of-will.webp", - "level": 7, - "name": "Will Expertise", - "uuid": "Compendium.pf2e.classfeatures.Item.Will Expertise" - }, - "b3ohx": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 1, - "name": "Research Field", - "uuid": "Compendium.pf2e.classfeatures.Item.Research Field" - }, - "cNnDR": { - "img": "icons/equipment/chest/breastplate-quilted-brown.webp", - "level": 13, - "name": "Medium Armor Expertise", - "uuid": "Compendium.pf2e.classfeatures.Item.Medium Armor Expertise" - }, - "enfdl": { - "img": "systems/pf2e/icons/features/classes/weapon-specialization.webp", - "level": 13, - "name": "Weapon Specialization", - "uuid": "Compendium.pf2e.classfeatures.Item.Weapon Specialization" - }, - "f4a0p": { - "img": "icons/magic/light/orbs-hand-gray.webp", - "level": 9, - "name": "Double Brew", - "uuid": "Compendium.pf2e.classfeatures.Item.Double Brew" - }, - "j5xnl": { - "img": "systems/pf2e/icons/features/classes/alchemical-weapon-expertise.webp", - "level": 7, - "name": "Alchemical Weapon Expertise", - "uuid": "Compendium.pf2e.classfeatures.Item.Alchemical Weapon Expertise" - }, - "l170j": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 13, - "name": "(Choice) Greater Field Discovery", - "uuid": "Compendium.pf2e.classfeatures.Item.Greater Field Discovery" - }, - "plldb": { - "img": "icons/consumables/potions/potion-round-corked-glowing-green.webp", - "level": 9, - "name": "Alchemical Expertise", - "uuid": "Compendium.pf2e.classfeatures.Item.Alchemical Expertise" - }, - "rpCw8": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 17, - "name": "Abundant Vials", - "uuid": "Compendium.pf2e.classfeatures.Item.Abundant Vials" - }, - "vOE57": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 11, - "name": "Advanced Vials", - "uuid": "Compendium.pf2e.classfeatures.Item.Advanced Vials" - }, - "xzcdr": { - "img": "icons/magic/symbols/question-stone-yellow.webp", - "level": 5, - "name": "Field Discovery", - "uuid": "Compendium.pf2e.classfeatures.Item.Field Discovery" - }, - "yc9ak": { - "img": "icons/commodities/materials/bowl-powder-teal.webp", - "level": 5, - "name": "Powerful Alchemy", - "uuid": "Compendium.pf2e.classfeatures.Item.Powerful Alchemy" - }, - "yy1uz": { - "img": "icons/tools/cooking/mortar-stone-yellow.webp", - "level": 17, - "name": "Alchemical Mastery", - "uuid": "Compendium.pf2e.classfeatures.Item.Alchemical Mastery" - } - }, - "keyAbility": { - "value": [ - "int" - ] - }, - "perception": 1, - "publication": { - "license": "ORC", - "remaster": true, - "title": "Pathfinder Player Core 2" - }, - "rules": [ - { - "key": "ActiveEffectLike", - "mode": "upgrade", - "path": "system.proficiencies.attacks.weapon-base-alchemical-bomb.rank", - "value": 1 - } +{ + "_id": "fekYhQe1qrvwarBL", + "folder": "bGvA4p5QGO30eC0r", + "img": "systems/pf2e/icons/default-icons/hazard.svg", + "items": [ + { + "_id": "vsxjIPIKMzsQXXfM", + "img": "systems/pf2e/icons/actions/Reaction.webp", + "name": "Death Throes", + "sort": 0, + "system": { + "actionType": { + "value": "reaction" + }, + "actions": { + "value": null + }, + "category": null, + "description": { + "value": "Trigger A creature touches the vampire's corpse
\nEffect A surge of void energy fills the room as the corpse lurches as though staked. The haunt deals @Damage[10d8[void]] damage to creatures within 30 feet of the corpse; this damage heals undead creatures for the same amount. Living creatures must attempt a @Check[will|dc:30|traits:damaging-effect] save.
\nCritical Success The creature is unaffected.
\nSuccess The creature takes half damage and becomes @UUID[Compendium.pf2e.conditionitems.Item.Drained]{Drained 1}. This drained condition is reduced by 1 after 10 minutes.
\nFailure The creature takes full damage and becomes drained 1.
\nCritical Failure The creature takes double damage and is @UUID[Compendium.pf2e.conditionitems.Item.Drained]{Drained 2}.
" + }, + "publication": { + "license": "OGL", + "remaster": false, + "title": "" + }, + "rules": [], + "slug": null, + "traits": { + "rarity": "common", + "value": [] + } + }, + "type": "action" + } ], - "savingThrows": { - "fortitude": 2, - "reflex": 2, - "will": 1 + "name": "Benefactor's End", + "system": { + "attributes": { + "ac": { + "value": 0 + }, + "hardness": 0, + "hp": { + "details": "", + "max": 0, + "temp": 0, + "value": 0 + }, + "stealth": { + "details": "(expert)
", + "value": 20 + } + }, + "creatureType": "", + "details": { + "description": "A spectral assailant drives a stake into a dying vampire's heart; the vampire collapses and releases a surge of void energy.
", + "disable": "@Check[religion|dc:28] (expert) to drain away the haunt's void energy
", + "isComplex": false, + "level": { + "value": 9 + }, + "publication": { + "license": "OGL", + "remaster": false, + "title": "Pathfinder #183: Field of Maidens" + }, + "reset": "Unless disabled, the haunt materializes again on the next moonrise.
", + "routine": "" + }, + "saves": { + "fortitude": { + "saveDetail": "", + "value": 0 + }, + "reflex": { + "saveDetail": "", + "value": 0 + }, + "will": { + "saveDetail": "", + "value": 0 + } + }, + "statusEffects": [], + "traits": { + "rarity": "common", + "size": { + "value": "med" + }, + "value": [ + "haunt" + ] + } }, - "skillFeatLevels": { - "value": [ - 2, - 4, - 6, - 8, - 10, - 12, - 14, - 16, - 18, - 20 - ] - }, - "skillIncreaseLevels": { - "value": [ - 3, - 5, - 7, - 9, - 11, - 13, - 15, - 17, - 19 - ] - }, - "spellcasting": 0, - "trainedSkills": { - "additional": 3, - "value": [ - "crafting" - ] - }, - "traits": { - "rarity": "common", - "value": [] - } - }, - "type": "class" -} \ No newline at end of file + "type": "hazard" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..f5bdda2 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Pf2e Data Screapper + +Программа обработки данных для игры Pathfinder 2e для создания БД для дальнейшего использования на сайте локализации Pf2e. + +## Общая структура + +### `SchemaBuilder` + +Классы обработки вводимых JSON-данных и создание схемы данных для использовании при формировании обработчиков данных. + +Использование: +```csharp + +SchemaNode schema = new(); // Создание схемы данных + +data = JObject.Parse(reader.ReadToEnd()); // Загрузка данных + +schema.AddValue(data); // Добавление данных +``` + +### `Importers` + +Классы загрузки и обработки данных.