Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON <=> DB utils, unpack compendia to JSON so we can track them #901

Merged
merged 4 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 63 additions & 0 deletions json-packs/assets/Alchemist_98bf680786f73035.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": "asset",
"_id": "98bf680786f73035",
"folder": "6ed9a3c5cdb045aa",
"name": "Alchemist",
"system": {
"requirement": "",
"category": "Path",
"color": null,
"fields": [],
"abilities": [
{
"enabled": true,
"description": "<p>When you create an elixir, choose an effect: Deftness (edge), audacity (heart), vigor (iron), slyness (shadow), or clarity (wits). Then, suffer -1 supply and roll +wits. On a strong hit, you create a single dose. The character who consumes the elixir must @Compendium[foundry-ironsworn.ironswornmoves.c8bacc17f73d3103]{Face Danger} +iron and score a hit, after which they add +1 when making moves with the related stat until their health, spirit, or momentum fall below +1. On a weak hit, as above, but suffer an additional -1 supply to create it.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>As above, and you may choose two effects for a single dose, or create two doses of the same effect.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you prepare an elixir, add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": false,
"name": "Health",
"current": 0,
"max": 5,
"value": 5,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!98bf680786f73035"
}
63 changes: 63 additions & 0 deletions json-packs/assets/Animal_Kin_03b1a72871745961.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": "asset",
"_id": "03b1a72871745961",
"folder": "6ed9a3c5cdb045aa",
"name": "Animal Kin",
"system": {
"requirement": "",
"category": "Path",
"color": null,
"fields": [],
"abilities": [
{
"enabled": true,
"description": "<p>When you make a move to pacify, calm, control, aid, or fend off an animal (or an animal or beast companion), add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>You may add or upgrade an animal or beast companion asset for 1 fewer experience. Once you mark all their abilities, you may @Compendium[foundry-ironsworn.ironswornmoves.b643d9ea53ff8d98]{Forge a Bond} with them and take an automatic strong hit. When you do, mark a bond twice and take 1 experience.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>Once per fight, when you leverage your animal or beast companion to make a move, reroll any dice. On a hit, take +1 momentum.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": false,
"name": "Health",
"current": 0,
"max": 5,
"value": 5,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!03b1a72871745961"
}
63 changes: 63 additions & 0 deletions json-packs/assets/Archer_6926a7946db88fb0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": "asset",
"_id": "6926a7946db88fb0",
"folder": "18b30f608501bf56",
"name": "Archer",
"system": {
"requirement": "<p>If you wield a bow…</p>",
"category": "Combat Talent",
"color": null,
"fields": [],
"abilities": [
{
"enabled": true,
"description": "<p>When you @Compendium[foundry-ironsworn.ironswornmoves.4dd8468e095810a4]{Secure an Advantage} by taking a moment to aim, choose your approach and add +1.</p>\n<ul>\n<li>Trust your instincts: Roll +wits, and take +2 momentum on a strong hit.</li>\n<li>Line up your shot: Roll +edge, and take +1 momentum on a hit.</li>\n</ul>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>Once per fight, when you @Compendium[foundry-ironsworn.ironswornmoves.5288e935906f6d28]{Strike} or @Compendium[foundry-ironsworn.ironswornmoves.7e008d0f656dc8b3]{Clash}, you may take extra shots and suffer -1 supply (decide before rolling). When you do, reroll any dice. On a hit, inflict +2 harm and take +1 momentum.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you @Compendium[foundry-ironsworn.ironswornmoves.8d90dd472856be27]{Resupply} by hunting, add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": false,
"name": "Health",
"current": 0,
"max": 5,
"value": 5,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!6926a7946db88fb0"
}
63 changes: 63 additions & 0 deletions json-packs/assets/Augur_153f1eb966607782.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": "asset",
"_id": "153f1eb966607782",
"folder": "5c9139c5883395ea",
"name": "Augur",
"system": {
"requirement": "",
"category": "Ritual",
"color": null,
"fields": [],
"abilities": [
{
"enabled": true,
"description": "<p>When you summon a flock of crows and ask a single question, roll +wits. On a strong hit, you interpret their calls as a helpful omen. Envision the response (@Compendium[foundry-ironsworn.ironswornmoves.aba3e44b7e810c0f]{Ask the Oracle} if unsure) and take +2 momentum. On a weak hit, the crows ignore your question and offer a clue to an unrelated problem or opportunity in this area. Envision what you learn (@Compendium[foundry-ironsworn.ironswornmoves.aba3e44b7e810c0f]{Ask the Oracle} if unsure), and take +1 momentum.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>As above, and the crows will also help guide you on the proper path. On a hit, add +1 on the next segment when you @Compendium[foundry-ironsworn.ironswornmoves.ac19f4c7f3fe31be]{Undertake a Journey}.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you perform this ritual, add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": false,
"name": "Health",
"current": 0,
"max": 5,
"value": 5,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!153f1eb966607782"
}
63 changes: 63 additions & 0 deletions json-packs/assets/Awakening_f046c70dae00c59e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": "asset",
"_id": "f046c70dae00c59e",
"folder": "5c9139c5883395ea",
"name": "Awakening",
"system": {
"requirement": "",
"category": "Ritual",
"color": null,
"fields": [],
"abilities": [
{
"enabled": true,
"description": "<p>When you create a simulacrum, roll +heart. On a strong hit, your creation is given unnatural life. If it aids you as you make a move to assault or overcome an obstacle through strength, add +2. It has 3 health and suffers harm as appropriate, but is not a companion and may not be healed. At 0 health, it is dead. On a weak hit, as above, but if you roll a 1 on your action die when aided by your creation, you must @Compendium[foundry-ironsworn.ironswornmoves.c8bacc17f73d3103]{Face Danger} +heart to keep it from turning on you (as a formidable foe).</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>Your simulacrum has 6 health.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you perform this ritual, add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": true,
"name": "Health",
"current": 0,
"max": 3,
"value": 3,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!f046c70dae00c59e"
}
68 changes: 68 additions & 0 deletions json-packs/assets/Banner_Sworn_bc8db0abea6bdc73.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"type": "asset",
"_id": "bc8db0abea6bdc73",
"folder": "6ed9a3c5cdb045aa",
"name": "Banner-Sworn",
"system": {
"requirement": "<p>Once you mark a bond with a leader or faction…</p>",
"category": "Path",
"color": null,
"fields": [
{
"name": "Name",
"value": ""
}
],
"abilities": [
{
"enabled": true,
"description": "<p>When you @Compendium[foundry-ironsworn.ironswornmoves.010e27aa4376d4df]{Swear an Iron Vow} to serve your leader or faction on a mission, you may reroll any dice. When you @Compendium[foundry-ironsworn.ironswornmoves.725a21e2f02d7e12]{Fulfill Your Vow} and mark experience, take +1 experience.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you @Compendium[foundry-ironsworn.ironswornmoves.25421995c803340e]{Sojourn} or @Compendium[foundry-ironsworn.ironswornmoves.30046577bc83f2f0]{Make Camp} in the company of your banner-kin, add +1 and take +1 momentum on a hit.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
},
{
"enabled": false,
"description": "<p>When you @Compendium[foundry-ironsworn.ironswornmoves.ed343c963b08f301]{Enter the Fray} bearing your banner, add +1 and take +1 momentum on a hit. When you burn momentum while carrying your banner in combat, take +1 momentum after you reset.</p>",
"hasClock": false,
"clockTicks": 0,
"clockMax": 4
}
],
"track": {
"enabled": false,
"name": "Health",
"current": 0,
"max": 5,
"value": 5,
"min": 0
},
"exclusiveOptions": [],
"conditions": [],
"description": ""
},
"img": "icons/svg/item-bag.svg",
"effects": [],
"sort": 0,
"ownership": {
"default": 0,
"oPggPZM6rWjfN0q2": 3
},
"flags": {},
"_stats": {
"systemId": "foundry-ironsworn",
"systemVersion": "1.22.4",
"coreVersion": "11.309",
"createdTime": 1695949021198,
"modifiedTime": 1695949021198,
"lastModifiedBy": "oPggPZM6rWjfN0q2"
},
"_key": "!items!bc8db0abea6bdc73"
}
Loading