@opencharacter/godbound-core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by pnpm build:packs. Do not edit.
2
- export default {"manifest":{"id":"godbound-core","version":"0.1.0","specVersion":"0.2.0","license":"LicenseRef-sine-nomine-free-edition","credit":"Text from Godbound: A Game of Divine Heroes (Free Edition), © 2016 Sine Nomine Publishing, by Kevin Crawford. Used with the author's permission.","notices":{"permission":"The content of the Godbound Free Edition is reproduced here with the permission of its author, Kevin Crawford; content found only in the deluxe edition is not included.","not-affiliated":"Godbound is a game by Kevin Crawford, published by Sine Nomine Publishing. This pack is an unofficial model of the game: it is not affiliated with or endorsed by Sine Nomine Publishing."},"defaultLanguage":"en"},"rules":{"families":{"save":["hardiness","evasion","spirit"],"attribute":["str","dex","con","wis","int","cha"],"factLevel":[2,3,4,5,6,7,8,9,10]},"fields":{"hp.max":{"type":"integer","formula":"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))","min":1},"hp.current":{"type":"integer","input":true,"default":8,"min":0,"max":"hp.max"},"attack.bonus":{"type":"integer","formula":"level"},"ac.natural":{"type":"integer","formula":9},"ac.armor":{"type":"integer","formula":9},"ac.shield":{"type":"integer","formula":0},"ac.value":{"type":"integer","formula":"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)"},"miracle.armor":{"type":"boolean","input":true,"default":false},"saves.hardiness.base":{"type":"integer","formula":"16 - level - max(attributes.str.mod, attributes.con.mod)"},"saves.evasion.base":{"type":"integer","formula":"16 - level - max(attributes.dex.mod, attributes.int.mod)"},"saves.spirit.base":{"type":"integer","formula":"16 - level - max(attributes.wis.mod, attributes.cha.mod)"},"saves.hardiness.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.hardiness"]},"saves.evasion.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.evasion"]},"saves.spirit.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.spirit"]},"saves.hardiness.value":{"type":"integer","formula":"saves.hardiness.base + saves.hardiness.penalty","tags":["save","save.hardiness"]},"saves.evasion.value":{"type":"integer","formula":"saves.evasion.base + saves.evasion.penalty","tags":["save","save.evasion"]},"saves.spirit.value":{"type":"integer","formula":"saves.spirit.base + saves.spirit.penalty","tags":["save","save.spirit"]},"fray.die":{"type":"dice","formula":"1d8"},"damage.melee.floor":{"type":"integer","formula":0},"damage.melee.twoHandedFloor":{"type":"integer","formula":0},"damage.melee.bonus":{"type":"integer","formula":0},"damage.ranged.floor":{"type":"integer","formula":0},"damage.melee.maximize":{"type":"integer","formula":0},"damage.ranged.maximize":{"type":"integer","formula":0},"fray.maximize":{"type":"integer","formula":0},"fury.active":{"type":"boolean","input":true,"default":false},"fury.spent":{"type":"boolean","input":true,"default":false},"attributes.str.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.dex.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.con.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.wis.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.int.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.cha.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.str.score":{"type":"integer","formula":"attributes.str.base","tags":["attribute","attr.str"]},"attributes.dex.score":{"type":"integer","formula":"attributes.dex.base","tags":["attribute","attr.dex"]},"attributes.con.score":{"type":"integer","formula":"attributes.con.base","tags":["attribute","attr.con"]},"attributes.wis.score":{"type":"integer","formula":"attributes.wis.base","tags":["attribute","attr.wis"]},"attributes.int.score":{"type":"integer","formula":"attributes.int.base","tags":["attribute","attr.int"]},"attributes.cha.score":{"type":"integer","formula":"attributes.cha.base","tags":["attribute","attr.cha"]},"attributes.str.mod":{"type":"integer","formula":"attributes.str.score <= 3 ? -3\n : attributes.str.score <= 5 ? -2\n : attributes.str.score <= 8 ? -1\n : attributes.str.score <= 12 ? 0\n : attributes.str.score <= 15 ? 1\n : attributes.str.score <= 17 ? 2\n : attributes.str.score == 18 ? 3 : 4","tags":["attribute-mod","attr.str"]},"attributes.dex.mod":{"type":"integer","formula":"attributes.dex.score <= 3 ? -3\n : attributes.dex.score <= 5 ? -2\n : attributes.dex.score <= 8 ? -1\n : attributes.dex.score <= 12 ? 0\n : attributes.dex.score <= 15 ? 1\n : attributes.dex.score <= 17 ? 2\n : attributes.dex.score == 18 ? 3 : 4","tags":["attribute-mod","attr.dex"]},"attributes.con.mod":{"type":"integer","formula":"attributes.con.score <= 3 ? -3\n : attributes.con.score <= 5 ? -2\n : attributes.con.score <= 8 ? -1\n : attributes.con.score <= 12 ? 0\n : attributes.con.score <= 15 ? 1\n : attributes.con.score <= 17 ? 2\n : attributes.con.score == 18 ? 3 : 4","tags":["attribute-mod","attr.con"]},"attributes.wis.mod":{"type":"integer","formula":"attributes.wis.score <= 3 ? -3\n : attributes.wis.score <= 5 ? -2\n : attributes.wis.score <= 8 ? -1\n : attributes.wis.score <= 12 ? 0\n : attributes.wis.score <= 15 ? 1\n : attributes.wis.score <= 17 ? 2\n : attributes.wis.score == 18 ? 3 : 4","tags":["attribute-mod","attr.wis"]},"attributes.int.mod":{"type":"integer","formula":"attributes.int.score <= 3 ? -3\n : attributes.int.score <= 5 ? -2\n : attributes.int.score <= 8 ? -1\n : attributes.int.score <= 12 ? 0\n : attributes.int.score <= 15 ? 1\n : attributes.int.score <= 17 ? 2\n : attributes.int.score == 18 ? 3 : 4","tags":["attribute-mod","attr.int"]},"attributes.cha.mod":{"type":"integer","formula":"attributes.cha.score <= 3 ? -3\n : attributes.cha.score <= 5 ? -2\n : attributes.cha.score <= 8 ? -1\n : attributes.cha.score <= 12 ? 0\n : attributes.cha.score <= 15 ? 1\n : attributes.cha.score <= 17 ? 2\n : attributes.cha.score == 18 ? 3 : 4","tags":["attribute-mod","attr.cha"]},"attributes.str.check":{"type":"integer","formula":"21 - attributes.str.score","tags":["attribute-check","attr.str"]},"attributes.dex.check":{"type":"integer","formula":"21 - attributes.dex.score","tags":["attribute-check","attr.dex"]},"attributes.con.check":{"type":"integer","formula":"21 - attributes.con.score","tags":["attribute-check","attr.con"]},"attributes.wis.check":{"type":"integer","formula":"21 - attributes.wis.score","tags":["attribute-check","attr.wis"]},"attributes.int.check":{"type":"integer","formula":"21 - attributes.int.score","tags":["attribute-check","attr.int"]},"attributes.cha.check":{"type":"integer","formula":"21 - attributes.cha.score","tags":["attribute-check","attr.cha"]},"facts.origin":{"type":"string","input":true,"default":""},"facts.career":{"type":"string","input":true,"default":""},"facts.relationship":{"type":"string","input":true,"default":""},"facts.level2":{"type":"string","input":true,"default":""},"facts.level3":{"type":"string","input":true,"default":""},"facts.level4":{"type":"string","input":true,"default":""},"facts.level5":{"type":"string","input":true,"default":""},"facts.level6":{"type":"string","input":true,"default":""},"facts.level7":{"type":"string","input":true,"default":""},"facts.level8":{"type":"string","input":true,"default":""},"facts.level9":{"type":"string","input":true,"default":""},"facts.level10":{"type":"string","input":true,"default":""},"goal":{"type":"string","input":true,"default":""},"level":{"type":"integer","input":true,"default":1,"min":1,"max":10},"xp.current":{"type":"integer","input":true,"default":0,"min":0},"xp.next":{"type":"integer","formula":"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]"},"dominion.current":{"type":"integer","input":true,"default":0,"min":0},"dominion.spent":{"type":"integer","input":true,"default":0,"min":0},"dominion.next":{"type":"integer","formula":"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]"},"apotheosis.free":{"type":"boolean","input":true,"default":false},"dominion.monthly":{"type":"integer","formula":"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0"},"wealth.current":{"type":"integer","input":true,"default":0,"min":0},"influence.max":{"type":"integer","formula":"2 + (level - 1)"},"influence.committed":{"type":"integer","input":true,"default":0,"min":0},"influence.free":{"type":"integer","formula":"influence.max - influence.committed"},"effort.scene":{"type":"integer","input":true,"default":0,"min":0},"effort.day":{"type":"integer","input":true,"default":0,"min":0},"effort.active":{"type":"integer","formula":"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))"},"effort.max":{"type":"integer","formula":"2 + (level - 1) + (fury.active ? level : 0)"},"effort.committed":{"type":"integer","formula":"effort.scene + effort.day + effort.active"},"effort.free":{"type":"integer","formula":"effort.max - effort.committed"},"lowMagic.spontaneous":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.prepared":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.strain":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.preparedMax":{"type":"integer","formula":"2 * level"},"lowMagic.spontaneousMax":{"type":"integer","formula":"max(0, level - floor(lowMagic.prepared / 2))"},"words.bound":{"type":"set","of":"word"},"words.count":{"type":"integer","formula":"countCopies(copy.type == 'word' && copy.fields.bindable)"},"gifts.points.total":{"type":"integer","formula":"6 + 2 * (level - 1)"},"gifts.effortOfTheWord":{"type":"integer","formula":"countCopies(copy.item == @gifts.universal.effort-of-the-word)"},"gifts.influenceOfTheWord":{"type":"integer","formula":"countCopies(copy.item == @gifts.universal.influence-of-the-word)"},"gifts.points.spent":{"type":"integer","formula":"sumCopies(\n !has(copy.fields.word) ? 1\n : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1)\n : 2,\n copy.type == 'gift' && !has(copy.fields.apotheosisLevel))\n + max(0, gifts.effortOfTheWord - 1)\n + 3 * max(0, words.count - 3)"},"gifts.points.free":{"type":"integer","formula":"gifts.points.total - gifts.points.spent"},"luck.reserve":{"type":"integer","input":true,"default":0,"min":0,"max":20},"luck.rolled":{"type":"boolean","input":true,"default":false}},"situational":[{"id":"fact","type":"boolean","default":false,"rolls":["check"],"effects":[{"target":{"rolls":["check"]},"op":"add","value":4}]},{"id":"luckReserve","type":"boolean","default":false,"rolls":["check","save","attack"],"available":"luck.reserve > 0","effects":[{"target":{"rolls":["check","save","attack"]},"op":"rollModifier","value":{"kind":"setFaces","faces":["luck.reserve"]},"when":"situational.luckReserve"}]}],"resultBands":{"d20":{"value":"roll.kept[0] == 20 || (roll.kept[0] != 1 && roll.total >= flags.target) ? 1 : 0","bands":[{"id":"success","when":"roll.value == 1"},{"id":"failure","when":true}]},"attack":{"value":"roll.kept[0] == 20 ? 2 : roll.kept[0] == 1 ? 0 : !flags.known ? 1\n : roll.total + flags.ac >= 20 ? 2 : 0","bands":[{"id":"hit","when":"roll.value == 2"},{"id":"rolled","when":"roll.value == 1"},{"id":"miss","when":true}]}},"actions":[{"id":"attribute-check","tags":["check"],"params":{"attribute":{"type":"enum","values":["str","dex","con","wis","int","cha"]},"modifier":{"type":"integer","default":0}},"results":{"bands":"d20"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"target":"fieldOf('attributes.{attribute}.check', params.attribute)"}}]},{"id":"roll","kind":"roll","tags":["check",{"formula":"'check.' + params.attribute"}],"bands":"d20","parts":[{"dice":"1d20"},{"value":"params.modifier","when":"params.modifier != 0"}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"result","kind":"outcome","result":"steps.roll.band","data":{"roll":"steps.roll.total","target":"flags.target"}}]},{"id":"saving-throw","tags":["save"],"params":{"save":{"type":"enum","values":["hardiness","evasion","spirit"]},"modifier":{"type":"integer","default":0}},"results":{"bands":"d20"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"target":"fieldOf('saves.{save}.value', params.save)","result":"'failure'"}}]},{"id":"roll","kind":"roll","tags":["save",{"formula":"'save.' + params.save"}],"bands":"d20","parts":[{"dice":"1d20"},{"value":"params.modifier","when":"params.modifier != 0"}]},{"id":"rolled","kind":"branch","cases":[{"when":true,"flags":{"result":"steps.roll.band"}}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"effort","kind":"choice","tags":["failed-save"],"when":"flags.result == 'failure' && effort.free > 0","options":[{"id":"commit","flags":{"result":"'success'"},"changes":[{"type":"adjust","field":"effort.day","by":1}]},{"id":"accept"}],"recommend":"'accept'"},{"id":"result","kind":"outcome","result":"flags.result","data":{"roll":"steps.roll.total","target":"flags.target"}}]},{"id":"attack","tags":["attack"],"available":"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed)\n && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)","params":{"attribute":{"type":"enum","values":["str","dex","con","wis","int","cha"],"optional":true},"targetAc":{"type":"integer","optional":true},"modifier":{"type":"integer","default":0},"maximize":{"type":"boolean","default":false},"straight":{"type":"boolean","default":false}},"results":{"bands":"attack"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"known":"has(params.targetAc)","ac":"has(params.targetAc) ? params.targetAc : 0","ranged":"has(item.ranged) && item.ranged","base":"item.damage","mod":"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute)\n : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags)\n : item.attribute == 'str' ? attributes.str.mod\n : item.attribute == 'dex' ? attributes.dex.mod\n : max(attributes.str.mod, attributes.dex.mod)","floor":"has(item.ranged) && item.ranged ? damage.ranged.floor\n : max(damage.melee.floor,\n has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)"}}]},{"id":"dice","kind":"branch","cases":[{"when":true,"flags":{"die":"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base","bonus":"flags.ranged ? 0 : damage.melee.bonus","maximize":"params.maximize\n || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)"}}]},{"id":"hit","kind":"roll","tags":[{"formula":"flags.ranged ? 'attack.ranged' : 'attack.melee'"}],"bands":"attack","parts":[{"dice":"1d20"},{"field":"'attack.bonus'"},{"value":"flags.mod"},{"value":"params.modifier","when":"params.modifier != 0"},{"value":"item.hitModifier","when":"has(item.hitModifier)"}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"damage","kind":"roll","when":"steps.hit.band != 'miss'","tags":[{"formula":"flags.ranged ? 'damage.ranged' : 'damage.melee'"}],"parts":[{"dice":"flags.die"},{"value":"flags.mod"},{"value":"flags.bonus","when":"flags.bonus != 0"}]},{"id":"faces","kind":"branch","cases":[{"when":"has(steps.damage)","flags":{"faces":"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die)))\n : steps.damage.kept","add":"steps.damage.total - sumList(steps.damage.kept, x)"}}]},{"id":"total","kind":"branch","cases":[{"when":"has(steps.damage) && params.straight","flags":{"damage":"sumList(flags.faces, x) + flags.add"}},{"when":"has(steps.damage)","flags":{"damage":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)\n + maxList(flags.faces,\n (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4)\n - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))"}},{"when":true,"flags":{"damage":0}}]},{"id":"result","kind":"outcome","result":"steps.hit.band","data":{"hit":"steps.hit.total","damage":"flags.damage"}}]},{"id":"fray","tags":["fray"],"params":{"straight":{"type":"boolean","default":false}},"results":["rolled"],"steps":[{"id":"roll","kind":"roll","tags":["fray"],"parts":[{"dice":"fray.die"}]},{"id":"faces","kind":"branch","cases":[{"when":true,"flags":{"faces":"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die)))\n : steps.roll.kept"}}]},{"id":"total","kind":"branch","cases":[{"when":"params.straight","flags":{"damage":"sumList(flags.faces, x)"}},{"when":true,"flags":{"damage":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"damage":"flags.damage"}}]},{"id":"take-damage","tags":["health"],"params":{"amount":{"type":"integer","min":0}},"results":["taken"],"steps":[{"id":"deal","kind":"changes","changes":[{"type":"adjust","when":"params.amount > 0","field":"hp.current","by":"-params.amount","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'taken'","data":{"amount":"params.amount"}}]},{"id":"heal","tags":["health"],"params":{"amount":{"type":"integer","min":0},"magical":{"type":"boolean","default":false}},"results":["healed"],"steps":[{"id":"restore","kind":"changes","changes":[{"type":"adjust","when":"params.amount > 0","field":"hp.current","by":"params.amount","tags":["healing"]},{"type":"adjust","when":"params.magical","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'healed'","data":{"amount":"params.amount"}}]},{"id":"rest","tags":["health","rest"],"results":["rested"],"steps":[{"id":"restore","kind":"changes","changes":[{"type":"set","field":"hp.current","value":"hp.max"}]},{"id":"result","kind":"outcome","result":"'rested'"}]},{"id":"divine-fury","tags":["health","fury"],"available":"hp.current == 0 && !fury.spent && !fury.active","results":["raging"],"steps":[{"id":"rage","kind":"changes","changes":[{"type":"set","field":"hp.current","value":"ceil(hp.max / 2)"},{"type":"set","field":"fury.active","value":true},{"type":"set","field":"fury.spent","value":true}]},{"id":"result","kind":"outcome","result":"'raging'","data":{"rounds":"level"}}]},{"id":"end-fury","tags":["health","fury"],"available":"fury.active","results":["ended"],"steps":[{"id":"end","kind":"changes","changes":[{"type":"set","field":"fury.active","value":false}]},{"id":"result","kind":"outcome","result":"'ended'"}]},{"id":"create-character","tags":["creation"],"available":"character.creating && words.count == 0","params":{"random":{"type":"boolean","default":false}},"results":["created"],"steps":[{"id":"method","kind":"choice","when":"!params.random","options":[{"id":"roll"},{"id":"array"}],"recommend":"'array'"},{"id":"roll1","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll2","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll3","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll4","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll5","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll6","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"scores","kind":"branch","cases":[{"when":"has(steps.roll1)","flags":{"values":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]","order":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]"}},{"when":true,"flags":{"values":"[16, 14, 13, 13, 10, 8]","order":"[13, 14, 16, 13, 10, 8]"}}]},{"id":"attributes","kind":"allocate","fields":{"type":"field","where":"'attribute-base' in item.tags"},"values":["flags.values[0]","flags.values[1]","flags.values[2]","flags.values[3]","flags.values[4]","flags.values[5]"],"recommend":{"attributes.str.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]","attributes.dex.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]","attributes.con.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]","attributes.wis.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]","attributes.int.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]","attributes.cha.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]"}},{"id":"words","kind":"choice","options":{"content":{"type":"word","where":"item.bindable && picks == 0"}},"repeat":{"max":3,"min":3},"random":"params.random","recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"moreWords","kind":"choice","when":"!params.random","options":[{"id":"no"},{"id":"yes"}],"recommend":"'no'"},{"id":"extraWord","kind":"choice","when":"has(steps.moreWords) && steps.moreWords.picked == 'yes'","sheet":"proposed","options":{"content":{"type":"word","where":"item.bindable && !(item.id in words.bound)"}},"recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"gifts","kind":"choice","sheet":"proposed","options":{"content":{"type":"gift","where":"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound\n || (!params.random && item.degree == 'lesser'))\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free"}},"repeat":{"max":12,"min":0},"random":"params.random","prefer":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"armor","kind":"choice","options":[{"id":"none"},{"id":"light","changes":[{"type":"addItem","entry":{"item":"'armor.light'","equipped":true}}]},{"id":"medium","changes":[{"type":"addItem","entry":{"item":"'armor.medium'","equipped":true}}]},{"id":"heavy","changes":[{"type":"addItem","entry":{"item":"'armor.heavy'","equipped":true}}]}],"random":"params.random","recommend":"'none'"},{"id":"shield","kind":"choice","options":[{"id":"none"},{"id":"shield","changes":[{"type":"addItem","entry":{"item":"'shields.shield'","equipped":true}}]}],"random":"params.random","recommend":"'none'"},{"id":"weapon","kind":"choice","options":{"content":{"type":"weapon","where":"item.id != @weapons.unarmed"}},"random":"params.random","recommend":"@weapons.medium","changes":[{"type":"addItem","entry":{"item":"picked.id","equipped":true}}]},{"id":"picks","kind":"choice","options":{"pending":{}},"random":"params.random && choice.id == 'invocations'"},{"id":"finish","kind":"changes","sheet":"proposed","changes":[{"type":"set","field":"hp.current","value":"hp.max"},{"type":"finishCreation"}]},{"id":"result","kind":"outcome","result":"'created'"}]},{"id":"level-up","tags":["level"],"available":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","results":["advanced"],"steps":[{"id":"advance","kind":"changes","changes":[{"type":"adjust","field":"level","by":1},{"type":"set","field":"fury.spent","value":false}]},{"id":"newWord","kind":"choice","sheet":"proposed","when":"gifts.points.free >= 3","options":[{"id":"no"},{"id":"yes"}],"recommend":"'no'"},{"id":"word","kind":"choice","when":"has(steps.newWord) && steps.newWord.picked == 'yes'","sheet":"proposed","options":{"content":{"type":"word","where":"item.bindable && !(item.id in words.bound)"}},"recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"gifts","kind":"choice","sheet":"proposed","options":{"content":{"type":"gift","where":"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound || item.degree == 'lesser')\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free"}},"repeat":{"max":12,"min":0},"prefer":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"picks","kind":"choice","options":{"pending":{}}},{"id":"result","kind":"outcome","result":"'advanced'"}]},{"id":"commit-effort","tags":["effort"],"available":"effort.free > 0","params":{"duration":{"type":"enum","values":["scene","day"],"default":"day"},"amount":{"type":"integer","default":1,"min":1}},"results":["committed"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","when":"params.duration == 'scene'","field":"effort.scene","by":"params.amount"},{"type":"adjust","when":"params.duration == 'day'","field":"effort.day","by":"params.amount"}]},{"id":"result","kind":"outcome","result":"'committed'","data":{"amount":"params.amount"}}]},{"id":"miracle","tags":["effort","miracle"],"available":"effort.free > 0","params":{"kind":{"type":"enum","values":["effect","mimic-day-gift","armor","hurt-one","hurt-several"],"default":"effect"},"straight":{"type":"boolean","default":false}},"results":["invoked"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"effort.day","by":"params.kind == 'mimic-day-gift' ? 2 : 1"},{"type":"set","when":"params.kind == 'armor'","field":"miracle.armor","value":true}]},{"id":"damage","kind":"roll","when":"params.kind == 'hurt-one' || params.kind == 'hurt-several'","tags":["damage","damage.miracle"],"parts":[{"dice":"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6"}]},{"id":"total","kind":"branch","cases":[{"when":true,"flags":{"damage":"!has(steps.damage) ? 0\n : params.straight ? steps.damage.total\n : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'invoked'","data":{"damage":"flags.damage"}}]},{"id":"end-scene","tags":["effort","rest"],"results":["ended"],"steps":[{"id":"reset","kind":"changes","changes":[{"type":"set","field":"effort.scene","value":0},{"type":"set","field":"miracle.armor","value":false}]},{"id":"result","kind":"outcome","result":"'ended'"}]},{"id":"new-day","tags":["effort","rest"],"params":{"keepActive":{"type":"boolean","default":false}},"results":["dawn"],"steps":[{"id":"reset","kind":"changes","changes":[{"type":"set","field":"effort.scene","value":0},{"type":"set","field":"effort.day","value":0},{"type":"set","field":"miracle.armor","value":false},{"type":"set","field":"luck.reserve","value":0},{"type":"set","field":"luck.rolled","value":false},{"type":"setState","when":"!params.keepActive","copies":{"type":"gift","where":"self.committed > 0"},"key":"committed","value":0},{"type":"setState","when":"!params.keepActive","grants":{"where":"item.type == 'gift' && self.committed > 0"},"key":"committed","value":0},{"type":"setState","copies":{"type":"artifact","where":"self.spent > 0"},"key":"spent","value":0},{"type":"setState","copies":{"type":"artifact","where":"self.bonded"},"key":"bonded","value":false}]},{"id":"result","kind":"outcome","result":"'dawn'"}]},{"id":"commit-influence","tags":["influence"],"available":"influence.free > 0","params":{"amount":{"type":"integer","default":1,"min":1}},"results":["committed"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"influence.committed","by":"params.amount"}]},{"id":"result","kind":"outcome","result":"'committed'"}]},{"id":"reclaim-influence","tags":["influence"],"available":"influence.committed > 0","params":{"amount":{"type":"integer","default":1,"min":1}},"results":["reclaimed"],"steps":[{"id":"reclaim","kind":"changes","changes":[{"type":"adjust","field":"influence.committed","by":"-params.amount"}]},{"id":"result","kind":"outcome","result":"'reclaimed'"}]},{"id":"cast-invocation","tags":["theurgy"],"params":{"speed":{"type":"enum","values":["slow","quick","instant"],"default":"slow"}},"results":["cast"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","when":"params.speed == 'quick'","field":"effort.scene","by":1},{"type":"adjust","when":"params.speed == 'instant'","field":"effort.day","by":1}]},{"id":"backlash","kind":"roll","when":"params.speed == 'instant'","tags":["backlash"],"parts":[{"dice":"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20"}]},{"id":"harm","kind":"branch","cases":[{"when":"has(steps.backlash)","flags":{"damage":"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}},{"when":true,"flags":{"damage":0}}]},{"id":"hurt","kind":"changes","when":"flags.damage > 0","changes":[{"type":"adjust","field":"hp.current","by":"-flags.damage","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'cast'","data":{"rounds":"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0","damage":"flags.damage"}}]},{"id":"cast-spontaneous","tags":["low-magic"],"available":"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax","results":["cast"],"steps":[{"id":"cast","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.spontaneous","by":1}]},{"id":"cost","kind":"choice","when":"item.strain","options":[{"id":"strain","changes":[{"type":"adjust","field":"lowMagic.strain","by":1}]},{"id":"injury"}],"recommend":"'strain'"},{"id":"injury","kind":"roll","when":"has(steps.cost) && steps.cost.picked == 'injury'","tags":["backlash"],"parts":[{"dice":"1d6"}]},{"id":"hurt","kind":"changes","when":"has(steps.injury) && steps.injury.total >= 2","changes":[{"type":"adjust","field":"hp.current","by":"steps.injury.total >= 6 ? -2 : -1","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'cast'"}]},{"id":"prepare-spell","tags":["low-magic"],"available":"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax","results":["prepared"],"steps":[{"id":"store","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.prepared","by":1}]},{"id":"result","kind":"outcome","result":"'prepared'"}]},{"id":"release-spell","tags":["low-magic"],"available":"item.casting == 'prepared' && lowMagic.prepared > 0","results":["released"],"steps":[{"id":"release","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.prepared","by":-1}]},{"id":"result","kind":"outcome","result":"'released'"}]},{"id":"negate-low-magic","tags":["low-magic","effort"],"available":"effort.free > 0","results":["negated"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"effort.scene","by":1}]},{"id":"result","kind":"outcome","result":"'negated'"}]},{"id":"magic-respite","tags":["low-magic","rest"],"available":"lowMagic.spontaneous > 0 || lowMagic.strain > 0","results":["rested"],"steps":[{"id":"reset","kind":"changes","changes":[{"type":"set","field":"lowMagic.spontaneous","value":0},{"type":"set","field":"lowMagic.strain","value":0}]},{"id":"result","kind":"outcome","result":"'rested'"}]},{"id":"bond-artifact","tags":["artifact","effort"],"available":"!self.bonded && effort.free > 0","results":["bonded"],"steps":[{"id":"bond","kind":"changes","changes":[{"type":"adjust","field":"effort.day","by":1},{"type":"setState","entry":"self","key":"bonded","value":true}]},{"id":"result","kind":"outcome","result":"'bonded'"}]},{"id":"invoke-gift","tags":["gift","effort"],"available":"item.commit != 'none' && !has(item.blast) && !has(item.healing)\n && (item.commit != 'active' || self.committed == 0)\n && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)","results":["invoked"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"flags.artifact && item.commit != 'active'","entry":"self","key":"spent","by":1},{"type":"adjustState","when":"flags.artifact && item.commit == 'active'","grant":"self","key":"committed","by":1},{"type":"adjustState","when":"!flags.artifact && item.commit == 'active'","entry":"self","key":"committed","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'day'","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'invoked'"}]},{"id":"release-gift","tags":["gift","effort"],"available":"item.commit == 'active' && self.committed > 0","results":["released"],"steps":[{"id":"release","kind":"changes","changes":[{"type":"setState","when":"self.artifactEffort > 0","grant":"self","key":"committed","value":0},{"type":"setState","when":"self.artifactEffort == 0","entry":"self","key":"committed","value":0}]},{"id":"result","kind":"outcome","result":"'released'"}]},{"id":"gift-blast","tags":["gift","damage"],"available":"has(item.blast) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","params":{"mob":{"type":"boolean","default":false},"straight":{"type":"boolean","default":false}},"results":["rolled"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"item.commit != 'none' && flags.artifact","entry":"self","key":"spent","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","field":"effort.day","by":1}]},{"id":"roll","kind":"roll","tags":["damage","damage.gift"],"parts":[{"dice":"params.mob && has(item.blastMob) ? item.blastMob : item.blast"}]},{"id":"total","kind":"branch","cases":[{"when":"params.straight || params.mob || item.blastStraight","flags":{"damage":"steps.roll.total"}},{"when":true,"flags":{"damage":"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"damage":"flags.damage"}}]},{"id":"gift-heal","tags":["gift","healing"],"available":"has(item.healing) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","params":{"onSelf":{"type":"boolean","default":true}},"results":["healed"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"item.commit != 'none' && flags.artifact","entry":"self","key":"spent","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","field":"effort.day","by":1}]},{"id":"roll","kind":"roll","tags":["healing"],"parts":[{"dice":"item.healing"}]},{"id":"self","kind":"changes","when":"params.onSelf","changes":[{"type":"adjust","field":"hp.current","by":"steps.roll.total","tags":["healing"]},{"type":"adjust","when":"item.healingCost == 'day'","field":"effort.day","by":1}]},{"id":"other","kind":"changes","when":"!params.onSelf","to":"target","changes":[{"type":"adjust","field":"hp.current","by":"steps.roll.total","tags":["healing"]},{"type":"adjust","when":"item.healingCost == 'day'","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'healed'","data":{"amount":"steps.roll.total"}}]},{"id":"luck-reserve","tags":["luck"],"available":"!luck.rolled","results":["rolled"],"steps":[{"id":"roll","kind":"roll","tags":["luck"],"parts":[{"dice":"1d20"}]},{"id":"keep","kind":"changes","changes":[{"type":"set","field":"luck.reserve","value":"steps.roll.total"},{"type":"set","field":"luck.rolled","value":true}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"roll":"steps.roll.total"}}]},{"id":"spend-luck","tags":["luck"],"available":"luck.reserve > 0","results":["spent"],"steps":[{"id":"spend","kind":"changes","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"result","kind":"outcome","result":"'spent'","data":{"roll":"luck.reserve"}}]}],"effects":[{"id":"miracle-armor","target":"ac.natural","op":"atMost","value":3,"when":"miracle.armor"},{"id":"low-magic-strain","target":{"rolls":["attack","check","save"]},"op":"add","value":"-lowMagic.strain","when":"lowMagic.strain > 0"}],"followUps":[{"id":"divine-fury","becomes":"hp.current == 0 && !fury.spent && !fury.active","action":"divine-fury"},{"id":"level-up","while":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","action":"level-up"}],"settings":{"rounding":"floor"},"constraints":[{"id":"influence-limit","check":"influence.committed <= influence.max"},{"id":"effort-limit","check":"effort.committed <= effort.max"},{"id":"prepared-spells","check":"lowMagic.prepared <= lowMagic.preparedMax"},{"id":"spontaneous-spells","check":"lowMagic.spontaneous <= lowMagic.spontaneousMax"},{"id":"creation-words","check":"!character.creating || words.count >= 3"},{"id":"gift-points","check":"gifts.points.spent <= gifts.points.total"},{"id":"effort-of-the-word","check":"gifts.effortOfTheWord <= max(1, words.count)"},{"id":"influence-of-the-word","check":"gifts.influenceOfTheWord <= max(1, words.count)"},{"id":"gift-once","copies":{"type":"gift","where":"!item.repeatable"},"check":"countCopies(copy.item == item.id) <= 1"}],"creation":[{"id":"guided","action":"create-character"},{"id":"random","action":"create-character","params":{"random":true},"random":true}],"contentTypes":{"weapon":{"carried":true,"equippable":true,"fields":{"damage":{"type":"dice","required":true},"attribute":{"type":"enum","values":["str","dex","str-or-dex"],"required":true},"ranged":{"type":"boolean","default":false},"twoHanded":{"type":"boolean","default":false},"range":{"type":"integer","min":0}},"actions":[{"use":"attack"}]},"armor":{"carried":true,"equippable":true,"fields":{"weight":{"type":"enum","values":["light","medium","heavy"],"required":true},"ac":{"type":"integer","required":true},"penalties":{"type":"integer","default":0,"min":0,"max":2}},"effects":[{"id":"armor-class","target":"ac.armor","op":"atMost","value":"item.ac","when":"self.equipped"}]},"shield":{"carried":true,"equippable":true,"fields":{"bonus":{"type":"integer","default":1,"min":0}},"effects":[{"id":"shield","target":"ac.shield","op":"add","value":"-item.bonus","when":"self.equipped"}]},"invocation":{"carried":false,"copies":{"perItem":1},"fields":{"tier":{"type":"enum","values":["gate","way","throne"],"required":true}},"actions":[{"use":"cast-invocation"}]},"tradition":{"carried":false,"copies":{"perItem":1},"fields":{"casting":{"type":"enum","values":["ritual","spontaneous","prepared"],"required":true},"strain":{"type":"boolean","default":false}},"actions":[{"use":"cast-spontaneous"},{"use":"prepare-spell"},{"use":"release-spell"}]},"artifact":{"carried":true,"equippable":true,"fields":{"effort":{"type":"integer","default":0,"min":0},"dominionCost":{"type":"integer","min":0}},"state":{"bonded":{"type":"boolean","default":false},"spent":{"type":"integer","default":0,"min":0,"max":"item.effort"}},"actions":[{"use":"bond-artifact"}]},"word":{"carried":false,"copies":{"perItem":1},"fields":{"bindable":{"type":"boolean","default":true},"damage":{"type":"dice"},"ranged":{"type":"boolean"},"range":{"type":"integer","min":0}},"effects":[{"id":"bound","target":"words.bound","op":"grant","value":{"formula":"item.id"},"when":"item.bindable"}],"actions":[{"use":"attack"}]},"gift":{"carried":false,"fields":{"word":{"type":"id","of":"word"},"degree":{"type":"enum","values":["lesser","greater"]},"activation":{"type":"enum","values":["constant","on-turn","action","instant"],"required":true},"smite":{"type":"boolean","default":false},"commit":{"type":"enum","values":["none","active","scene","day"],"default":"none"},"repeatable":{"type":"boolean","default":false},"requires":{"type":"id","of":"gift"},"apotheosisLevel":{"type":"integer","min":1,"max":10},"damage":{"type":"dice"},"ranged":{"type":"boolean"},"range":{"type":"integer","min":0},"attribute":{"type":"enum","values":["str","dex","str-or-dex"]},"twoHanded":{"type":"boolean"},"hitModifier":{"type":"integer"},"blast":{"type":"dice"},"blastMob":{"type":"dice"},"blastStraight":{"type":"boolean","default":false},"halvedBy":{"type":"enum","values":["hardiness","evasion","spirit"]},"healing":{"type":"dice"},"healingCost":{"type":"enum","values":["none","day"],"default":"none"}},"state":{"committed":{"type":"integer","default":0,"min":0},"artifactEffort":{"type":"integer","default":0,"min":0}},"actions":[{"use":"invoke-gift"},{"use":"release-gift"},{"use":"attack"},{"use":"gift-blast"},{"use":"gift-heal"}]}},"standardCopies":[{"type":"weapon","where":"item.id == @weapons.unarmed"},{"type":"word","where":"item.id == @words.apotheosis"}],"display":{"groups":[{"id":"attributes","priority":0,"members":{"type":"field","where":"'attribute' in item.tags"}},{"id":"saves","priority":0,"members":{"type":"field","where":"'save' in item.tags"}},{"id":"combat","priority":0},{"id":"effort","priority":0},{"id":"facts","priority":1},{"id":"advancement","priority":1},{"id":"resources","priority":1},{"id":"low-magic","priority":2,"showWhen":"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0"},{"id":"words","kind":"content","priority":0,"members":{"type":"word"}},{"id":"gifts","kind":"content","priority":0,"members":{"type":"gift"},"sectionBy":"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0"},{"id":"invocations","kind":"content","priority":1,"members":{"type":"invocation"},"sectionBy":"indexOf(['gate', 'way', 'throne'], item.tier)"},{"id":"traditions","kind":"content","priority":2,"members":{"type":"tradition"}},{"id":"weapons","kind":"content","priority":1,"members":{"type":"weapon"}},{"id":"armor","kind":"content","priority":1,"members":{"type":"armor"}},{"id":"shields","kind":"content","priority":1,"members":{"type":"shield"}},{"id":"artifacts","kind":"content","priority":1,"members":{"type":"artifact"}},{"id":"attacks","kind":"actions","priority":0,"members":{"type":"action","where":"'attack' in item.tags || 'fray' in item.tags"}},{"id":"rolls","kind":"actions","priority":0,"members":{"type":"action","where":"'check' in item.tags || 'save' in item.tags"}},{"id":"powers","kind":"actions","priority":1,"members":{"type":"action","where":"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags\n || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags\n || 'luck' in item.tags || 'influence' in item.tags"}},{"id":"health-actions","kind":"actions","priority":1,"members":{"type":"action","where":"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags"}},{"id":"creation","kind":"actions","priority":3,"visibility":"background","members":{"type":"action","where":"'creation' in item.tags || 'level' in item.tags"}}],"fields":{"attributes.str.score":{"with":[{"field":"attributes.str.mod","as":"modifier"},{"field":"attributes.str.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"str"}}]},"attributes.dex.score":{"with":[{"field":"attributes.dex.mod","as":"modifier"},{"field":"attributes.dex.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"dex"}}]},"attributes.con.score":{"with":[{"field":"attributes.con.mod","as":"modifier"},{"field":"attributes.con.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"con"}}]},"attributes.wis.score":{"with":[{"field":"attributes.wis.mod","as":"modifier"},{"field":"attributes.wis.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"wis"}}]},"attributes.int.score":{"with":[{"field":"attributes.int.mod","as":"modifier"},{"field":"attributes.int.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"int"}}]},"attributes.cha.score":{"with":[{"field":"attributes.cha.mod","as":"modifier"},{"field":"attributes.cha.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"cha"}}]},"attributes.str.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.dex.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.con.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.wis.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.int.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.cha.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.str.mod":{"format":"signed"},"attributes.dex.mod":{"format":"signed"},"attributes.con.mod":{"format":"signed"},"attributes.wis.mod":{"format":"signed"},"attributes.int.mod":{"format":"signed"},"attributes.cha.mod":{"format":"signed"},"saves.hardiness.value":{"with":[{"field":"saves.hardiness.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"hardiness"}}]},"saves.evasion.value":{"with":[{"field":"saves.evasion.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"evasion"}}]},"saves.spirit.value":{"with":[{"field":"saves.spirit.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"spirit"}}]},"saves.hardiness.base":{"hidden":true},"saves.evasion.base":{"hidden":true},"saves.spirit.base":{"hidden":true},"hp.current":{"groups":["combat"],"priority":0,"visibility":"primary","with":[{"field":"hp.max","as":"max"}],"rolls":[{"action":"take-damage"},{"action":"heal"}]},"hp.max":{"groups":["combat"],"priority":1,"visibility":"background"},"ac.value":{"groups":["combat"],"priority":0,"visibility":"primary"},"ac.natural":{"groups":["combat"],"priority":2,"visibility":"background"},"ac.armor":{"groups":["combat"],"priority":2,"visibility":"background"},"ac.shield":{"groups":["combat"],"priority":2,"visibility":"background"},"miracle.armor":{"groups":["combat"],"priority":2,"input":{"widget":"checkbox"},"showWhen":"miracle.armor"},"attack.bonus":{"groups":["combat"],"priority":0,"format":"signed"},"fray.die":{"groups":["combat"],"priority":0,"format":"dice","rolls":[{"action":"fray"}]},"fury.active":{"groups":["combat"],"priority":1,"input":{"widget":"checkbox"}},"fury.spent":{"groups":["combat"],"priority":2,"input":{"widget":"checkbox"}},"damage.melee.floor":{"hidden":true},"damage.melee.twoHandedFloor":{"hidden":true},"damage.melee.bonus":{"hidden":true},"damage.ranged.floor":{"hidden":true},"damage.melee.maximize":{"hidden":true},"damage.ranged.maximize":{"hidden":true},"fray.maximize":{"hidden":true},"effort.free":{"groups":["effort"],"priority":0,"visibility":"primary","with":[{"field":"effort.max","as":"max"}]},"effort.max":{"groups":["effort"],"priority":1},"effort.committed":{"groups":["effort"],"priority":1},"effort.active":{"groups":["effort"],"priority":2},"effort.scene":{"groups":["effort"],"priority":2},"effort.day":{"groups":["effort"],"priority":2},"influence.free":{"groups":["effort"],"priority":0,"with":[{"field":"influence.max","as":"max"}]},"influence.max":{"groups":["effort"],"priority":1},"influence.committed":{"groups":["effort"],"priority":2},"luck.reserve":{"groups":["effort"],"priority":2,"showWhen":"luck.reserve > 0 || luck.rolled"},"luck.rolled":{"hidden":true},"facts.origin":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.career":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.relationship":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.level2":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 2"},"facts.level3":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 3"},"facts.level4":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 4"},"facts.level5":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 5"},"facts.level6":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 6"},"facts.level7":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 7"},"facts.level8":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 8"},"facts.level9":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 9"},"facts.level10":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 10"},"goal":{"groups":["facts"],"priority":2,"input":{"widget":"text"}},"level":{"groups":["advancement"],"priority":0,"visibility":"primary"},"xp.current":{"groups":["advancement"],"priority":0,"with":[{"field":"xp.next","as":"detail"}]},"xp.next":{"groups":["advancement"],"priority":1},"dominion.spent":{"groups":["advancement"],"priority":0,"with":[{"field":"dominion.next","as":"detail"}]},"dominion.next":{"groups":["advancement"],"priority":1},"gifts.points.free":{"groups":["advancement"],"priority":0,"with":[{"field":"gifts.points.total","as":"max"}]},"gifts.points.total":{"groups":["advancement"],"priority":1},"gifts.points.spent":{"groups":["advancement"],"priority":1},"gifts.effortOfTheWord":{"hidden":true},"gifts.influenceOfTheWord":{"hidden":true},"words.bound":{"hidden":true},"words.count":{"hidden":true},"apotheosis.free":{"groups":["advancement"],"priority":2,"input":{"widget":"checkbox"}},"dominion.current":{"groups":["resources"],"priority":0},"dominion.monthly":{"groups":["resources"],"priority":1,"showWhen":"dominion.monthly > 0"},"wealth.current":{"groups":["resources"],"priority":0},"lowMagic.spontaneous":{"groups":["low-magic"],"priority":0,"with":[{"field":"lowMagic.spontaneousMax","as":"max"}]},"lowMagic.spontaneousMax":{"groups":["low-magic"],"priority":1},"lowMagic.prepared":{"groups":["low-magic"],"priority":0,"with":[{"field":"lowMagic.preparedMax","as":"max"}]},"lowMagic.preparedMax":{"groups":["low-magic"],"priority":1},"lowMagic.strain":{"groups":["low-magic"],"priority":1,"showWhen":"lowMagic.strain > 0"}},"types":{"word":{"quantity":{"hidden":true}},"gift":{"quantity":{"hidden":true},"state":{"committed":{"priority":0,"showWhen":"item.commit == 'active'"}},"fields":{"damage":{"format":"dice"},"blast":{"format":"dice"},"blastMob":{"format":"dice"},"healing":{"format":"dice"}}},"invocation":{"quantity":{"hidden":true}},"tradition":{"quantity":{"hidden":true}},"weapon":{"fields":{"damage":{"format":"dice"}}},"artifact":{"state":{"spent":{"priority":0},"bonded":{"priority":0}}}}},"tags":["attribute","attribute-base","attribute-mod","attribute-check","attr.str","attr.dex","attr.con","attr.wis","attr.int","attr.cha","save.hardiness","save.evasion","save.spirit","save-penalty","check.str","check.dex","check.con","check.wis","check.int","check.cha","attack.melee","attack.ranged","damage.melee","damage.ranged","damage.gift","damage.miracle","fray","healing","luck","backlash","failed-save","creation","level","effort","miracle","influence","rest","health","fury","gift","theurgy","low-magic","artifact"]},"content":[{"id":"armor.heavy","type":"armor","fields":{"weight":"heavy","ac":3,"penalties":2},"choices":[{"id":"penalized","pick":"item.penalties","from":{"values":["hardiness","evasion","spirit"]},"recommend":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","effects":[{"target":{"fields":{"where":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags"}},"op":"add","value":4,"when":"self.equipped"}]}]},{"id":"armor.light","type":"armor","fields":{"weight":"light","ac":7}},{"id":"armor.medium","type":"armor","fields":{"weight":"medium","ac":5,"penalties":1},"choices":[{"id":"penalized","pick":"item.penalties","from":{"values":["hardiness","evasion","spirit"]},"recommend":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","effects":[{"target":{"fields":{"where":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags"}},"op":"add","value":4,"when":"self.equipped"}]}]},{"id":"gifts.alacrity.all-directions-as-one","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"constant"}},{"id":"gifts.alacrity.all-encompassing-presence","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.faster-than-thought","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"instant","smite":true,"commit":"scene"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.flickering-advance","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.alacrity.mist-on-water","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.alacrity.storm-breaks","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.alacrity.swifter-than-the-sun","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.alacrity.untouchable","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"instant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.walk-between-the-rain","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.apotheosis.attend-the-faithful","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":7}},{"id":"gifts.apotheosis.hear-prayer","type":"gift","fields":{"word":"words.apotheosis","activation":"constant","commit":"none","apotheosisLevel":4}},{"id":"gifts.apotheosis.mark-of-the-prophet","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":6}},{"id":"gifts.apotheosis.perceive-the-petitioner","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":5}},{"id":"gifts.apotheosis.receive-the-incense-of-faith","type":"gift","fields":{"word":"words.apotheosis","activation":"constant","commit":"none","apotheosisLevel":2}},{"id":"gifts.apotheosis.sanctify-shrine","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":3}},{"id":"gifts.apotheosis.smite-the-apostate","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":3}},{"id":"gifts.apotheosis.to-bless-the-nations","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":8}},{"id":"gifts.artifice.command-the-wheels","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.artifice.faultless-repair","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.artifice.hammerhand","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"on-turn","commit":"active"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10,"when":"self.committed > 0"},{"target":"damage.ranged.floor","op":"atLeast","value":10,"when":"self.committed > 0"}]},{"id":"gifts.artifice.makers-eyes","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}]},{"id":"gifts.artifice.mark-the-maker","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action"}},{"id":"gifts.artifice.perpetual-perfection","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}]},{"id":"gifts.artifice.reverence-of-steel","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"constant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}],"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.artifice.ten-thousand-tools","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"constant"}},{"id":"gifts.artifice.transmuter","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"scene","blast":"(ceil(level / 2))d6"}},{"id":"gifts.beasts.conquer-the-beast-within","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.distant-howl","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.beasts.eyes-of-the-cat","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"constant"}},{"id":"gifts.beasts.link-of-unity","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"constant","commit":"day"}},{"id":"gifts.beasts.lord-of-the-wild","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.many-skinned-mantle","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.red-in-tooth-and-claw","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":false}},{"id":"gifts.beasts.scent-the-prey","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.beasts.untamed-will","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.bow.bar-the-red-descent","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.bow.bolt-of-invincible-skill","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.bow.feathered-tempest","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.bow.inexorable-shaft","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}],"effects":[{"target":"damage.ranged.maximize","op":"atLeast","value":1,"when":"self.committed > 0"}]},{"id":"gifts.bow.lord-of-that-which-falls","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"instant","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}]},{"id":"gifts.bow.none-beyond-reach","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"instant"}},{"id":"gifts.bow.omnipresent-reach","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"constant","damage":"1d10","ranged":true},"effects":[{"target":"damage.ranged.floor","op":"atLeast","value":10}]},{"id":"gifts.bow.rain-of-sorrow","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}]},{"id":"gifts.bow.seeking-flight","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.command.bearer-of-the-scarlet-crown","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}],"effects":[{"target":"dominion.monthly","op":"add","value":1}]},{"id":"gifts.command.guards-seize-him","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action"}},{"id":"gifts.command.invincible-iron-general","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}]},{"id":"gifts.command.know-the-inner-truth","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.command.lieutenants-wisdom","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.command.lines-of-rule","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.command.soldiers-faithful-heart","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"constant"}},{"id":"gifts.command.thousand-loyal-troops","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.command.thrall-making-shout","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}]},{"id":"gifts.death.keeper-of-the-graves","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.death.mantle-of-quietus","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.death.no-release","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.pale-crown-beckons","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.death.reaping-word","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.scythe-hand","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.death.summons-to-day","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.white-bone-harvest","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"3 * level"}},{"id":"gifts.death.withholding-the-mercy","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.conviction-of-error","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.deception.deceivers-unblinking-eye","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.familiar-face","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.deception.impenetrable-deceit","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.deception.liars-flawless-grace","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.perfect-masquerade","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.deception.shadow-play","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.deception.veiled-step","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.deception.walking-ghost","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.earth.builder-of-mountain-peaks","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"action"},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.earth.earthwalker","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.fury-of-the-avalanche","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"on-turn","commit":"active","damage":"1d10","ranged":true},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.earth.jewel-bright-eyes","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.mountain-thews","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.earth.obduracy-of-stone","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.earth.rebellion-of-the-soil","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"action","blast":"1d20"}},{"id":"gifts.earth.stonespeaker","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.tremors-of-the-worlds-heart","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.endurance.amaranth-vitality","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","healing":"ceil(level / 3)"}},{"id":"gifts.endurance.body-of-iron-will","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.endurance.defy-the-iron","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.endurance.elemental-scorn","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","commit":"active","repeatable":true}},{"id":"gifts.endurance.fear-no-steel","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}],"effects":[{"id":"reduce","target":{"incoming":{"fields":["hp.current"],"tags":["damage"]}},"op":"add","value":1,"when":"self.committed > 0"},{"id":"floor","target":{"incoming":{"fields":["hp.current"],"tags":["damage"]}},"op":"atMost","value":0,"when":"self.committed > 0"}]},{"id":"gifts.endurance.harder-than-this","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.endurance.unbreakable","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"instant","commit":"day"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}]},{"id":"gifts.endurance.undying","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}]},{"id":"gifts.endurance.untiring-inspiration","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","commit":"active"}},{"id":"gifts.fertility.birth-blessing","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action"}},{"id":"gifts.fertility.cornucopian-blessing","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.second-spring","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"day","healing":"1d6 + level"}},{"id":"gifts.fertility.seeds-of-death","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.fertility.sense-of-ash","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fertility.sever-the-line","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.touch-of-green-restraint","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.fertility.unending-abundance","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.withering-curse","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"scene","blast":"(level)d12"}},{"id":"gifts.fire.burning-rebuke","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.fire.cinder-words","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.fire.consuming-gaze","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action"}},{"id":"gifts.fire.firestorm","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(level)d6","halvedBy":"evasion"}},{"id":"gifts.fire.firewalker","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.fire.give-forth-the-ashes","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action"}},{"id":"gifts.fire.master-of-the-furnace","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fire.nimbus-of-flame","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fire.searing-blade","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.health.burning-vitality","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"on-turn","commit":"day"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.deplete-health","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.ender-of-plagues","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.health.flesh-made-true","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action"}},{"id":"gifts.health.intrinsic-health","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"constant"},"effects":[{"target":"hp.max","op":"add","value":"2 * level"}]},{"id":"gifts.health.lifegiver","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"constant","commit":"day"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.merciful-gaze","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action","healing":"2d6 + level","healingCost":"day"}},{"id":"gifts.health.plaguebringer","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.health.vital-furnace","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"on-turn","commit":"day"}},{"id":"gifts.journeying.dust-at-your-heels","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.journeying.exodus-road","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.hour-of-need","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.know-the-path","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"constant"}},{"id":"gifts.journeying.master-of-the-key","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.journeying.opening-the-way","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.journeying.path-of-racing-dawn","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.swift-progress","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.journeying.untroubled-passage","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.knowledge.best-course","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.best-laid-plans","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"day"}},{"id":"gifts.knowledge.disclose-the-flaw","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"instant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.excision-of-understanding","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action"}},{"id":"gifts.knowledge.irresistible-query","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.omniscient-scholar","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.truth-that-burns","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.unveiled-truth","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.word-far-off","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.luck.blighted-luck","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.luck.by-chance","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"action","commit":"scene","blast":"1d12"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}]},{"id":"gifts.luck.impossible-victory","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}]},{"id":"gifts.luck.nine-lives","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"constant"}},{"id":"gifts.luck.salting-away-the-luck","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.luck.spun-fortune","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.luck.unfailing-fortune","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}],"effects":[{"target":{"rolls":["check","save","attack","damage","fray","healing","luck"]},"op":"rollModifier","value":{"kind":"reroll","below":1,"once":true}}]},{"id":"gifts.luck.unmarred-beneficence","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.luck.world-against-you","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":100}},{"id":"gifts.might.descent-of-the-mountain","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"action","damage":"1d12","ranged":true,"attribute":"str","hitModifier":-4}},{"id":"gifts.might.falling-meteor-strike","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"action","commit":"scene","blast":"4 * level","blastStraight":true}},{"id":"gifts.might.fists-of-black-iron","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"constant"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10},{"target":"damage.melee.twoHandedFloor","op":"atLeast","value":12}]},{"id":"gifts.might.leap-the-moon","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.might.loosening-gods-teeth","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.might.shoulders-wide-as-the-world","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.might.stronger-than-you","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"constant"}},{"id":"gifts.might.surge-of-strength","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.might.thews-of-the-gods","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.night.damn-their-eyes","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.darkling-stairs","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"constant"}},{"id":"gifts.night.darkness-at-noon","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.flesh-of-shadows","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.knives-of-night","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.night.road-of-shadows","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.speaker-in-dreams","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.still-silence-of-sleep","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.welcoming-the-dusk","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.passion.banner-of-passion","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.passion.fashioning-a-friend","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.passion.follow-the-threads","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action"}},{"id":"gifts.passion.heart-like-clay","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.heart-of-the-lion","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"constant","commit":"scene"}},{"id":"gifts.passion.infectious-passion","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.snuff-the-hearts-candle","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action"}},{"id":"gifts.passion.song-buried-deep","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.terrifying-mien","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sea.body-of-water","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.sea.crushing-depths","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sea.living-torrent","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":100}},{"id":"gifts.sea.lord-of-the-waters","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sea.river-tamer","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.salt-spray-purity","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.secrets-of-the-deep","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sea.tsunami-hand","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"3 * level"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.walking-with-the-tide","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sky.boreal-spike","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"(ceil(level / 2))d10"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.clouds-below","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sky.eyes-above","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action"}},{"id":"gifts.sky.fury-of-the-heavens","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"halvedBy":"hardiness"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.rain-of-lightning","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action","blast":"1d6","blastMob":"1d6"}},{"id":"gifts.sky.sapphire-wings","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sky.stormsword","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.sky.voice-of-the-winds","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.windsinger","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.sorcery.adept-of-the-gate","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"constant"},"choices":[{"id":"invocations","pick":4,"from":{"type":"invocation","where":"item.tier == 'gate'"},"recommend":"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.adept-of-the-throne","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","requires":"gifts.sorcery.adept-of-the-way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"},{"id":"word","when":"@words.sorcery in words.bound"}],"choices":[{"id":"invocations","pick":2,"from":{"type":"invocation","where":"item.tier == 'throne'"},"recommend":"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.adept-of-the-way","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","requires":"gifts.sorcery.adept-of-the-gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"},{"id":"word","when":"@words.sorcery in words.bound"}],"choices":[{"id":"invocations","pick":3,"from":{"type":"invocation","where":"item.tier == 'way'"},"recommend":"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.excellent-pause","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sorcery.greater-pavis-of-rule","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sorcery.perfection-of-understanding","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"constant"}},{"id":"gifts.sorcery.ruler-of-the-lesser-paths","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sorcery in words.bound"}]},{"id":"gifts.sorcery.subtle-eye-of-knowing","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"on-turn"}},{"id":"gifts.sorcery.will-that-burns","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sorcery.wizards-wrath","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.sun.body-of-burning-light","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200},"effects":[{"target":"ac.natural","op":"atMost","value":3,"when":"self.committed > 0"}]},{"id":"gifts.sun.creations-first-light","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sun.hasten-to-the-light","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sun.hope-of-the-dawn","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sun.illumine-that-which-is","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sun.purging-noonday-blaze","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sun.purity-of-brilliant-law","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sun.sunlit-sight","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.sun.sunstrike","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"(level)d10"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sword.contempt-of-distance","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"constant"}},{"id":"gifts.sword.cutting-the-crimson-road","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}]},{"id":"gifts.sword.nine-iron-walls","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sword.path-through-war","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}]},{"id":"gifts.sword.shattering-hand","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}],"effects":[{"target":"damage.melee.maximize","op":"atLeast","value":1,"when":"self.committed > 0"},{"target":"fray.maximize","op":"atLeast","value":1,"when":"self.committed > 0"}]},{"id":"gifts.sword.steel-without-end","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"constant"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10},{"target":"damage.melee.bonus","op":"add","value":1}]},{"id":"gifts.sword.thirsting-razor","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sword.through-a-red-forest","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sword.unerring-blade","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.time.echoes-of-the-past","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.time.hand-on-the-balance","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.immediate-foresight","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.time.look-forward","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"action","commit":"day"}},{"id":"gifts.time.prophetic-insight","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"day"}},{"id":"gifts.time.reflex-of-regret","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.time.reweave-time","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.sundered-moment","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"on-turn","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.withering-hour","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.universal.corona-of-fury","type":"gift","fields":{"degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(ceil(level / 2))d8"}},{"id":"gifts.universal.divine-wrath","type":"gift","fields":{"degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(level)d8"}},{"id":"gifts.universal.effort-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant","repeatable":true},"effects":[{"target":"effort.max","op":"add","value":1}]},{"id":"gifts.universal.excellence-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant"},"choices":[{"id":"attribute","from":{"values":["str","dex","con","wis","int","cha"]},"recommend":"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":18}]}]},{"id":"gifts.universal.influence-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant","repeatable":true},"effects":[{"target":"influence.max","op":"add","value":2}]},{"id":"gifts.wealth.craft-to-make","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.wealth.ever-sufficient-provenance","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.wealth.flawless-reproduction","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.wealth.forever-sufficient","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.golden-gods-hand","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.prosperitys-abundance","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action"}},{"id":"gifts.wealth.sustain-the-multitude","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.wealth.thieves-bane","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.wither-the-purse","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"scene"}},{"id":"invocations.auspice-of-the-divine-king","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.barred-gates-of-forbiddance","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.beacon-of-celestial-purity","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.bright-gods-canticle","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.curse-of-the-blighted-strand","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.deafening-word-of-truth","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.delaying-the-coming-of-dawn","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.directed-convulsion-of-law","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.excision-of-days","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.far-distant-lance","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.gifts-of-spring-and-winter","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.glyph-of-crowned-impunity","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.grinding-teeth-of-god","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.hearts-desire","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.kiss-of-the-crane","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.legion-of-marching-clay","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.mirrored-wheel-of-the-seasons","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.open-the-night-road","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.palace-of-the-sorcerer-prince","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.path-to-the-bright-sanctum","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.pierce-the-veil-of-night","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.pore-of-hell","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.ranks-of-pale-bone","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.seal-of-regnal-dominion","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.shutting-the-dark-way","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.sign-of-avulsive-banishment","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.summon-the-black-iron-servitor","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.sunder-every-sorcery","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.sunder-the-greater-spell","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.sunder-the-lesser-spell","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.tireless-iron-cavalcade","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.trumpet-of-far-utterance","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.tumulus-of-sanctified-night","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"shields.shield","type":"shield"},{"id":"traditions.academy-of-thought","type":"tradition","fields":{"casting":"spontaneous","strain":true}},{"id":"traditions.cinnabar-order","type":"tradition","fields":{"casting":"spontaneous"}},{"id":"traditions.curse-eaters","type":"tradition","fields":{"casting":"prepared"}},{"id":"traditions.empty-way","type":"tradition","fields":{"casting":"spontaneous"}},{"id":"traditions.hedge-magic","type":"tradition","fields":{"casting":"ritual"}},{"id":"traditions.merciful-hand","type":"tradition","fields":{"casting":"prepared"}},{"id":"traditions.seers-of-the-bright-eye","type":"tradition","fields":{"casting":"ritual"}},{"id":"traditions.theotechnicians","type":"tradition","fields":{"casting":"ritual"}},{"id":"weapons.heavy","type":"weapon","fields":{"damage":"1d10","attribute":"str","twoHanded":true}},{"id":"weapons.light","type":"weapon","fields":{"damage":"1d6","attribute":"str-or-dex"}},{"id":"weapons.medium","type":"weapon","fields":{"damage":"1d8","attribute":"str"}},{"id":"weapons.paired","type":"weapon","fields":{"damage":"1d10","attribute":"str-or-dex","twoHanded":true}},{"id":"weapons.ranged-one-handed","type":"weapon","fields":{"damage":"1d6","attribute":"dex","ranged":true,"range":40}},{"id":"weapons.ranged-two-handed","type":"weapon","fields":{"damage":"1d8","attribute":"dex","ranged":true,"twoHanded":true,"range":300}},{"id":"weapons.unarmed","type":"weapon","fields":{"damage":"1d2","attribute":"str-or-dex"}},{"id":"words.alacrity","type":"word","effects":[{"target":"attributes.dex.score","op":"atLeast","value":"attributes.dex.base >= 16 ? 18 : 16"}]},{"id":"words.apotheosis","type":"word","fields":{"bindable":false},"grants":[{"item":"gifts.apotheosis.receive-the-incense-of-faith","when":"level >= 2 && !apotheosis.free"},{"item":"gifts.apotheosis.sanctify-shrine","when":"level >= 3 && !apotheosis.free"},{"item":"gifts.apotheosis.smite-the-apostate","when":"level >= 3 && !apotheosis.free"},{"item":"gifts.apotheosis.hear-prayer","when":"level >= 4 && !apotheosis.free"},{"item":"gifts.apotheosis.perceive-the-petitioner","when":"level >= 5 && !apotheosis.free"},{"item":"gifts.apotheosis.mark-of-the-prophet","when":"level >= 6 && !apotheosis.free"},{"item":"gifts.apotheosis.attend-the-faithful","when":"level >= 7 && !apotheosis.free"},{"item":"gifts.apotheosis.to-bless-the-nations","when":"level >= 8 && !apotheosis.free"}]},{"id":"words.artifice","type":"word"},{"id":"words.beasts","type":"word"},{"id":"words.bow","type":"word"},{"id":"words.command","type":"word","effects":[{"target":"attributes.cha.score","op":"atLeast","value":"attributes.cha.base >= 16 ? 18 : 16"}]},{"id":"words.death","type":"word"},{"id":"words.deception","type":"word","choices":[{"id":"attribute","from":{"values":["dex","cha"]},"recommend":"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.earth","type":"word","choices":[{"id":"attribute","from":{"values":["str","con"]},"recommend":"attributes.str.base <= attributes.con.base ? 'str' : 'con'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.endurance","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.fertility","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.fire","type":"word","fields":{"damage":"1d10","ranged":true,"range":50}},{"id":"words.health","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.journeying","type":"word"},{"id":"words.knowledge","type":"word","choices":[{"id":"attribute","from":{"values":["int","wis"]},"recommend":"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.luck","type":"word","actions":[{"use":"luck-reserve"},{"use":"spend-luck"}]},{"id":"words.might","type":"word","effects":[{"target":"attributes.str.score","op":"atLeast","value":19}]},{"id":"words.night","type":"word"},{"id":"words.passion","type":"word","choices":[{"id":"attribute","from":{"values":["cha","wis"]},"recommend":"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.sea","type":"word"},{"id":"words.sky","type":"word"},{"id":"words.sorcery","type":"word","actions":[{"use":"negate-low-magic"}]},{"id":"words.sun","type":"word"},{"id":"words.sword","type":"word"},{"id":"words.time","type":"word","effects":[{"target":"attributes.wis.score","op":"atLeast","value":"attributes.wis.base >= 16 ? 18 : 16"}]},{"id":"words.wealth","type":"word"}],"upgrades":[],"formulas":{"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next":{"text":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["character","creating"]}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["xp","current"]},"right":{"type":"name","path":["xp","next"]}}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["dominion","spent"]},"right":{"type":"name","path":["dominion","next"]}}}},"!character.creating || words.count >= 3":{"text":"!character.creating || words.count >= 3","tree":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"name","path":["character","creating"]}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":3}}}},"!flags.artifact && (item.commit == 'day' || item.commit == 'active')":{"text":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"day"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}}},"!flags.artifact && item.commit == 'active'":{"text":"!flags.artifact && item.commit == 'active'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"!flags.artifact && item.commit == 'day'":{"text":"!flags.artifact && item.commit == 'day'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"day"}}}},"!flags.artifact && item.commit == 'scene'":{"text":"!flags.artifact && item.commit == 'scene'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"scene"}}}},"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound\n || (!params.random && item.degree == 'lesser'))\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free":{"text":"!has(item.apotheosisLevel) && (item.repeatable || countCopies(copy.item == item.id) == 0) && (!has(item.requires) || countCopies(copy.item == item.requires) > 0) && (item.id != @gifts.universal.effort-of-the-word || gifts.effortOfTheWord < words.count) && (item.id != @gifts.universal.influence-of-the-word || gifts.influenceOfTheWord < words.count) && (!has(item.word) || item.word in words.bound || !params.random && item.degree == 'lesser') && (!has(item.word) ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1) : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2) <= gifts.points.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]}},"right":{"type":"binary","op":"||","left":{"type":"name","path":["item","repeatable"]},"right":{"type":"binary","op":"==","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","requires"]}]}},"right":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","requires"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"right":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["params","random"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"lesser"}}}}},"right":{"type":"binary","op":"<=","left":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":0}}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},"right":{"type":"name","path":["gifts","points","free"]}}}},"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound || item.degree == 'lesser')\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free":{"text":"!has(item.apotheosisLevel) && (item.repeatable || countCopies(copy.item == item.id) == 0) && (!has(item.requires) || countCopies(copy.item == item.requires) > 0) && (item.id != @gifts.universal.effort-of-the-word || gifts.effortOfTheWord < words.count) && (item.id != @gifts.universal.influence-of-the-word || gifts.influenceOfTheWord < words.count) && (!has(item.word) || item.word in words.bound || item.degree == 'lesser') && (!has(item.word) ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1) : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2) <= gifts.points.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]}},"right":{"type":"binary","op":"||","left":{"type":"name","path":["item","repeatable"]},"right":{"type":"binary","op":"==","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","requires"]}]}},"right":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","requires"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"lesser"}}}},"right":{"type":"binary","op":"<=","left":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":0}}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},"right":{"type":"name","path":["gifts","points","free"]}}}},"!has(steps.damage) ? 0\n : params.straight ? steps.damage.total\n : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"!has(steps.damage) ? 0 : params.straight ? steps.damage.total : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"name","path":["params","straight"]},"then":{"type":"name","path":["steps","damage","total"]},"else":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}}}},"!item.repeatable":{"text":"!item.repeatable","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["item","repeatable"]}}},"!luck.rolled":{"text":"!luck.rolled","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["luck","rolled"]}}},"!params.keepActive":{"text":"!params.keepActive","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","keepActive"]}}},"!params.onSelf":{"text":"!params.onSelf","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","onSelf"]}}},"!params.random":{"text":"!params.random","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","random"]}}},"!self.bonded && effort.free > 0":{"text":"!self.bonded && effort.free > 0","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["self","bonded"]}},"right":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}},"'accept'":{"text":"'accept'","tree":{"type":"string","value":"accept"}},"'advanced'":{"text":"'advanced'","tree":{"type":"string","value":"advanced"}},"'armor.heavy'":{"text":"'armor.heavy'","tree":{"type":"string","value":"armor.heavy"}},"'armor.light'":{"text":"'armor.light'","tree":{"type":"string","value":"armor.light"}},"'armor.medium'":{"text":"'armor.medium'","tree":{"type":"string","value":"armor.medium"}},"'array'":{"text":"'array'","tree":{"type":"string","value":"array"}},"'attack' in item.tags || 'fray' in item.tags":{"text":"'attack' in item.tags || 'fray' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"attack"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"fray"},"right":{"type":"name","path":["item","tags"]}}}},"'attack.bonus'":{"text":"'attack.bonus'","tree":{"type":"string","value":"attack.bonus"}},"'attribute' in item.tags":{"text":"'attribute' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"attribute"},"right":{"type":"name","path":["item","tags"]}}},"'attribute' in item.tags && 'attr.' + pick.value in item.tags":{"text":"'attribute' in item.tags && 'attr.' + pick.value in item.tags","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"in","left":{"type":"string","value":"attribute"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"binary","op":"+","left":{"type":"string","value":"attr."},"right":{"type":"name","path":["pick","value"]}},"right":{"type":"name","path":["item","tags"]}}}},"'attribute-base' in item.tags":{"text":"'attribute-base' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"attribute-base"},"right":{"type":"name","path":["item","tags"]}}},"'bonded'":{"text":"'bonded'","tree":{"type":"string","value":"bonded"}},"'cast'":{"text":"'cast'","tree":{"type":"string","value":"cast"}},"'check' in item.tags || 'save' in item.tags":{"text":"'check' in item.tags || 'save' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"check"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"save"},"right":{"type":"name","path":["item","tags"]}}}},"'check.' + params.attribute":{"text":"'check.' + params.attribute","tree":{"type":"binary","op":"+","left":{"type":"string","value":"check."},"right":{"type":"name","path":["params","attribute"]}}},"'committed'":{"text":"'committed'","tree":{"type":"string","value":"committed"}},"'created'":{"text":"'created'","tree":{"type":"string","value":"created"}},"'creation' in item.tags || 'level' in item.tags":{"text":"'creation' in item.tags || 'level' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"creation"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"level"},"right":{"type":"name","path":["item","tags"]}}}},"'dawn'":{"text":"'dawn'","tree":{"type":"string","value":"dawn"}},"'ended'":{"text":"'ended'","tree":{"type":"string","value":"ended"}},"'failure'":{"text":"'failure'","tree":{"type":"string","value":"failure"}},"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags\n || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags\n || 'luck' in item.tags || 'influence' in item.tags":{"text":"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags || 'luck' in item.tags || 'influence' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"gift"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"miracle"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"effort"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"theurgy"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"low-magic"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"artifact"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"luck"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"influence"},"right":{"type":"name","path":["item","tags"]}}}},"'healed'":{"text":"'healed'","tree":{"type":"string","value":"healed"}},"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags":{"text":"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"health"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"rest"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"fury"},"right":{"type":"name","path":["item","tags"]}}}},"'invoked'":{"text":"'invoked'","tree":{"type":"string","value":"invoked"}},"'negated'":{"text":"'negated'","tree":{"type":"string","value":"negated"}},"'no'":{"text":"'no'","tree":{"type":"string","value":"no"}},"'none'":{"text":"'none'","tree":{"type":"string","value":"none"}},"'prepared'":{"text":"'prepared'","tree":{"type":"string","value":"prepared"}},"'raging'":{"text":"'raging'","tree":{"type":"string","value":"raging"}},"'reclaimed'":{"text":"'reclaimed'","tree":{"type":"string","value":"reclaimed"}},"'released'":{"text":"'released'","tree":{"type":"string","value":"released"}},"'rested'":{"text":"'rested'","tree":{"type":"string","value":"rested"}},"'rolled'":{"text":"'rolled'","tree":{"type":"string","value":"rolled"}},"'save' in item.tags":{"text":"'save' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"save"},"right":{"type":"name","path":["item","tags"]}}},"'save-penalty' in item.tags && 'save.' + pick.value in item.tags":{"text":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"in","left":{"type":"string","value":"save-penalty"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"binary","op":"+","left":{"type":"string","value":"save."},"right":{"type":"name","path":["pick","value"]}},"right":{"type":"name","path":["item","tags"]}}}},"'save.' + params.save":{"text":"'save.' + params.save","tree":{"type":"binary","op":"+","left":{"type":"string","value":"save."},"right":{"type":"name","path":["params","save"]}}},"'shields.shield'":{"text":"'shields.shield'","tree":{"type":"string","value":"shields.shield"}},"'spent'":{"text":"'spent'","tree":{"type":"string","value":"spent"}},"'strain'":{"text":"'strain'","tree":{"type":"string","value":"strain"}},"'success'":{"text":"'success'","tree":{"type":"string","value":"success"}},"'taken'":{"text":"'taken'","tree":{"type":"string","value":"taken"}},"(ceil(level / 2))d10":{"text":"(ceil(level / 2))d10","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":10,"modifiers":[]}},"(ceil(level / 2))d6":{"text":"(ceil(level / 2))d6","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":6,"modifiers":[]}},"(ceil(level / 2))d8":{"text":"(ceil(level / 2))d8","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":8,"modifiers":[]}},"(level)d10":{"text":"(level)d10","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":10,"modifiers":[]}},"(level)d12":{"text":"(level)d12","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":12,"modifiers":[]}},"(level)d6":{"text":"(level)d6","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":6,"modifiers":[]}},"(level)d8":{"text":"(level)d8","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":8,"modifiers":[]}},"-flags.damage":{"text":"-flags.damage","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["flags","damage"]}}},"-item.bonus":{"text":"-item.bonus","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["item","bonus"]}}},"-lowMagic.strain":{"text":"-lowMagic.strain","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["lowMagic","strain"]}}},"-params.amount":{"text":"-params.amount","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["params","amount"]}}},"16 - level - max(attributes.dex.mod, attributes.int.mod)":{"text":"16 - level - max(attributes.dex.mod, attributes.int.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","dex","mod"]},{"type":"name","path":["attributes","int","mod"]}]}}},"16 - level - max(attributes.str.mod, attributes.con.mod)":{"text":"16 - level - max(attributes.str.mod, attributes.con.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","str","mod"]},{"type":"name","path":["attributes","con","mod"]}]}}},"16 - level - max(attributes.wis.mod, attributes.cha.mod)":{"text":"16 - level - max(attributes.wis.mod, attributes.cha.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","wis","mod"]},{"type":"name","path":["attributes","cha","mod"]}]}}},"1d10":{"text":"1d10","tree":{"type":"dice","count":1,"sides":10,"modifiers":[]}},"1d12":{"text":"1d12","tree":{"type":"dice","count":1,"sides":12,"modifiers":[]}},"1d2":{"text":"1d2","tree":{"type":"dice","count":1,"sides":2,"modifiers":[]}},"1d20":{"text":"1d20","tree":{"type":"dice","count":1,"sides":20,"modifiers":[]}},"1d6":{"text":"1d6","tree":{"type":"dice","count":1,"sides":6,"modifiers":[]}},"1d6 + level":{"text":"1d6 + level","tree":{"type":"binary","op":"+","left":{"type":"dice","count":1,"sides":6,"modifiers":[]},"right":{"type":"name","path":["level"]}}},"1d8":{"text":"1d8","tree":{"type":"dice","count":1,"sides":8,"modifiers":[]}},"2 * level":{"text":"2 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":2},"right":{"type":"name","path":["level"]}}},"2 + (level - 1)":{"text":"2 + (level - 1)","tree":{"type":"binary","op":"+","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}},"2 + (level - 1) + (fury.active ? level : 0)":{"text":"2 + (level - 1) + (fury.active ? level : 0)","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}},"right":{"type":"conditional","test":{"type":"name","path":["fury","active"]},"then":{"type":"name","path":["level"]},"else":{"type":"int","value":0}}}},"21 - attributes.cha.score":{"text":"21 - attributes.cha.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","cha","score"]}}},"21 - attributes.con.score":{"text":"21 - attributes.con.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","con","score"]}}},"21 - attributes.dex.score":{"text":"21 - attributes.dex.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","dex","score"]}}},"21 - attributes.int.score":{"text":"21 - attributes.int.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","int","score"]}}},"21 - attributes.str.score":{"text":"21 - attributes.str.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","str","score"]}}},"21 - attributes.wis.score":{"text":"21 - attributes.wis.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","wis","score"]}}},"2d6 + level":{"text":"2d6 + level","tree":{"type":"binary","op":"+","left":{"type":"dice","count":2,"sides":6,"modifiers":[]},"right":{"type":"name","path":["level"]}}},"3 * level":{"text":"3 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":3},"right":{"type":"name","path":["level"]}}},"4 * level":{"text":"4 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":4},"right":{"type":"name","path":["level"]}}},"4d6dl1":{"text":"4d6dl1","tree":{"type":"dice","count":4,"sides":6,"modifiers":[{"type":"dropLowest","count":1}]}},"6 + 2 * (level - 1)":{"text":"6 + 2 * (level - 1)","tree":{"type":"binary","op":"+","left":{"type":"int","value":6},"right":{"type":"binary","op":"*","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))":{"text":"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"int","value":8},"right":{"type":"name","path":["attributes","con","mod"]}},"right":{"type":"binary","op":"*","left":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}},"right":{"type":"binary","op":"+","left":{"type":"int","value":4},"right":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["attributes","con","mod"]},"right":{"type":"int","value":2}}]}}}}},"@weapons.medium":{"text":"@weapons.medium","tree":{"type":"ref","id":"weapons.medium"}},"@words.alacrity in words.bound":{"text":"@words.alacrity in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.alacrity"},"right":{"type":"name","path":["words","bound"]}}},"@words.artifice in words.bound":{"text":"@words.artifice in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.artifice"},"right":{"type":"name","path":["words","bound"]}}},"@words.beasts in words.bound":{"text":"@words.beasts in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.beasts"},"right":{"type":"name","path":["words","bound"]}}},"@words.bow in words.bound":{"text":"@words.bow in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.bow"},"right":{"type":"name","path":["words","bound"]}}},"@words.command in words.bound":{"text":"@words.command in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.command"},"right":{"type":"name","path":["words","bound"]}}},"@words.death in words.bound":{"text":"@words.death in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.death"},"right":{"type":"name","path":["words","bound"]}}},"@words.deception in words.bound":{"text":"@words.deception in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.deception"},"right":{"type":"name","path":["words","bound"]}}},"@words.earth in words.bound":{"text":"@words.earth in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.earth"},"right":{"type":"name","path":["words","bound"]}}},"@words.endurance in words.bound":{"text":"@words.endurance in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.endurance"},"right":{"type":"name","path":["words","bound"]}}},"@words.fertility in words.bound":{"text":"@words.fertility in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.fertility"},"right":{"type":"name","path":["words","bound"]}}},"@words.fire in words.bound":{"text":"@words.fire in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.fire"},"right":{"type":"name","path":["words","bound"]}}},"@words.health in words.bound":{"text":"@words.health in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.health"},"right":{"type":"name","path":["words","bound"]}}},"@words.journeying in words.bound":{"text":"@words.journeying in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.journeying"},"right":{"type":"name","path":["words","bound"]}}},"@words.knowledge in words.bound":{"text":"@words.knowledge in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.knowledge"},"right":{"type":"name","path":["words","bound"]}}},"@words.luck in words.bound":{"text":"@words.luck in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.luck"},"right":{"type":"name","path":["words","bound"]}}},"@words.might in words.bound":{"text":"@words.might in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.might"},"right":{"type":"name","path":["words","bound"]}}},"@words.night in words.bound":{"text":"@words.night in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.night"},"right":{"type":"name","path":["words","bound"]}}},"@words.passion in words.bound":{"text":"@words.passion in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.passion"},"right":{"type":"name","path":["words","bound"]}}},"@words.sea in words.bound":{"text":"@words.sea in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sea"},"right":{"type":"name","path":["words","bound"]}}},"@words.sky in words.bound":{"text":"@words.sky in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sky"},"right":{"type":"name","path":["words","bound"]}}},"@words.sorcery in words.bound":{"text":"@words.sorcery in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sorcery"},"right":{"type":"name","path":["words","bound"]}}},"@words.sun in words.bound":{"text":"@words.sun in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sun"},"right":{"type":"name","path":["words","bound"]}}},"@words.sword in words.bound":{"text":"@words.sword in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sword"},"right":{"type":"name","path":["words","bound"]}}},"@words.time in words.bound":{"text":"@words.time in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.time"},"right":{"type":"name","path":["words","bound"]}}},"@words.wealth in words.bound":{"text":"@words.wealth in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.wealth"},"right":{"type":"name","path":["words","bound"]}}},"[13, 14, 16, 13, 10, 8]":{"text":"[13, 14, 16, 13, 10, 8]","tree":{"type":"list","items":[{"type":"int","value":13},{"type":"int","value":14},{"type":"int","value":16},{"type":"int","value":13},{"type":"int","value":10},{"type":"int","value":8}]}},"[16, 14, 13, 13, 10, 8]":{"text":"[16, 14, 13, 13, 10, 8]","tree":{"type":"list","items":[{"type":"int","value":16},{"type":"int","value":14},{"type":"int","value":13},{"type":"int","value":13},{"type":"int","value":10},{"type":"int","value":8}]}},"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]":{"text":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total, steps.roll5.total, steps.roll6.total]","tree":{"type":"list","items":[{"type":"name","path":["steps","roll1","total"]},{"type":"name","path":["steps","roll2","total"]},{"type":"name","path":["steps","roll3","total"]},{"type":"name","path":["steps","roll4","total"]},{"type":"name","path":["steps","roll5","total"]},{"type":"name","path":["steps","roll6","total"]}]}},"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0":{"text":"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"name","path":["apotheosis","free"]},"right":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}},"then":{"type":"binary","op":"+","left":{"type":"int","value":1},"right":{"type":"call","fn":"floor","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}]}},"else":{"type":"int","value":0}}},"attributes.cha.base":{"text":"attributes.cha.base","tree":{"type":"name","path":["attributes","cha","base"]}},"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'":{"text":"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","base"]},"right":{"type":"name","path":["attributes","wis","base"]}},"then":{"type":"string","value":"cha"},"else":{"type":"string","value":"wis"}}},"attributes.cha.base >= 16 ? 18 : 16":{"text":"attributes.cha.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","cha","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.cha.score <= 3 ? -3\n : attributes.cha.score <= 5 ? -2\n : attributes.cha.score <= 8 ? -1\n : attributes.cha.score <= 12 ? 0\n : attributes.cha.score <= 15 ? 1\n : attributes.cha.score <= 17 ? 2\n : attributes.cha.score == 18 ? 3 : 4":{"text":"attributes.cha.score <= 3 ? -3 : attributes.cha.score <= 5 ? -2 : attributes.cha.score <= 8 ? -1 : attributes.cha.score <= 12 ? 0 : attributes.cha.score <= 15 ? 1 : attributes.cha.score <= 17 ? 2 : attributes.cha.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.con.base":{"text":"attributes.con.base","tree":{"type":"name","path":["attributes","con","base"]}},"attributes.con.base >= 16 ? 18 : 16":{"text":"attributes.con.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","con","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.con.score <= 3 ? -3\n : attributes.con.score <= 5 ? -2\n : attributes.con.score <= 8 ? -1\n : attributes.con.score <= 12 ? 0\n : attributes.con.score <= 15 ? 1\n : attributes.con.score <= 17 ? 2\n : attributes.con.score == 18 ? 3 : 4":{"text":"attributes.con.score <= 3 ? -3 : attributes.con.score <= 5 ? -2 : attributes.con.score <= 8 ? -1 : attributes.con.score <= 12 ? 0 : attributes.con.score <= 15 ? 1 : attributes.con.score <= 17 ? 2 : attributes.con.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.dex.base":{"text":"attributes.dex.base","tree":{"type":"name","path":["attributes","dex","base"]}},"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'":{"text":"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","base"]},"right":{"type":"name","path":["attributes","cha","base"]}},"then":{"type":"string","value":"dex"},"else":{"type":"string","value":"cha"}}},"attributes.dex.base >= 16 ? 18 : 16":{"text":"attributes.dex.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","dex","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.dex.score <= 3 ? -3\n : attributes.dex.score <= 5 ? -2\n : attributes.dex.score <= 8 ? -1\n : attributes.dex.score <= 12 ? 0\n : attributes.dex.score <= 15 ? 1\n : attributes.dex.score <= 17 ? 2\n : attributes.dex.score == 18 ? 3 : 4":{"text":"attributes.dex.score <= 3 ? -3 : attributes.dex.score <= 5 ? -2 : attributes.dex.score <= 8 ? -1 : attributes.dex.score <= 12 ? 0 : attributes.dex.score <= 15 ? 1 : attributes.dex.score <= 17 ? 2 : attributes.dex.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.int.base":{"text":"attributes.int.base","tree":{"type":"name","path":["attributes","int","base"]}},"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'":{"text":"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","base"]},"right":{"type":"name","path":["attributes","wis","base"]}},"then":{"type":"string","value":"int"},"else":{"type":"string","value":"wis"}}},"attributes.int.score <= 3 ? -3\n : attributes.int.score <= 5 ? -2\n : attributes.int.score <= 8 ? -1\n : attributes.int.score <= 12 ? 0\n : attributes.int.score <= 15 ? 1\n : attributes.int.score <= 17 ? 2\n : attributes.int.score == 18 ? 3 : 4":{"text":"attributes.int.score <= 3 ? -3 : attributes.int.score <= 5 ? -2 : attributes.int.score <= 8 ? -1 : attributes.int.score <= 12 ? 0 : attributes.int.score <= 15 ? 1 : attributes.int.score <= 17 ? 2 : attributes.int.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.str.base":{"text":"attributes.str.base","tree":{"type":"name","path":["attributes","str","base"]}},"attributes.str.base <= attributes.con.base ? 'str' : 'con'":{"text":"attributes.str.base <= attributes.con.base ? 'str' : 'con'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","base"]},"right":{"type":"name","path":["attributes","con","base"]}},"then":{"type":"string","value":"str"},"else":{"type":"string","value":"con"}}},"attributes.str.score <= 3 ? -3\n : attributes.str.score <= 5 ? -2\n : attributes.str.score <= 8 ? -1\n : attributes.str.score <= 12 ? 0\n : attributes.str.score <= 15 ? 1\n : attributes.str.score <= 17 ? 2\n : attributes.str.score == 18 ? 3 : 4":{"text":"attributes.str.score <= 3 ? -3 : attributes.str.score <= 5 ? -2 : attributes.str.score <= 8 ? -1 : attributes.str.score <= 12 ? 0 : attributes.str.score <= 15 ? 1 : attributes.str.score <= 17 ? 2 : attributes.str.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.wis.base":{"text":"attributes.wis.base","tree":{"type":"name","path":["attributes","wis","base"]}},"attributes.wis.base >= 16 ? 18 : 16":{"text":"attributes.wis.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","wis","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.wis.score <= 3 ? -3\n : attributes.wis.score <= 5 ? -2\n : attributes.wis.score <= 8 ? -1\n : attributes.wis.score <= 12 ? 0\n : attributes.wis.score <= 15 ? 1\n : attributes.wis.score <= 17 ? 2\n : attributes.wis.score == 18 ? 3 : 4":{"text":"attributes.wis.score <= 3 ? -3 : attributes.wis.score <= 5 ? -2 : attributes.wis.score <= 8 ? -1 : attributes.wis.score <= 12 ? 0 : attributes.wis.score <= 15 ? 1 : attributes.wis.score <= 17 ? 2 : attributes.wis.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"ceil(hp.max / 2)":{"text":"ceil(hp.max / 2)","tree":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["hp","max"]},"right":{"type":"int","value":2}}]}},"ceil(level / 3)":{"text":"ceil(level / 3)","tree":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}]}},"character.creating && words.count == 0":{"text":"character.creating && words.count == 0","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["character","creating"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":0}}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-gate"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-throne"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-way"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.universal.effort-of-the-word)":{"text":"countCopies(copy.item == @gifts.universal.effort-of-the-word)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}}]}},"countCopies(copy.item == @gifts.universal.influence-of-the-word)":{"text":"countCopies(copy.item == @gifts.universal.influence-of-the-word)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}}]}},"countCopies(copy.item == item.id) <= 1":{"text":"countCopies(copy.item == item.id) <= 1","tree":{"type":"binary","op":"<=","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":1}}},"countCopies(copy.type == 'word' && copy.fields.bindable)":{"text":"countCopies(copy.type == 'word' && copy.fields.bindable)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"word"}},"right":{"type":"name","path":["copy","fields","bindable"]}}]}},"dominion.monthly > 0":{"text":"dominion.monthly > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["dominion","monthly"]},"right":{"type":"int","value":0}}},"effort.committed <= effort.max":{"text":"effort.committed <= effort.max","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["effort","committed"]},"right":{"type":"name","path":["effort","max"]}}},"effort.free > 0":{"text":"effort.free > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}},"effort.max - effort.committed":{"text":"effort.max - effort.committed","tree":{"type":"binary","op":"-","left":{"type":"name","path":["effort","max"]},"right":{"type":"name","path":["effort","committed"]}}},"effort.scene + effort.day + effort.active":{"text":"effort.scene + effort.day + effort.active","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"name","path":["effort","scene"]},"right":{"type":"name","path":["effort","day"]}},"right":{"type":"name","path":["effort","active"]}}},"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16":{"text":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.base"},{"type":"name","path":["pick","value"]}]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"fieldOf('attributes.{attribute}.check', params.attribute)":{"text":"fieldOf('attributes.{attribute}.check', params.attribute)","tree":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.check"},{"type":"name","path":["params","attribute"]}]}},"fieldOf('saves.{save}.value', params.save)":{"text":"fieldOf('saves.{save}.value', params.save)","tree":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"saves.{save}.value"},{"type":"name","path":["params","save"]}]}},"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]":{"text":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"string","value":"spirit"},{"type":"string","value":"evasion"},{"type":"string","value":"hardiness"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]":{"text":"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.barred-gates-of-forbiddance"},{"type":"ref","id":"invocations.beacon-of-celestial-purity"},{"type":"ref","id":"invocations.bright-gods-canticle"},{"type":"ref","id":"invocations.excision-of-days"},{"type":"ref","id":"invocations.kiss-of-the-crane"},{"type":"ref","id":"invocations.open-the-night-road"},{"type":"ref","id":"invocations.pore-of-hell"},{"type":"ref","id":"invocations.ranks-of-pale-bone"},{"type":"ref","id":"invocations.seal-of-regnal-dominion"},{"type":"ref","id":"invocations.sunder-the-lesser-spell"},{"type":"ref","id":"invocations.tireless-iron-cavalcade"},{"type":"ref","id":"invocations.trumpet-of-far-utterance"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]":{"text":"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.curse-of-the-blighted-strand"},{"type":"ref","id":"invocations.deafening-word-of-truth"},{"type":"ref","id":"invocations.delaying-the-coming-of-dawn"},{"type":"ref","id":"invocations.far-distant-lance"},{"type":"ref","id":"invocations.glyph-of-crowned-impunity"},{"type":"ref","id":"invocations.mirrored-wheel-of-the-seasons"},{"type":"ref","id":"invocations.path-to-the-bright-sanctum"},{"type":"ref","id":"invocations.shutting-the-dark-way"},{"type":"ref","id":"invocations.sign-of-avulsive-banishment"},{"type":"ref","id":"invocations.sunder-the-greater-spell"},{"type":"ref","id":"invocations.tumulus-of-sanctified-night"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]":{"text":"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.hearts-desire"},{"type":"ref","id":"invocations.auspice-of-the-divine-king"},{"type":"ref","id":"invocations.directed-convulsion-of-law"},{"type":"ref","id":"invocations.gifts-of-spring-and-winter"},{"type":"ref","id":"invocations.grinding-teeth-of-god"},{"type":"ref","id":"invocations.legion-of-marching-clay"},{"type":"ref","id":"invocations.palace-of-the-sorcerer-prince"},{"type":"ref","id":"invocations.pierce-the-veil-of-night"},{"type":"ref","id":"invocations.summon-the-black-iron-servitor"},{"type":"ref","id":"invocations.sunder-every-sorcery"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"flags.artifact && item.commit != 'active'":{"text":"flags.artifact && item.commit != 'active'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["flags","artifact"]},"right":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"flags.artifact && item.commit == 'active'":{"text":"flags.artifact && item.commit == 'active'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["flags","artifact"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"flags.bonus":{"text":"flags.bonus","tree":{"type":"name","path":["flags","bonus"]}},"flags.bonus != 0":{"text":"flags.bonus != 0","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["flags","bonus"]},"right":{"type":"int","value":0}}},"flags.damage":{"text":"flags.damage","tree":{"type":"name","path":["flags","damage"]}},"flags.damage > 0":{"text":"flags.damage > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["flags","damage"]},"right":{"type":"int","value":0}}},"flags.die":{"text":"flags.die","tree":{"type":"name","path":["flags","die"]}},"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base":{"text":"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base","tree":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["flags","floor"]},"right":{"type":"call","fn":"maxOf","args":[{"type":"name","path":["flags","base"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["flags","floor"]},"right":{"type":"int","value":12}},"then":{"type":"dice","count":1,"sides":12,"modifiers":[]},"else":{"type":"dice","count":1,"sides":10,"modifiers":[]}},"else":{"type":"name","path":["flags","base"]}}},"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die)))\n : steps.damage.kept":{"text":"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die))) : steps.damage.kept","tree":{"type":"conditional","test":{"type":"name","path":["flags","maximize"]},"then":{"type":"call","fn":"mapList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"call","fn":"maxOf","args":[{"type":"call","fn":"dieOf","args":[{"type":"name","path":["flags","die"]}]}]}]},"else":{"type":"name","path":["steps","damage","kept"]}}},"flags.mod":{"text":"flags.mod","tree":{"type":"name","path":["flags","mod"]}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"cha"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"con"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"dex"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"int"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"str"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"wis"}]}}},"flags.ranged ? 'attack.ranged' : 'attack.melee'":{"text":"flags.ranged ? 'attack.ranged' : 'attack.melee'","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"string","value":"attack.ranged"},"else":{"type":"string","value":"attack.melee"}}},"flags.ranged ? 'damage.ranged' : 'damage.melee'":{"text":"flags.ranged ? 'damage.ranged' : 'damage.melee'","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"string","value":"damage.ranged"},"else":{"type":"string","value":"damage.melee"}}},"flags.ranged ? 0 : damage.melee.bonus":{"text":"flags.ranged ? 0 : damage.melee.bonus","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"int","value":0},"else":{"type":"name","path":["damage","melee","bonus"]}}},"flags.result":{"text":"flags.result","tree":{"type":"name","path":["flags","result"]}},"flags.result == 'failure' && effort.free > 0":{"text":"flags.result == 'failure' && effort.free > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["flags","result"]},"right":{"type":"string","value":"failure"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}},"flags.target":{"text":"flags.target","tree":{"type":"name","path":["flags","target"]}},"flags.values[0]":{"text":"flags.values[0]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":0}}},"flags.values[1]":{"text":"flags.values[1]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":1}}},"flags.values[2]":{"text":"flags.values[2]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":2}}},"flags.values[3]":{"text":"flags.values[3]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":3}}},"flags.values[4]":{"text":"flags.values[4]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":4}}},"flags.values[5]":{"text":"flags.values[5]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":5}}},"fray.die":{"text":"fray.die","tree":{"type":"name","path":["fray","die"]}},"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die)))\n : steps.roll.kept":{"text":"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die))) : steps.roll.kept","tree":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["fray","maximize"]},"right":{"type":"int","value":0}},"then":{"type":"call","fn":"mapList","args":[{"type":"name","path":["steps","roll","kept"]},{"type":"call","fn":"maxOf","args":[{"type":"call","fn":"dieOf","args":[{"type":"name","path":["fray","die"]}]}]}]},"else":{"type":"name","path":["steps","roll","kept"]}}},"fury.active":{"text":"fury.active","tree":{"type":"name","path":["fury","active"]}},"gifts.effortOfTheWord <= max(1, words.count)":{"text":"gifts.effortOfTheWord <= max(1, words.count)","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":1},{"type":"name","path":["words","count"]}]}}},"gifts.influenceOfTheWord <= max(1, words.count)":{"text":"gifts.influenceOfTheWord <= max(1, words.count)","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":1},{"type":"name","path":["words","count"]}]}}},"gifts.points.free >= 3":{"text":"gifts.points.free >= 3","tree":{"type":"binary","op":">=","left":{"type":"name","path":["gifts","points","free"]},"right":{"type":"int","value":3}}},"gifts.points.spent <= gifts.points.total":{"text":"gifts.points.spent <= gifts.points.total","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","points","spent"]},"right":{"type":"name","path":["gifts","points","total"]}}},"gifts.points.total - gifts.points.spent":{"text":"gifts.points.total - gifts.points.spent","tree":{"type":"binary","op":"-","left":{"type":"name","path":["gifts","points","total"]},"right":{"type":"name","path":["gifts","points","spent"]}}},"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0":{"text":"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]},"then":{"type":"int","value":3},"else":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":1},"else":{"type":"int","value":0}}}}},"has(item.blast) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))":{"text":"has(item.blast) && (item.commit == 'none' || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blast"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}}},"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed)\n && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)":{"text":"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed) && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","damage"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"weapon"}},"right":{"type":"name","path":["self","equipped"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}}},"has(item.healing) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))":{"text":"has(item.healing) && (item.commit == 'none' || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","healing"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}}},"has(item.hitModifier)":{"text":"has(item.hitModifier)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["item","hitModifier"]}]}},"has(item.ranged) && item.ranged":{"text":"has(item.ranged) && item.ranged","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","ranged"]}]},"right":{"type":"name","path":["item","ranged"]}}},"has(item.ranged) && item.ranged ? damage.ranged.floor\n : max(damage.melee.floor,\n has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)":{"text":"has(item.ranged) && item.ranged ? damage.ranged.floor : max(damage.melee.floor, has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","ranged"]}]},"right":{"type":"name","path":["item","ranged"]}},"then":{"type":"name","path":["damage","ranged","floor"]},"else":{"type":"call","fn":"max","args":[{"type":"name","path":["damage","melee","floor"]},{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","twoHanded"]}]},"right":{"type":"name","path":["item","twoHanded"]}},"then":{"type":"name","path":["damage","melee","twoHandedFloor"]},"else":{"type":"int","value":0}}]}}},"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0":{"text":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":0}}},"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute)\n : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags)\n : item.attribute == 'str' ? attributes.str.mod\n : item.attribute == 'dex' ? attributes.dex.mod\n : max(attributes.str.mod, attributes.dex.mod)":{"text":"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute) : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags) : item.attribute == 'str' ? attributes.str.mod : item.attribute == 'dex' ? attributes.dex.mod : max(attributes.str.mod, attributes.dex.mod)","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["params","attribute"]}]},"then":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.mod"},{"type":"name","path":["params","attribute"]}]},"else":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","attribute"]}]}},"then":{"type":"call","fn":"maxFields","args":[{"type":"name","path":["f","value"]},{"type":"binary","op":"in","left":{"type":"string","value":"attribute-mod"},"right":{"type":"name","path":["f","tags"]}}]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","attribute"]},"right":{"type":"string","value":"str"}},"then":{"type":"name","path":["attributes","str","mod"]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","attribute"]},"right":{"type":"string","value":"dex"}},"then":{"type":"name","path":["attributes","dex","mod"]},"else":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","str","mod"]},{"type":"name","path":["attributes","dex","mod"]}]}}}}}},"has(params.targetAc)":{"text":"has(params.targetAc)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["params","targetAc"]}]}},"has(params.targetAc) ? params.targetAc : 0":{"text":"has(params.targetAc) ? params.targetAc : 0","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["params","targetAc"]}]},"then":{"type":"name","path":["params","targetAc"]},"else":{"type":"int","value":0}}},"has(steps.backlash)":{"text":"has(steps.backlash)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","backlash"]}]}},"has(steps.cost) && steps.cost.picked == 'injury'":{"text":"has(steps.cost) && steps.cost.picked == 'injury'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","cost"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","cost","picked"]},"right":{"type":"string","value":"injury"}}}},"has(steps.damage)":{"text":"has(steps.damage)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]}},"has(steps.damage) && params.straight":{"text":"has(steps.damage) && params.straight","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]},"right":{"type":"name","path":["params","straight"]}}},"has(steps.injury) && steps.injury.total >= 2":{"text":"has(steps.injury) && steps.injury.total >= 2","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","injury"]}]},"right":{"type":"binary","op":">=","left":{"type":"name","path":["steps","injury","total"]},"right":{"type":"int","value":2}}}},"has(steps.moreWords) && steps.moreWords.picked == 'yes'":{"text":"has(steps.moreWords) && steps.moreWords.picked == 'yes'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","moreWords"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","moreWords","picked"]},"right":{"type":"string","value":"yes"}}}},"has(steps.newWord) && steps.newWord.picked == 'yes'":{"text":"has(steps.newWord) && steps.newWord.picked == 'yes'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","newWord"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","newWord","picked"]},"right":{"type":"string","value":"yes"}}}},"has(steps.roll1)":{"text":"has(steps.roll1)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","roll1"]}]}},"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0":{"text":"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"call","fn":"hasChoice","args":[{"type":"string","value":"tradition"}]},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"int","value":0}}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":0}}}},"hp.current == 0 && !fury.spent && !fury.active":{"text":"hp.current == 0 && !fury.spent && !fury.active","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["hp","current"]},"right":{"type":"int","value":0}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["fury","spent"]}}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["fury","active"]}}}},"hp.max":{"text":"hp.max","tree":{"type":"name","path":["hp","max"]}},"indexOf(['gate', 'way', 'throne'], item.tier)":{"text":"indexOf(['gate', 'way', 'throne'], item.tier)","tree":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"gate"},{"type":"string","value":"way"},{"type":"string","value":"throne"}]},{"type":"name","path":["item","tier"]}]}},"influence.committed <= influence.max":{"text":"influence.committed <= influence.max","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["influence","committed"]},"right":{"type":"name","path":["influence","max"]}}},"influence.committed > 0":{"text":"influence.committed > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["influence","committed"]},"right":{"type":"int","value":0}}},"influence.free > 0":{"text":"influence.free > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["influence","free"]},"right":{"type":"int","value":0}}},"influence.max - influence.committed":{"text":"influence.max - influence.committed","tree":{"type":"binary","op":"-","left":{"type":"name","path":["influence","max"]},"right":{"type":"name","path":["influence","committed"]}}},"item.ac":{"text":"item.ac","tree":{"type":"name","path":["item","ac"]}},"item.bindable":{"text":"item.bindable","tree":{"type":"name","path":["item","bindable"]}},"item.bindable && !(item.id in words.bound)":{"text":"item.bindable && !(item.id in words.bound)","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["item","bindable"]},"right":{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["item","id"]},"right":{"type":"name","path":["words","bound"]}}}}},"item.bindable && picks == 0":{"text":"item.bindable && picks == 0","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["item","bindable"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["picks"]},"right":{"type":"int","value":0}}}},"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax":{"text":"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"prepared"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"name","path":["lowMagic","preparedMax"]}}}},"item.casting == 'prepared' && lowMagic.prepared > 0":{"text":"item.casting == 'prepared' && lowMagic.prepared > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"prepared"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":0}}}},"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax":{"text":"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"spontaneous"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"name","path":["lowMagic","spontaneousMax"]}}}},"item.commit != 'none' && !has(item.blast) && !has(item.healing)\n && (item.commit != 'active' || self.committed == 0)\n && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)":{"text":"item.commit != 'none' && !has(item.blast) && !has(item.healing) && (item.commit != 'active' || self.committed == 0) && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blast"]}]}}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","healing"]}]}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}},"item.commit != 'none' && flags.artifact":{"text":"item.commit != 'none' && flags.artifact","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"name","path":["flags","artifact"]}}},"item.commit == 'active'":{"text":"item.commit == 'active'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}},"item.commit == 'active' && self.committed > 0":{"text":"item.commit == 'active' && self.committed > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"item.damage":{"text":"item.damage","tree":{"type":"name","path":["item","damage"]}},"item.effort":{"text":"item.effort","tree":{"type":"name","path":["item","effort"]}},"item.healing":{"text":"item.healing","tree":{"type":"name","path":["item","healing"]}},"item.healingCost == 'day'":{"text":"item.healingCost == 'day'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","healingCost"]},"right":{"type":"string","value":"day"}}},"item.hitModifier":{"text":"item.hitModifier","tree":{"type":"name","path":["item","hitModifier"]}},"item.id":{"text":"item.id","tree":{"type":"name","path":["item","id"]}},"item.id != @weapons.unarmed":{"text":"item.id != @weapons.unarmed","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}},"item.id == @weapons.unarmed":{"text":"item.id == @weapons.unarmed","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}},"item.id == @words.apotheosis":{"text":"item.id == @words.apotheosis","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"words.apotheosis"}}},"item.penalties":{"text":"item.penalties","tree":{"type":"name","path":["item","penalties"]}},"item.strain":{"text":"item.strain","tree":{"type":"name","path":["item","strain"]}},"item.tier == 'gate'":{"text":"item.tier == 'gate'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"gate"}}},"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20":{"text":"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"gate"}},"then":{"type":"dice","count":1,"sides":6,"modifiers":[]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"way"}},"then":{"type":"dice","count":1,"sides":12,"modifiers":[]},"else":{"type":"dice","count":1,"sides":20,"modifiers":[]}}}},"item.tier == 'throne'":{"text":"item.tier == 'throne'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"throne"}}},"item.tier == 'way'":{"text":"item.tier == 'way'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"way"}}},"item.type == 'gift' && self.committed > 0":{"text":"item.type == 'gift' && self.committed > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"level":{"text":"level","tree":{"type":"name","path":["level"]}},"level >= 10":{"text":"level >= 10","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}}},"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]":{"text":"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}},"then":{"type":"int","value":0},"else":{"type":"index","object":{"type":"list","items":[{"type":"int","value":2},{"type":"int","value":4},{"type":"int","value":10},{"type":"int","value":22},{"type":"int","value":38},{"type":"int","value":57},{"type":"int","value":76},{"type":"int","value":95},{"type":"int","value":124}]},"index":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]":{"text":"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}},"then":{"type":"int","value":0},"else":{"type":"index","object":{"type":"list","items":[{"type":"int","value":3},{"type":"int","value":6},{"type":"int","value":12},{"type":"int","value":24},{"type":"int","value":48},{"type":"int","value":72},{"type":"int","value":96},{"type":"int","value":130},{"type":"int","value":170}]},"index":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"level >= 2":{"text":"level >= 2","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}},"level >= 2 && !apotheosis.free":{"text":"level >= 2 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 3":{"text":"level >= 3","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}},"level >= 3 && !apotheosis.free":{"text":"level >= 3 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 4":{"text":"level >= 4","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":4}}},"level >= 4 && !apotheosis.free":{"text":"level >= 4 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":4}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 5":{"text":"level >= 5","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":5}}},"level >= 5 && !apotheosis.free":{"text":"level >= 5 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":5}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 6":{"text":"level >= 6","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":6}}},"level >= 6 && !apotheosis.free":{"text":"level >= 6 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":6}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 7":{"text":"level >= 7","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":7}}},"level >= 7 && !apotheosis.free":{"text":"level >= 7 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":7}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 8":{"text":"level >= 8","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":8}}},"level >= 8 && !apotheosis.free":{"text":"level >= 8 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":8}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 9":{"text":"level >= 9","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":9}}},"lowMagic.prepared <= lowMagic.preparedMax":{"text":"lowMagic.prepared <= lowMagic.preparedMax","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"name","path":["lowMagic","preparedMax"]}}},"lowMagic.spontaneous <= lowMagic.spontaneousMax":{"text":"lowMagic.spontaneous <= lowMagic.spontaneousMax","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"name","path":["lowMagic","spontaneousMax"]}}},"lowMagic.spontaneous > 0 || lowMagic.strain > 0":{"text":"lowMagic.spontaneous > 0 || lowMagic.strain > 0","tree":{"type":"binary","op":"||","left":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"int","value":0}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","strain"]},"right":{"type":"int","value":0}}}},"lowMagic.strain > 0":{"text":"lowMagic.strain > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","strain"]},"right":{"type":"int","value":0}}},"luck.reserve":{"text":"luck.reserve","tree":{"type":"name","path":["luck","reserve"]}},"luck.reserve > 0":{"text":"luck.reserve > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["luck","reserve"]},"right":{"type":"int","value":0}}},"luck.reserve > 0 || luck.rolled":{"text":"luck.reserve > 0 || luck.rolled","tree":{"type":"binary","op":"||","left":{"type":"binary","op":">","left":{"type":"name","path":["luck","reserve"]},"right":{"type":"int","value":0}},"right":{"type":"name","path":["luck","rolled"]}}},"max(0, level - floor(lowMagic.prepared / 2))":{"text":"max(0, level - floor(lowMagic.prepared / 2))","tree":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"call","fn":"floor","args":[{"type":"binary","op":"/","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":2}}]}}]}},"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)":{"text":"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)","tree":{"type":"call","fn":"min","args":[{"type":"int","value":9},{"type":"binary","op":"-","left":{"type":"call","fn":"min","args":[{"type":"name","path":["ac","natural"]},{"type":"binary","op":"+","left":{"type":"name","path":["ac","armor"]},"right":{"type":"name","path":["ac","shield"]}}]},"right":{"type":"name","path":["attributes","dex","mod"]}}]}},"miracle.armor":{"text":"miracle.armor","tree":{"type":"name","path":["miracle","armor"]}},"options[0]":{"text":"options[0]","tree":{"type":"index","object":{"type":"name","path":["options"]},"index":{"type":"int","value":0}}},"params.amount":{"text":"params.amount","tree":{"type":"name","path":["params","amount"]}},"params.amount > 0":{"text":"params.amount > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["params","amount"]},"right":{"type":"int","value":0}}},"params.duration == 'day'":{"text":"params.duration == 'day'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","duration"]},"right":{"type":"string","value":"day"}}},"params.duration == 'scene'":{"text":"params.duration == 'scene'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","duration"]},"right":{"type":"string","value":"scene"}}},"params.kind == 'armor'":{"text":"params.kind == 'armor'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"armor"}}},"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6":{"text":"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-one"}},"then":{"type":"dice","count":{"type":"call","fn":"min","args":[{"type":"name","path":["level"]},{"type":"int","value":10}]},"sides":8,"modifiers":[]},"else":{"type":"dice","count":{"type":"call","fn":"min","args":[{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},{"type":"int","value":10}]},"sides":6,"modifiers":[]}}},"params.kind == 'hurt-one' || params.kind == 'hurt-several'":{"text":"params.kind == 'hurt-one' || params.kind == 'hurt-several'","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-one"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-several"}}}},"params.kind == 'mimic-day-gift' ? 2 : 1":{"text":"params.kind == 'mimic-day-gift' ? 2 : 1","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"mimic-day-gift"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}}},"params.magical":{"text":"params.magical","tree":{"type":"name","path":["params","magical"]}},"params.maximize\n || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)":{"text":"params.maximize || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)","tree":{"type":"binary","op":"||","left":{"type":"name","path":["params","maximize"]},"right":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"binary","op":">","left":{"type":"name","path":["damage","ranged","maximize"]},"right":{"type":"int","value":0}},"else":{"type":"binary","op":">","left":{"type":"name","path":["damage","melee","maximize"]},"right":{"type":"int","value":0}}}}},"params.mob && has(item.blastMob) ? item.blastMob : item.blast":{"text":"params.mob && has(item.blastMob) ? item.blastMob : item.blast","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"name","path":["params","mob"]},"right":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blastMob"]}]}},"then":{"type":"name","path":["item","blastMob"]},"else":{"type":"name","path":["item","blast"]}}},"params.modifier":{"text":"params.modifier","tree":{"type":"name","path":["params","modifier"]}},"params.modifier != 0":{"text":"params.modifier != 0","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["params","modifier"]},"right":{"type":"int","value":0}}},"params.onSelf":{"text":"params.onSelf","tree":{"type":"name","path":["params","onSelf"]}},"params.random":{"text":"params.random","tree":{"type":"name","path":["params","random"]}},"params.random && choice.id == 'invocations'":{"text":"params.random && choice.id == 'invocations'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["params","random"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["choice","id"]},"right":{"type":"string","value":"invocations"}}}},"params.random || steps.method.picked == 'roll'":{"text":"params.random || steps.method.picked == 'roll'","tree":{"type":"binary","op":"||","left":{"type":"name","path":["params","random"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","method","picked"]},"right":{"type":"string","value":"roll"}}}},"params.speed == 'instant'":{"text":"params.speed == 'instant'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"instant"}}},"params.speed == 'quick'":{"text":"params.speed == 'quick'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"quick"}}},"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0":{"text":"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"quick"}},"then":{"type":"binary","op":"+","left":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"gate"},{"type":"string","value":"way"},{"type":"string","value":"throne"}]},{"type":"name","path":["item","tier"]}]},"right":{"type":"int","value":1}},"else":{"type":"int","value":0}}},"params.straight":{"text":"params.straight","tree":{"type":"name","path":["params","straight"]}},"params.straight || params.mob || item.blastStraight":{"text":"params.straight || params.mob || item.blastStraight","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"name","path":["params","straight"]},"right":{"type":"name","path":["params","mob"]}},"right":{"type":"name","path":["item","blastStraight"]}}},"picked.id":{"text":"picked.id","tree":{"type":"name","path":["picked","id"]}},"roll.kept[0] == 20 ? 2 : roll.kept[0] == 1 ? 0 : !flags.known ? 1\n : roll.total + flags.ac >= 20 ? 2 : 0":{"text":"roll.kept[0] == 20 ? 2 : roll.kept[0] == 1 ? 0 : !flags.known ? 1 : roll.total + flags.ac >= 20 ? 2 : 0","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":20}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","known"]}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"binary","op":"+","left":{"type":"name","path":["roll","total"]},"right":{"type":"name","path":["flags","ac"]}},"right":{"type":"int","value":20}},"then":{"type":"int","value":2},"else":{"type":"int","value":0}}}}}},"roll.kept[0] == 20 || (roll.kept[0] != 1 && roll.total >= flags.target) ? 1 : 0":{"text":"roll.kept[0] == 20 || roll.kept[0] != 1 && roll.total >= flags.target ? 1 : 0","tree":{"type":"conditional","test":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":20}},"right":{"type":"binary","op":"&&","left":{"type":"binary","op":"!=","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":1}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["roll","total"]},"right":{"type":"name","path":["flags","target"]}}}},"then":{"type":"int","value":1},"else":{"type":"int","value":0}}},"roll.value == 1":{"text":"roll.value == 1","tree":{"type":"binary","op":"==","left":{"type":"name","path":["roll","value"]},"right":{"type":"int","value":1}}},"roll.value == 2":{"text":"roll.value == 2","tree":{"type":"binary","op":"==","left":{"type":"name","path":["roll","value"]},"right":{"type":"int","value":2}}},"saves.evasion.base + saves.evasion.penalty":{"text":"saves.evasion.base + saves.evasion.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","evasion","base"]},"right":{"type":"name","path":["saves","evasion","penalty"]}}},"saves.hardiness.base + saves.hardiness.penalty":{"text":"saves.hardiness.base + saves.hardiness.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","hardiness","base"]},"right":{"type":"name","path":["saves","hardiness","penalty"]}}},"saves.spirit.base + saves.spirit.penalty":{"text":"saves.spirit.base + saves.spirit.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","spirit","base"]},"right":{"type":"name","path":["saves","spirit","penalty"]}}},"self.artifactEffort == 0":{"text":"self.artifactEffort == 0","tree":{"type":"binary","op":"==","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}}},"self.artifactEffort > 0":{"text":"self.artifactEffort > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}}},"self.bonded":{"text":"self.bonded","tree":{"type":"name","path":["self","bonded"]}},"self.committed > 0":{"text":"self.committed > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}},"self.equipped":{"text":"self.equipped","tree":{"type":"name","path":["self","equipped"]}},"self.spent > 0":{"text":"self.spent > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","spent"]},"right":{"type":"int","value":0}}},"situational.luckReserve":{"text":"situational.luckReserve","tree":{"type":"name","path":["situational","luckReserve"]}},"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]":{"text":"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]","tree":{"type":"index","object":{"type":"call","fn":"sortList","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.base"},{"type":"name","path":["x"]}]}]},"index":{"type":"int","value":0}}},"steps.damage.total - sumList(steps.damage.kept, x)":{"text":"steps.damage.total - sumList(steps.damage.kept, x)","tree":{"type":"binary","op":"-","left":{"type":"name","path":["steps","damage","total"]},"right":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"name","path":["x"]}]}}},"steps.hit.band":{"text":"steps.hit.band","tree":{"type":"name","path":["steps","hit","band"]}},"steps.hit.band != 'miss'":{"text":"steps.hit.band != 'miss'","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["steps","hit","band"]},"right":{"type":"string","value":"miss"}}},"steps.hit.total":{"text":"steps.hit.total","tree":{"type":"name","path":["steps","hit","total"]}},"steps.injury.total >= 6 ? -2 : -1":{"text":"steps.injury.total >= 6 ? -2 : -1","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["steps","injury","total"]},"right":{"type":"int","value":6}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"unary","op":"-","operand":{"type":"int","value":1}}}},"steps.roll.band":{"text":"steps.roll.band","tree":{"type":"name","path":["steps","roll","band"]}},"steps.roll.total":{"text":"steps.roll.total","tree":{"type":"name","path":["steps","roll","total"]}},"sumCopies(\n !has(copy.fields.word) ? 1\n : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1)\n : 2,\n copy.type == 'gift' && !has(copy.fields.apotheosisLevel))\n + max(0, gifts.effortOfTheWord - 1)\n + 3 * max(0, words.count - 3)":{"text":"sumCopies(!has(copy.fields.word) ? 1 : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1) : 2, copy.type == 'gift' && !has(copy.fields.apotheosisLevel)) + max(0, gifts.effortOfTheWord - 1) + 3 * max(0, words.count - 3)","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"call","fn":"sumCopies","args":[{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","fields","word"]}]}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["copy","fields","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["copy","fields","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","fields","apotheosisLevel"]}]}}}]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":1}}]}},"right":{"type":"binary","op":"*","left":{"type":"int","value":3},"right":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":3}}]}}}},"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))":{"text":"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))","tree":{"type":"call","fn":"sumCopies","args":[{"type":"name","path":["copy","state","committed"]},{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","state","committed"]}]}}]}},"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}},"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)\n + maxList(flags.faces,\n (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4)\n - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))":{"text":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4) + maxList(flags.faces, (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4) - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))","tree":{"type":"binary","op":"+","left":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]},"right":{"type":"call","fn":"maxList","args":[{"type":"name","path":["flags","faces"]},{"type":"binary","op":"-","left":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}},"right":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}}]}}},"sumList(flags.faces, x)":{"text":"sumList(flags.faces, x)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"name","path":["x"]}]}},"sumList(flags.faces, x) + flags.add":{"text":"sumList(flags.faces, x) + flags.add","tree":{"type":"binary","op":"+","left":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"name","path":["x"]}]},"right":{"type":"name","path":["flags","add"]}}},"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","backlash","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}},"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","roll","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}}}};
2
+ export default {"manifest":{"id":"godbound-core","version":"0.2.0","specVersion":"0.3.0","license":"LicenseRef-sine-nomine-free-edition","credit":"Text from Godbound: A Game of Divine Heroes (Free Edition), © 2016 Sine Nomine Publishing, by Kevin Crawford. Used with the author's permission.","notices":{"permission":"The content of the Godbound Free Edition is reproduced here with the permission of its author, Kevin Crawford; content found only in the deluxe edition is not included.","not-affiliated":"Godbound is a game by Kevin Crawford, published by Sine Nomine Publishing. This pack is an unofficial model of the game: it is not affiliated with or endorsed by Sine Nomine Publishing."},"defaultLanguage":"en"},"rules":{"families":{"save":["hardiness","evasion","spirit"],"attribute":["str","dex","con","wis","int","cha"],"factLevel":[2,3,4,5,6,7,8,9,10]},"fields":{"hp.max":{"type":"integer","formula":"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))","min":1},"hp.current":{"type":"integer","input":true,"default":8,"min":0,"max":"hp.max"},"attack.bonus":{"type":"integer","formula":"level"},"ac.natural":{"type":"integer","formula":9},"ac.armor":{"type":"integer","formula":9},"ac.shield":{"type":"integer","formula":0},"ac.value":{"type":"integer","formula":"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)"},"miracle.armor":{"type":"boolean","input":true,"default":false},"saves.hardiness.base":{"type":"integer","formula":"16 - level - max(attributes.str.mod, attributes.con.mod)"},"saves.evasion.base":{"type":"integer","formula":"16 - level - max(attributes.dex.mod, attributes.int.mod)"},"saves.spirit.base":{"type":"integer","formula":"16 - level - max(attributes.wis.mod, attributes.cha.mod)"},"saves.hardiness.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.hardiness"]},"saves.evasion.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.evasion"]},"saves.spirit.penalty":{"type":"integer","formula":0,"tags":["save-penalty","save.spirit"]},"saves.hardiness.value":{"type":"integer","formula":"saves.hardiness.base + saves.hardiness.penalty","tags":["save","save.hardiness"]},"saves.evasion.value":{"type":"integer","formula":"saves.evasion.base + saves.evasion.penalty","tags":["save","save.evasion"]},"saves.spirit.value":{"type":"integer","formula":"saves.spirit.base + saves.spirit.penalty","tags":["save","save.spirit"]},"fray.die":{"type":"dice","formula":"1d8"},"damage.melee.floor":{"type":"integer","formula":0},"damage.melee.twoHandedFloor":{"type":"integer","formula":0},"damage.melee.bonus":{"type":"integer","formula":0},"damage.ranged.floor":{"type":"integer","formula":0},"damage.melee.maximize":{"type":"integer","formula":0},"damage.ranged.maximize":{"type":"integer","formula":0},"fray.maximize":{"type":"integer","formula":0},"fury.active":{"type":"boolean","input":true,"default":false},"fury.spent":{"type":"boolean","input":true,"default":false},"attributes.str.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.dex.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.con.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.wis.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.int.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.cha.base":{"type":"integer","input":true,"default":10,"min":3,"max":18,"tags":["attribute-base"]},"attributes.str.score":{"type":"integer","formula":"attributes.str.base","tags":["attribute","attr.str"]},"attributes.dex.score":{"type":"integer","formula":"attributes.dex.base","tags":["attribute","attr.dex"]},"attributes.con.score":{"type":"integer","formula":"attributes.con.base","tags":["attribute","attr.con"]},"attributes.wis.score":{"type":"integer","formula":"attributes.wis.base","tags":["attribute","attr.wis"]},"attributes.int.score":{"type":"integer","formula":"attributes.int.base","tags":["attribute","attr.int"]},"attributes.cha.score":{"type":"integer","formula":"attributes.cha.base","tags":["attribute","attr.cha"]},"attributes.str.mod":{"type":"integer","formula":"attributes.str.score <= 3 ? -3\n : attributes.str.score <= 5 ? -2\n : attributes.str.score <= 8 ? -1\n : attributes.str.score <= 12 ? 0\n : attributes.str.score <= 15 ? 1\n : attributes.str.score <= 17 ? 2\n : attributes.str.score == 18 ? 3 : 4","tags":["attribute-mod","attr.str"]},"attributes.dex.mod":{"type":"integer","formula":"attributes.dex.score <= 3 ? -3\n : attributes.dex.score <= 5 ? -2\n : attributes.dex.score <= 8 ? -1\n : attributes.dex.score <= 12 ? 0\n : attributes.dex.score <= 15 ? 1\n : attributes.dex.score <= 17 ? 2\n : attributes.dex.score == 18 ? 3 : 4","tags":["attribute-mod","attr.dex"]},"attributes.con.mod":{"type":"integer","formula":"attributes.con.score <= 3 ? -3\n : attributes.con.score <= 5 ? -2\n : attributes.con.score <= 8 ? -1\n : attributes.con.score <= 12 ? 0\n : attributes.con.score <= 15 ? 1\n : attributes.con.score <= 17 ? 2\n : attributes.con.score == 18 ? 3 : 4","tags":["attribute-mod","attr.con"]},"attributes.wis.mod":{"type":"integer","formula":"attributes.wis.score <= 3 ? -3\n : attributes.wis.score <= 5 ? -2\n : attributes.wis.score <= 8 ? -1\n : attributes.wis.score <= 12 ? 0\n : attributes.wis.score <= 15 ? 1\n : attributes.wis.score <= 17 ? 2\n : attributes.wis.score == 18 ? 3 : 4","tags":["attribute-mod","attr.wis"]},"attributes.int.mod":{"type":"integer","formula":"attributes.int.score <= 3 ? -3\n : attributes.int.score <= 5 ? -2\n : attributes.int.score <= 8 ? -1\n : attributes.int.score <= 12 ? 0\n : attributes.int.score <= 15 ? 1\n : attributes.int.score <= 17 ? 2\n : attributes.int.score == 18 ? 3 : 4","tags":["attribute-mod","attr.int"]},"attributes.cha.mod":{"type":"integer","formula":"attributes.cha.score <= 3 ? -3\n : attributes.cha.score <= 5 ? -2\n : attributes.cha.score <= 8 ? -1\n : attributes.cha.score <= 12 ? 0\n : attributes.cha.score <= 15 ? 1\n : attributes.cha.score <= 17 ? 2\n : attributes.cha.score == 18 ? 3 : 4","tags":["attribute-mod","attr.cha"]},"attributes.str.check":{"type":"integer","formula":"21 - attributes.str.score","tags":["attribute-check","attr.str"]},"attributes.dex.check":{"type":"integer","formula":"21 - attributes.dex.score","tags":["attribute-check","attr.dex"]},"attributes.con.check":{"type":"integer","formula":"21 - attributes.con.score","tags":["attribute-check","attr.con"]},"attributes.wis.check":{"type":"integer","formula":"21 - attributes.wis.score","tags":["attribute-check","attr.wis"]},"attributes.int.check":{"type":"integer","formula":"21 - attributes.int.score","tags":["attribute-check","attr.int"]},"attributes.cha.check":{"type":"integer","formula":"21 - attributes.cha.score","tags":["attribute-check","attr.cha"]},"facts.origin":{"type":"string","input":true,"default":""},"facts.career":{"type":"string","input":true,"default":""},"facts.relationship":{"type":"string","input":true,"default":""},"facts.level2":{"type":"string","input":true,"default":""},"facts.level3":{"type":"string","input":true,"default":""},"facts.level4":{"type":"string","input":true,"default":""},"facts.level5":{"type":"string","input":true,"default":""},"facts.level6":{"type":"string","input":true,"default":""},"facts.level7":{"type":"string","input":true,"default":""},"facts.level8":{"type":"string","input":true,"default":""},"facts.level9":{"type":"string","input":true,"default":""},"facts.level10":{"type":"string","input":true,"default":""},"goal":{"type":"string","input":true,"default":""},"level":{"type":"integer","input":true,"default":1,"min":1,"max":10},"xp.current":{"type":"integer","input":true,"default":0,"min":0},"xp.next":{"type":"integer","formula":"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]"},"dominion.current":{"type":"integer","input":true,"default":0,"min":0},"dominion.spent":{"type":"integer","input":true,"default":0,"min":0},"dominion.next":{"type":"integer","formula":"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]"},"apotheosis.free":{"type":"boolean","input":true,"default":false},"dominion.monthly":{"type":"integer","formula":"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0"},"wealth.current":{"type":"integer","input":true,"default":0,"min":0},"influence.max":{"type":"integer","formula":"2 + (level - 1)"},"influence.committed":{"type":"integer","input":true,"default":0,"min":0},"influence.free":{"type":"integer","formula":"influence.max - influence.committed"},"effort.scene":{"type":"integer","input":true,"default":0,"min":0},"effort.day":{"type":"integer","input":true,"default":0,"min":0},"effort.active":{"type":"integer","formula":"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))"},"effort.max":{"type":"integer","formula":"2 + (level - 1) + (fury.active ? level : 0)"},"effort.committed":{"type":"integer","formula":"effort.scene + effort.day + effort.active"},"effort.free":{"type":"integer","formula":"effort.max - effort.committed"},"gear.armor":{"type":"set","of":"armor"},"gear.shields":{"type":"set","of":"shield"},"lowMagic.spontaneous":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.prepared":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.strain":{"type":"integer","input":true,"default":0,"min":0},"lowMagic.preparedMax":{"type":"integer","formula":"2 * level"},"lowMagic.spontaneousMax":{"type":"integer","formula":"max(0, level - floor(lowMagic.prepared / 2))"},"words.bound":{"type":"set","of":"word"},"words.count":{"type":"integer","formula":"countCopies(copy.type == 'word' && copy.fields.bindable)"},"gifts.points.total":{"type":"integer","formula":"6 + 2 * (level - 1)"},"gifts.effortOfTheWord":{"type":"integer","formula":"countCopies(copy.item == @gifts.universal.effort-of-the-word)"},"gifts.influenceOfTheWord":{"type":"integer","formula":"countCopies(copy.item == @gifts.universal.influence-of-the-word)"},"gifts.points.spent":{"type":"integer","formula":"sumCopies(\n !has(copy.fields.word) ? 1\n : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1)\n : 2,\n copy.type == 'gift' && !has(copy.fields.apotheosisLevel))\n + max(0, gifts.effortOfTheWord - 1)\n + 3 * max(0, words.count - 3)"},"gifts.points.free":{"type":"integer","formula":"gifts.points.total - gifts.points.spent"},"luck.reserve":{"type":"integer","input":true,"default":0,"min":0,"max":20},"luck.rolled":{"type":"boolean","input":true,"default":false}},"situational":[{"id":"fact","type":"boolean","default":false,"rolls":["check"],"effects":[{"target":{"rolls":["check"]},"op":"add","value":4}]},{"id":"luckReserve","type":"boolean","default":false,"rolls":["check","save","attack"],"available":"luck.reserve > 0","effects":[{"target":{"rolls":["check","save","attack"]},"op":"rollModifier","value":{"kind":"setFaces","faces":["luck.reserve"]},"when":"situational.luckReserve"}]}],"resultBands":{"d20":[{"id":"success","when":"roll.kept[0] == 20"},{"id":"failure","when":"roll.kept[0] == 1"},{"id":"success","when":"roll.total >= flags.target","success":true},{"id":"failure","when":true}],"attack":[{"id":"hit","when":"roll.kept[0] == 20"},{"id":"miss","when":"roll.kept[0] == 1"},{"id":"rolled","when":"!flags.known"},{"id":"hit","when":"roll.total >= 20 - flags.ac","success":true},{"id":"miss","when":true}]},"actions":[{"id":"attribute-check","tags":["check"],"params":{"attribute":{"type":"enum","values":["str","dex","con","wis","int","cha"]},"modifier":{"type":"integer","default":0}},"results":{"bands":"d20"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"target":"fieldOf('attributes.{attribute}.check', params.attribute)"}}]},{"id":"roll","kind":"roll","tags":["check",{"formula":"'check.' + params.attribute"}],"bands":"d20","parts":[{"dice":"1d20"},{"value":"params.modifier","when":"params.modifier != 0"}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"result","kind":"outcome","result":"steps.roll.band","data":{"roll":"steps.roll.total","target":"flags.target"}}]},{"id":"saving-throw","tags":["save"],"params":{"save":{"type":"enum","values":["hardiness","evasion","spirit"]},"modifier":{"type":"integer","default":0}},"results":{"bands":"d20"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"target":"fieldOf('saves.{save}.value', params.save)","result":"'failure'"}}]},{"id":"roll","kind":"roll","tags":["save",{"formula":"'save.' + params.save"}],"bands":"d20","parts":[{"dice":"1d20"},{"value":"params.modifier","when":"params.modifier != 0"}]},{"id":"rolled","kind":"branch","cases":[{"when":true,"flags":{"result":"steps.roll.band"}}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"effort","kind":"choice","tags":["failed-save"],"when":"flags.result == 'failure' && effort.free > 0","options":[{"id":"commit","flags":{"result":"'success'"},"changes":[{"type":"adjust","field":"effort.day","by":1}]},{"id":"accept"}],"recommend":"'accept'"},{"id":"result","kind":"outcome","result":"flags.result","data":{"roll":"steps.roll.total","target":"flags.target"}}]},{"id":"attack","tags":["attack"],"available":"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed)\n && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)","params":{"attribute":{"type":"enum","values":["str","dex","con","wis","int","cha"],"optional":true},"targetAc":{"type":"integer","optional":true},"modifier":{"type":"integer","default":0},"maximize":{"type":"boolean","default":false},"straight":{"type":"boolean","default":false}},"results":{"bands":"attack"},"steps":[{"id":"setup","kind":"branch","cases":[{"when":true,"flags":{"known":"has(params.targetAc)","ac":"has(params.targetAc) ? params.targetAc : 0","ranged":"has(item.ranged) && item.ranged","base":"item.damage","mod":"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute)\n : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags)\n : item.attribute == 'str' ? attributes.str.mod\n : item.attribute == 'dex' ? attributes.dex.mod\n : max(attributes.str.mod, attributes.dex.mod)","floor":"has(item.ranged) && item.ranged ? damage.ranged.floor\n : max(damage.melee.floor,\n has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)"}}]},{"id":"dice","kind":"branch","cases":[{"when":true,"flags":{"die":"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base","bonus":"flags.ranged ? 0 : damage.melee.bonus","maximize":"params.maximize\n || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)"}}]},{"id":"hit","kind":"roll","tags":[{"formula":"flags.ranged ? 'attack.ranged' : 'attack.melee'"}],"bands":"attack","parts":[{"dice":"1d20"},{"field":"'attack.bonus'"},{"value":"flags.mod"},{"value":"params.modifier","when":"params.modifier != 0"},{"value":"item.hitModifier","when":"has(item.hitModifier)"}]},{"id":"luck","kind":"changes","when":"situational.luckReserve","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"damage","kind":"roll","when":"steps.hit.band != 'miss'","tags":[{"formula":"flags.ranged ? 'damage.ranged' : 'damage.melee'"}],"parts":[{"dice":"flags.die"},{"value":"flags.mod"},{"value":"flags.bonus","when":"flags.bonus != 0"}]},{"id":"faces","kind":"branch","cases":[{"when":"has(steps.damage)","flags":{"faces":"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die)))\n : steps.damage.kept","add":"steps.damage.total - sumList(steps.damage.kept, x)"}}]},{"id":"total","kind":"branch","cases":[{"when":"has(steps.damage) && params.straight","flags":{"damage":"sumList(flags.faces, x) + flags.add"}},{"when":"has(steps.damage)","flags":{"damage":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)\n + maxList(flags.faces,\n (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4)\n - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))"}},{"when":true,"flags":{"damage":0}}]},{"id":"result","kind":"outcome","result":"steps.hit.band","data":{"hit":"steps.hit.total","damage":"flags.damage"}}]},{"id":"fray","tags":["fray"],"params":{"straight":{"type":"boolean","default":false}},"results":["rolled"],"steps":[{"id":"roll","kind":"roll","tags":["fray"],"parts":[{"dice":"fray.die"}]},{"id":"faces","kind":"branch","cases":[{"when":true,"flags":{"faces":"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die)))\n : steps.roll.kept"}}]},{"id":"total","kind":"branch","cases":[{"when":"params.straight","flags":{"damage":"sumList(flags.faces, x)"}},{"when":true,"flags":{"damage":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"damage":"flags.damage"}}]},{"id":"take-damage","tags":["health"],"params":{"amount":{"type":"integer","min":0}},"results":["taken"],"steps":[{"id":"deal","kind":"changes","changes":[{"type":"adjust","when":"params.amount > 0","field":"hp.current","by":"-params.amount","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'taken'","data":{"amount":"params.amount"}}]},{"id":"heal","tags":["health"],"params":{"amount":{"type":"integer","min":0},"magical":{"type":"boolean","default":false}},"results":["healed","no-effort"],"steps":[{"id":"noEffort","kind":"outcome","when":"params.magical && effort.free < 1","result":"'no-effort'"},{"id":"restore","kind":"changes","changes":[{"type":"adjust","when":"params.amount > 0","field":"hp.current","by":"params.amount","tags":["healing"]},{"type":"adjust","when":"params.magical","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'healed'","data":{"amount":"params.amount"}}]},{"id":"rest","tags":["health","rest"],"results":["rested"],"steps":[{"id":"restore","kind":"changes","changes":[{"type":"set","field":"hp.current","value":"hp.max"}]},{"id":"result","kind":"outcome","result":"'rested'"}]},{"id":"divine-fury","tags":["health","fury"],"available":"hp.current == 0 && !fury.spent && !fury.active","results":["raging"],"steps":[{"id":"rage","kind":"changes","changes":[{"type":"set","field":"hp.current","value":"ceil(hp.max / 2)"},{"type":"set","field":"fury.active","value":true},{"type":"set","field":"fury.spent","value":true}]},{"id":"result","kind":"outcome","result":"'raging'","data":{"rounds":"level"}}]},{"id":"end-fury","tags":["health","fury"],"available":"fury.active","results":["ended"],"steps":[{"id":"end","kind":"changes","changes":[{"type":"set","field":"fury.active","value":false}]},{"id":"result","kind":"outcome","result":"'ended'"}]},{"id":"create-character","tags":["creation"],"available":"character.creating && words.count == 0","params":{"random":{"type":"boolean","default":false}},"results":["created"],"steps":[{"id":"method","kind":"choice","when":"!params.random","options":[{"id":"roll"},{"id":"array"}],"recommend":"'array'"},{"id":"roll1","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll2","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll3","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll4","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll5","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"roll6","kind":"roll","when":"params.random || steps.method.picked == 'roll'","tags":["creation"],"parts":[{"dice":"4d6dl1"}]},{"id":"scores","kind":"branch","cases":[{"when":"has(steps.roll1)","flags":{"values":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]","order":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]"}},{"when":true,"flags":{"values":"[16, 14, 13, 13, 10, 8]","order":"[13, 14, 16, 13, 10, 8]"}}]},{"id":"attributes","kind":"allocate","fields":{"type":"field","where":"'attribute-base' in item.tags"},"values":["flags.values[0]","flags.values[1]","flags.values[2]","flags.values[3]","flags.values[4]","flags.values[5]"],"recommend":{"attributes.str.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]","attributes.dex.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]","attributes.con.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]","attributes.wis.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]","attributes.int.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]","attributes.cha.base":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]"}},{"id":"words","kind":"choice","options":{"content":{"type":"word","where":"item.bindable && picks == 0"}},"repeat":{"max":3,"min":3},"random":"params.random","recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"moreWords","kind":"choice","when":"!params.random","options":[{"id":"no"},{"id":"yes"}],"recommend":"'no'"},{"id":"extraWord","kind":"choice","when":"has(steps.moreWords) && steps.moreWords.picked == 'yes'","sheet":"proposed","options":{"content":{"type":"word","where":"item.bindable && !(item.id in words.bound)"}},"recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"gifts","kind":"choice","sheet":"proposed","options":{"content":{"type":"gift","where":"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound\n || (!params.random && item.degree == 'lesser'))\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free"}},"repeat":{"max":12,"min":0},"random":"params.random","prefer":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"armor","kind":"choice","options":{"values":{"formula":"['none'] + sortList(gear.armor, -itemField(x, 'ac'))"}},"random":"params.random","recommend":"'none'","changes":[{"type":"addItem","when":"picked.value != 'none'","entry":{"item":"picked.value","equipped":true}}]},{"id":"shield","kind":"choice","options":{"values":{"formula":"['none'] + sortList(gear.shields, itemField(x, 'bonus'))"}},"random":"params.random","recommend":"'none'","changes":[{"type":"addItem","when":"picked.value != 'none'","entry":{"item":"picked.value","equipped":true}}]},{"id":"weapon","kind":"choice","options":{"content":{"type":"weapon","where":"item.id != @weapons.unarmed"}},"random":"params.random","recommend":"@weapons.medium","changes":[{"type":"addItem","entry":{"item":"picked.id","equipped":true}}]},{"id":"picks","kind":"choice","options":{"pending":{}},"random":"params.random && choice.id == 'invocations'"},{"id":"finish","tags":["creation.finish"],"kind":"changes","sheet":"proposed","changes":[{"type":"set","field":"hp.current","value":"hp.max"},{"type":"finishCreation"}]},{"id":"result","kind":"outcome","result":"'created'"}]},{"id":"level-up","tags":["level"],"available":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","results":["advanced"],"steps":[{"id":"advance","tags":["level.gain"],"kind":"changes","changes":[{"type":"adjust","field":"level","by":1},{"type":"set","field":"fury.spent","value":false}]},{"id":"newWord","kind":"choice","sheet":"proposed","when":"gifts.points.free >= 3","options":[{"id":"no"},{"id":"yes"}],"recommend":"'no'"},{"id":"word","kind":"choice","when":"has(steps.newWord) && steps.newWord.picked == 'yes'","sheet":"proposed","options":{"content":{"type":"word","where":"item.bindable && !(item.id in words.bound)"}},"recommend":"options[0]","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"gifts","kind":"choice","sheet":"proposed","options":{"content":{"type":"gift","where":"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound || item.degree == 'lesser')\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free"}},"repeat":{"max":12,"min":0},"prefer":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","changes":[{"type":"addItem","entry":{"item":"picked.id"}}]},{"id":"picks","kind":"choice","options":{"pending":{}}},{"id":"result","kind":"outcome","result":"'advanced'"}]},{"id":"commit-effort","tags":["effort"],"available":"effort.free > 0","params":{"duration":{"type":"enum","values":["scene","day"],"default":"day"},"amount":{"type":"integer","default":1,"min":1,"max":"effort.free"}},"results":["committed"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","when":"params.duration == 'scene'","field":"effort.scene","by":"params.amount"},{"type":"adjust","when":"params.duration == 'day'","field":"effort.day","by":"params.amount"}]},{"id":"result","kind":"outcome","result":"'committed'","data":{"amount":"params.amount"}}]},{"id":"miracle","tags":["effort","miracle"],"available":"effort.free > 0","params":{"kind":{"type":"enum","values":["effect","mimic-day-gift","armor","hurt-one","hurt-several"],"default":"effect"},"straight":{"type":"boolean","default":false}},"results":["invoked","no-effort"],"steps":[{"id":"noEffort","kind":"outcome","when":"params.kind == 'mimic-day-gift' && effort.free < 2","result":"'no-effort'"},{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"effort.day","by":"params.kind == 'mimic-day-gift' ? 2 : 1"},{"type":"set","when":"params.kind == 'armor'","field":"miracle.armor","value":true}]},{"id":"damage","kind":"roll","when":"params.kind == 'hurt-one' || params.kind == 'hurt-several'","tags":["damage","damage.miracle"],"parts":[{"dice":"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6"}]},{"id":"total","kind":"branch","cases":[{"when":true,"flags":{"damage":"!has(steps.damage) ? 0\n : params.straight ? steps.damage.total\n : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'invoked'","data":{"damage":"flags.damage"}}]},{"id":"end-scene","tags":["effort","rest"],"results":["ended"],"steps":[{"id":"reset","tags":["rest.scene"],"kind":"changes","changes":[{"type":"set","field":"effort.scene","value":0},{"type":"set","field":"miracle.armor","value":false}]},{"id":"result","kind":"outcome","result":"'ended'"}]},{"id":"new-day","tags":["effort","rest"],"params":{"keepActive":{"type":"boolean","default":false}},"results":["dawn"],"steps":[{"id":"reset","tags":["rest.day"],"kind":"changes","changes":[{"type":"set","field":"effort.scene","value":0},{"type":"set","field":"effort.day","value":0},{"type":"set","field":"miracle.armor","value":false},{"type":"set","field":"luck.reserve","value":0},{"type":"set","field":"luck.rolled","value":false},{"type":"setState","when":"!params.keepActive","copies":{"type":"gift","where":"self.committed > 0"},"key":"committed","value":0},{"type":"setState","when":"!params.keepActive","grants":{"where":"item.type == 'gift' && self.committed > 0"},"key":"committed","value":0},{"type":"setState","copies":{"type":"artifact","where":"self.spent > 0"},"key":"spent","value":0},{"type":"setState","copies":{"type":"artifact","where":"self.bonded"},"key":"bonded","value":false}]},{"id":"result","kind":"outcome","result":"'dawn'"}]},{"id":"commit-influence","tags":["influence"],"available":"influence.free > 0","params":{"amount":{"type":"integer","default":1,"min":1,"max":"influence.free"}},"results":["committed"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"influence.committed","by":"params.amount"}]},{"id":"result","kind":"outcome","result":"'committed'"}]},{"id":"reclaim-influence","tags":["influence"],"available":"influence.committed > 0","params":{"amount":{"type":"integer","default":1,"min":1,"max":"influence.committed"}},"results":["reclaimed"],"steps":[{"id":"reclaim","kind":"changes","changes":[{"type":"adjust","field":"influence.committed","by":"-params.amount"}]},{"id":"result","kind":"outcome","result":"'reclaimed'"}]},{"id":"cast-invocation","tags":["theurgy"],"params":{"speed":{"type":"enum","values":["slow","quick","instant"],"default":"slow"}},"results":["cast"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","when":"params.speed == 'quick'","field":"effort.scene","by":1},{"type":"adjust","when":"params.speed == 'instant'","field":"effort.day","by":1}]},{"id":"backlash","kind":"roll","when":"params.speed == 'instant'","tags":["backlash"],"parts":[{"dice":"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20"}]},{"id":"harm","kind":"branch","cases":[{"when":"has(steps.backlash)","flags":{"damage":"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}},{"when":true,"flags":{"damage":0}}]},{"id":"hurt","kind":"changes","when":"flags.damage > 0","changes":[{"type":"adjust","field":"hp.current","by":"-flags.damage","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'cast'","data":{"rounds":"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0","damage":"flags.damage"}}]},{"id":"cast-spontaneous","tags":["low-magic"],"available":"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax","results":["cast"],"steps":[{"id":"cast","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.spontaneous","by":1}]},{"id":"cost","kind":"choice","when":"item.strain","options":[{"id":"strain","changes":[{"type":"adjust","field":"lowMagic.strain","by":1}]},{"id":"injury"}],"recommend":"'strain'"},{"id":"injury","kind":"roll","when":"has(steps.cost) && steps.cost.picked == 'injury'","tags":["backlash"],"parts":[{"dice":"1d6"}]},{"id":"hurt","kind":"changes","when":"has(steps.injury) && steps.injury.total >= 2","changes":[{"type":"adjust","field":"hp.current","by":"steps.injury.total >= 6 ? -2 : -1","tags":["damage"]}]},{"id":"result","kind":"outcome","result":"'cast'"}]},{"id":"prepare-spell","tags":["low-magic"],"available":"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax","results":["prepared"],"steps":[{"id":"store","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.prepared","by":1}]},{"id":"result","kind":"outcome","result":"'prepared'"}]},{"id":"release-spell","tags":["low-magic"],"available":"item.casting == 'prepared' && lowMagic.prepared > 0","results":["released"],"steps":[{"id":"release","kind":"changes","changes":[{"type":"adjust","field":"lowMagic.prepared","by":-1}]},{"id":"result","kind":"outcome","result":"'released'"}]},{"id":"negate-low-magic","tags":["low-magic","effort"],"available":"effort.free > 0","results":["negated"],"steps":[{"id":"commit","kind":"changes","changes":[{"type":"adjust","field":"effort.scene","by":1}]},{"id":"result","kind":"outcome","result":"'negated'"}]},{"id":"magic-respite","tags":["low-magic","rest"],"available":"lowMagic.spontaneous > 0 || lowMagic.strain > 0","results":["rested"],"steps":[{"id":"reset","kind":"changes","changes":[{"type":"set","field":"lowMagic.spontaneous","value":0},{"type":"set","field":"lowMagic.strain","value":0}]},{"id":"result","kind":"outcome","result":"'rested'"}]},{"id":"bond-artifact","tags":["artifact","effort"],"available":"!self.bonded && effort.free > 0","results":["bonded"],"steps":[{"id":"bond","kind":"changes","changes":[{"type":"adjust","field":"effort.day","by":1},{"type":"setState","entry":"self","key":"bonded","value":true}]},{"id":"result","kind":"outcome","result":"'bonded'"}]},{"id":"invoke-gift","tags":["gift","effort"],"available":"item.commit != 'none' && !has(item.blast) && !has(item.healing)\n && (item.commit != 'active' || self.committed == 0)\n && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)","results":["invoked"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"flags.artifact && item.commit != 'active'","entry":"self","key":"spent","by":1},{"type":"adjustState","when":"flags.artifact && item.commit == 'active'","grant":"self","key":"committed","by":1},{"type":"adjustState","when":"!flags.artifact && item.commit == 'active'","entry":"self","key":"committed","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'day'","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'invoked'"}]},{"id":"release-gift","tags":["gift","effort"],"available":"item.commit == 'active' && self.committed > 0","results":["released"],"steps":[{"id":"release","kind":"changes","changes":[{"type":"setState","when":"self.artifactEffort > 0","grant":"self","key":"committed","value":0},{"type":"setState","when":"self.artifactEffort == 0","entry":"self","key":"committed","value":0}]},{"id":"result","kind":"outcome","result":"'released'"}]},{"id":"gift-blast","tags":["gift","damage"],"available":"has(item.blast) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","params":{"mob":{"type":"boolean","default":false},"straight":{"type":"boolean","default":false}},"results":["rolled"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"item.commit != 'none' && flags.artifact","entry":"self","key":"spent","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","field":"effort.day","by":1}]},{"id":"roll","kind":"roll","tags":["damage","damage.gift"],"parts":[{"dice":"params.mob && has(item.blastMob) ? item.blastMob : item.blast"}]},{"id":"total","kind":"branch","cases":[{"when":"params.straight || params.mob || item.blastStraight","flags":{"damage":"steps.roll.total"}},{"when":true,"flags":{"damage":"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)"}}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"damage":"flags.damage"}}]},{"id":"gift-heal","tags":["gift","healing"],"available":"has(item.healing) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","params":{"onSelf":{"type":"boolean","default":true}},"results":["healed"],"steps":[{"id":"source","kind":"branch","cases":[{"when":true,"flags":{"artifact":"self.artifactEffort > 0"}}]},{"id":"commit","kind":"changes","changes":[{"type":"adjustState","when":"item.commit != 'none' && flags.artifact","entry":"self","key":"spent","by":1},{"type":"adjust","when":"!flags.artifact && item.commit == 'scene'","field":"effort.scene","by":1},{"type":"adjust","when":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","field":"effort.day","by":1}]},{"id":"roll","kind":"roll","tags":["healing"],"parts":[{"dice":"item.healing"}]},{"id":"self","kind":"changes","when":"params.onSelf","changes":[{"type":"adjust","field":"hp.current","by":"steps.roll.total","tags":["healing"]},{"type":"adjust","when":"item.healingCost == 'day'","field":"effort.day","by":1}]},{"id":"other","kind":"changes","when":"!params.onSelf","to":"target","changes":[{"type":"adjust","field":"hp.current","by":"steps.roll.total","tags":["healing"]},{"type":"adjust","when":"item.healingCost == 'day'","field":"effort.day","by":1}]},{"id":"result","kind":"outcome","result":"'healed'","data":{"amount":"steps.roll.total"}}]},{"id":"luck-reserve","tags":["luck"],"available":"!luck.rolled","results":["rolled"],"steps":[{"id":"roll","kind":"roll","tags":["luck"],"parts":[{"dice":"1d20"}]},{"id":"keep","kind":"changes","changes":[{"type":"set","field":"luck.reserve","value":"steps.roll.total"},{"type":"set","field":"luck.rolled","value":true}]},{"id":"result","kind":"outcome","result":"'rolled'","data":{"roll":"steps.roll.total"}}]},{"id":"spend-luck","tags":["luck"],"available":"luck.reserve > 0","results":["spent"],"steps":[{"id":"spend","kind":"changes","changes":[{"type":"set","field":"luck.reserve","value":0}]},{"id":"result","kind":"outcome","result":"'spent'","data":{"roll":"luck.reserve"}}]}],"effects":[{"id":"miracle-armor","target":"ac.natural","op":"atMost","value":3,"when":"miracle.armor"},{"target":"gear.armor","op":"grant","value":{"query":{"type":"armor"}}},{"target":"gear.shields","op":"grant","value":{"query":{"type":"shield"}}},{"id":"low-magic-strain","target":{"rolls":["attack","check","save"]},"op":"add","value":"-lowMagic.strain","when":"lowMagic.strain > 0"}],"followUps":[{"id":"divine-fury","becomes":"hp.current == 0 && !fury.spent && !fury.active","action":"divine-fury"},{"id":"level-up","while":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","action":"level-up"}],"settings":{"rounding":"floor"},"constraints":[{"id":"influence-limit","check":"influence.committed <= influence.max"},{"id":"effort-limit","check":"effort.committed <= effort.max"},{"id":"prepared-spells","check":"lowMagic.prepared <= lowMagic.preparedMax"},{"id":"spontaneous-spells","check":"lowMagic.spontaneous <= lowMagic.spontaneousMax"},{"id":"creation-words","check":"!character.creating || words.count >= 3"},{"id":"gift-points","check":"gifts.points.spent <= gifts.points.total"},{"id":"effort-of-the-word","check":"gifts.effortOfTheWord <= max(1, words.count)"},{"id":"influence-of-the-word","check":"gifts.influenceOfTheWord <= max(1, words.count)"},{"id":"gift-once","copies":{"type":"gift","where":"!item.repeatable"},"check":"countCopies(copy.item == item.id) <= 1"}],"creation":[{"id":"guided","action":"create-character"},{"id":"random","action":"create-character","params":{"random":true},"random":true}],"contentTypes":{"weapon":{"carried":true,"equippable":true,"fields":{"damage":{"type":"dice","required":true},"attribute":{"type":"enum","values":["str","dex","str-or-dex"],"required":true},"ranged":{"type":"boolean","default":false},"twoHanded":{"type":"boolean","default":false},"range":{"type":"integer","min":0}},"actions":[{"use":"attack"}]},"armor":{"carried":true,"equippable":true,"fields":{"weight":{"type":"enum","values":["light","medium","heavy"],"required":true,"open":true},"ac":{"type":"integer","required":true},"penalties":{"type":"integer","default":0,"min":0,"max":2}},"effects":[{"id":"armor-class","target":"ac.armor","op":"atMost","value":"item.ac","when":"self.equipped"}]},"shield":{"carried":true,"equippable":true,"fields":{"bonus":{"type":"integer","default":1,"min":0}},"effects":[{"id":"shield","target":"ac.shield","op":"add","value":"-item.bonus","when":"self.equipped"}]},"invocation":{"carried":false,"copies":{"perItem":1},"fields":{"tier":{"type":"enum","values":["gate","way","throne"],"required":true}},"actions":[{"use":"cast-invocation"}]},"tradition":{"carried":false,"copies":{"perItem":1},"fields":{"casting":{"type":"enum","values":["ritual","spontaneous","prepared"],"required":true},"strain":{"type":"boolean","default":false}},"actions":[{"use":"cast-spontaneous"},{"use":"prepare-spell"},{"use":"release-spell"}]},"artifact":{"carried":true,"equippable":true,"fields":{"effort":{"type":"integer","default":0,"min":0},"dominionCost":{"type":"integer","min":0}},"state":{"bonded":{"type":"boolean","default":false},"spent":{"type":"integer","default":0,"min":0,"max":"item.effort"}},"actions":[{"use":"bond-artifact"}]},"word":{"carried":false,"copies":{"perItem":1},"fields":{"bindable":{"type":"boolean","default":true},"damage":{"type":"dice"},"ranged":{"type":"boolean"},"range":{"type":"integer","min":0}},"effects":[{"id":"bound","target":"words.bound","op":"grant","value":{"formula":"item.id"},"when":"item.bindable"}],"actions":[{"use":"attack"}]},"gift":{"carried":false,"fields":{"word":{"type":"id","of":"word"},"degree":{"type":"enum","values":["lesser","greater"]},"activation":{"type":"enum","values":["constant","on-turn","action","instant"],"required":true},"smite":{"type":"boolean","default":false},"commit":{"type":"enum","values":["none","active","scene","day"],"default":"none"},"repeatable":{"type":"boolean","default":false},"requires":{"type":"id","of":"gift"},"apotheosisLevel":{"type":"integer","min":1,"max":10},"damage":{"type":"dice"},"ranged":{"type":"boolean"},"range":{"type":"integer","min":0},"attribute":{"type":"enum","values":["str","dex","str-or-dex"]},"twoHanded":{"type":"boolean"},"hitModifier":{"type":"integer"},"blast":{"type":"dice"},"blastMob":{"type":"dice"},"blastStraight":{"type":"boolean","default":false},"halvedBy":{"type":"enum","values":["hardiness","evasion","spirit"]},"healing":{"type":"dice"},"healingCost":{"type":"enum","values":["none","day"],"default":"none"}},"state":{"committed":{"type":"integer","default":0,"min":0},"artifactEffort":{"type":"integer","default":0,"min":0}},"actions":[{"use":"invoke-gift"},{"use":"release-gift"},{"use":"attack"},{"use":"gift-blast"},{"use":"gift-heal"}]}},"standardCopies":[{"type":"weapon","where":"item.id == @weapons.unarmed"},{"type":"word","where":"item.id == @words.apotheosis"}],"display":{"groups":[{"id":"attributes","priority":0,"members":{"type":"field","where":"'attribute' in item.tags"}},{"id":"saves","priority":0,"members":{"type":"field","where":"'save' in item.tags"}},{"id":"combat","priority":0},{"id":"effort","priority":0},{"id":"facts","priority":1},{"id":"advancement","priority":1},{"id":"resources","priority":1},{"id":"low-magic","priority":2,"showWhen":"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0"},{"id":"words","kind":"content","priority":0,"members":{"type":"word"}},{"id":"gifts","kind":"content","priority":0,"members":{"type":"gift"},"sectionBy":"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0"},{"id":"invocations","kind":"content","priority":1,"members":{"type":"invocation"},"sectionBy":"indexOf(['gate', 'way', 'throne'], item.tier)"},{"id":"traditions","kind":"content","priority":2,"members":{"type":"tradition"}},{"id":"weapons","kind":"content","priority":1,"members":{"type":"weapon"}},{"id":"armor","kind":"content","priority":1,"members":{"type":"armor"}},{"id":"shields","kind":"content","priority":1,"members":{"type":"shield"}},{"id":"artifacts","kind":"content","priority":1,"members":{"type":"artifact"}},{"id":"attacks","kind":"actions","priority":0,"members":{"type":"action","where":"'attack' in item.tags || 'fray' in item.tags"}},{"id":"rolls","kind":"actions","priority":0,"members":{"type":"action","where":"'check' in item.tags || 'save' in item.tags"}},{"id":"powers","kind":"actions","priority":1,"members":{"type":"action","where":"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags\n || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags\n || 'luck' in item.tags || 'influence' in item.tags"}},{"id":"health-actions","kind":"actions","priority":1,"members":{"type":"action","where":"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags"}},{"id":"creation","kind":"actions","priority":3,"visibility":"background","members":{"type":"action","where":"'creation' in item.tags || 'level' in item.tags"}}],"fields":{"attributes.str.score":{"with":[{"field":"attributes.str.mod","as":"modifier"},{"field":"attributes.str.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"str"}}]},"attributes.dex.score":{"with":[{"field":"attributes.dex.mod","as":"modifier"},{"field":"attributes.dex.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"dex"}}]},"attributes.con.score":{"with":[{"field":"attributes.con.mod","as":"modifier"},{"field":"attributes.con.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"con"}}]},"attributes.wis.score":{"with":[{"field":"attributes.wis.mod","as":"modifier"},{"field":"attributes.wis.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"wis"}}]},"attributes.int.score":{"with":[{"field":"attributes.int.mod","as":"modifier"},{"field":"attributes.int.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"int"}}]},"attributes.cha.score":{"with":[{"field":"attributes.cha.mod","as":"modifier"},{"field":"attributes.cha.check","as":"detail"}],"rolls":[{"action":"attribute-check","params":{"attribute":"cha"}}]},"attributes.str.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.dex.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.con.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.wis.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.int.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.cha.base":{"groups":["attributes"],"priority":2,"visibility":"background"},"attributes.str.mod":{"format":"signed"},"attributes.dex.mod":{"format":"signed"},"attributes.con.mod":{"format":"signed"},"attributes.wis.mod":{"format":"signed"},"attributes.int.mod":{"format":"signed"},"attributes.cha.mod":{"format":"signed"},"saves.hardiness.value":{"with":[{"field":"saves.hardiness.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"hardiness"}}]},"saves.evasion.value":{"with":[{"field":"saves.evasion.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"evasion"}}]},"saves.spirit.value":{"with":[{"field":"saves.spirit.penalty","as":"detail"}],"rolls":[{"action":"saving-throw","params":{"save":"spirit"}}]},"saves.hardiness.base":{"hidden":true},"saves.evasion.base":{"hidden":true},"saves.spirit.base":{"hidden":true},"hp.current":{"groups":["combat"],"priority":0,"visibility":"primary","with":[{"field":"hp.max","as":"max"}],"rolls":[{"action":"take-damage"},{"action":"heal"}]},"hp.max":{"groups":["combat"],"priority":1,"visibility":"background"},"ac.value":{"groups":["combat"],"priority":0,"visibility":"primary"},"ac.natural":{"groups":["combat"],"priority":2,"visibility":"background"},"ac.armor":{"groups":["combat"],"priority":2,"visibility":"background"},"ac.shield":{"groups":["combat"],"priority":2,"visibility":"background"},"miracle.armor":{"groups":["combat"],"priority":2,"input":{"widget":"checkbox"},"showWhen":"miracle.armor"},"attack.bonus":{"groups":["combat"],"priority":0,"format":"signed"},"fray.die":{"groups":["combat"],"priority":0,"format":"dice","rolls":[{"action":"fray"}]},"fury.active":{"groups":["combat"],"priority":1,"input":{"widget":"checkbox"}},"fury.spent":{"groups":["combat"],"priority":2,"input":{"widget":"checkbox"}},"gear.armor":{"hidden":true},"gear.shields":{"hidden":true},"damage.melee.floor":{"hidden":true},"damage.melee.twoHandedFloor":{"hidden":true},"damage.melee.bonus":{"hidden":true},"damage.ranged.floor":{"hidden":true},"damage.melee.maximize":{"hidden":true},"damage.ranged.maximize":{"hidden":true},"fray.maximize":{"hidden":true},"effort.free":{"groups":["effort"],"priority":0,"visibility":"primary","with":[{"field":"effort.max","as":"max"}]},"effort.max":{"groups":["effort"],"priority":1},"effort.committed":{"groups":["effort"],"priority":1},"effort.active":{"groups":["effort"],"priority":2},"effort.scene":{"groups":["effort"],"priority":2},"effort.day":{"groups":["effort"],"priority":2},"influence.free":{"groups":["effort"],"priority":0,"with":[{"field":"influence.max","as":"max"}]},"influence.max":{"groups":["effort"],"priority":1},"influence.committed":{"groups":["effort"],"priority":2},"luck.reserve":{"groups":["effort"],"priority":2,"showWhen":"luck.reserve > 0 || luck.rolled"},"luck.rolled":{"hidden":true},"facts.origin":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.career":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.relationship":{"groups":["facts"],"priority":0,"input":{"widget":"text"}},"facts.level2":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 2"},"facts.level3":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 3"},"facts.level4":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 4"},"facts.level5":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 5"},"facts.level6":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 6"},"facts.level7":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 7"},"facts.level8":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 8"},"facts.level9":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 9"},"facts.level10":{"groups":["facts"],"priority":1,"input":{"widget":"text"},"showWhen":"level >= 10"},"goal":{"groups":["facts"],"priority":2,"input":{"widget":"text"}},"level":{"groups":["advancement"],"priority":0,"visibility":"primary"},"xp.current":{"groups":["advancement"],"priority":0,"with":[{"field":"xp.next","as":"detail"}]},"xp.next":{"groups":["advancement"],"priority":1},"dominion.spent":{"groups":["advancement"],"priority":0,"with":[{"field":"dominion.next","as":"detail"}]},"dominion.next":{"groups":["advancement"],"priority":1},"gifts.points.free":{"groups":["advancement"],"priority":0,"with":[{"field":"gifts.points.total","as":"max"}]},"gifts.points.total":{"groups":["advancement"],"priority":1},"gifts.points.spent":{"groups":["advancement"],"priority":1},"gifts.effortOfTheWord":{"hidden":true},"gifts.influenceOfTheWord":{"hidden":true},"words.bound":{"hidden":true},"words.count":{"hidden":true},"apotheosis.free":{"groups":["advancement"],"priority":2,"input":{"widget":"checkbox"}},"dominion.current":{"groups":["resources"],"priority":0},"dominion.monthly":{"groups":["resources"],"priority":1,"showWhen":"dominion.monthly > 0"},"wealth.current":{"groups":["resources"],"priority":0},"lowMagic.spontaneous":{"groups":["low-magic"],"priority":0,"with":[{"field":"lowMagic.spontaneousMax","as":"max"}]},"lowMagic.spontaneousMax":{"groups":["low-magic"],"priority":1},"lowMagic.prepared":{"groups":["low-magic"],"priority":0,"with":[{"field":"lowMagic.preparedMax","as":"max"}]},"lowMagic.preparedMax":{"groups":["low-magic"],"priority":1},"lowMagic.strain":{"groups":["low-magic"],"priority":1,"showWhen":"lowMagic.strain > 0"}},"types":{"word":{"quantity":{"hidden":true}},"gift":{"quantity":{"hidden":true},"state":{"committed":{"priority":0,"showWhen":"item.commit == 'active'"}},"fields":{"damage":{"format":"dice"},"blast":{"format":"dice"},"blastMob":{"format":"dice"},"healing":{"format":"dice"}}},"invocation":{"quantity":{"hidden":true}},"tradition":{"quantity":{"hidden":true}},"weapon":{"fields":{"damage":{"format":"dice"}}},"artifact":{"state":{"spent":{"priority":0},"bonded":{"priority":0}}}}},"tags":["attribute","attribute-base","attribute-mod","attribute-check","attr.str","attr.dex","attr.con","attr.wis","attr.int","attr.cha","save.hardiness","save.evasion","save.spirit","save-penalty","check.str","check.dex","check.con","check.wis","check.int","check.cha","attack.melee","attack.ranged","damage.melee","damage.ranged","damage.gift","damage.miracle","fray","healing","luck","backlash","failed-save","creation","level","creation.finish","level.gain","rest.scene","rest.day","effort","miracle","influence","rest","health","fury","gift","theurgy","low-magic","artifact"]},"content":[{"id":"armor.heavy","type":"armor","fields":{"weight":"heavy","ac":3,"penalties":2},"choices":[{"id":"penalized","pick":"item.penalties","from":{"values":["hardiness","evasion","spirit"]},"recommend":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","effects":[{"target":{"fields":{"where":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags"}},"op":"add","value":4,"when":"self.equipped"}]}]},{"id":"armor.light","type":"armor","fields":{"weight":"light","ac":7}},{"id":"armor.medium","type":"armor","fields":{"weight":"medium","ac":5,"penalties":1},"choices":[{"id":"penalized","pick":"item.penalties","from":{"values":["hardiness","evasion","spirit"]},"recommend":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","effects":[{"target":{"fields":{"where":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags"}},"op":"add","value":4,"when":"self.equipped"}]}]},{"id":"gifts.alacrity.all-directions-as-one","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"constant"}},{"id":"gifts.alacrity.all-encompassing-presence","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.faster-than-thought","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"instant","smite":true,"commit":"scene"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.flickering-advance","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.alacrity.mist-on-water","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.alacrity.storm-breaks","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.alacrity.swifter-than-the-sun","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.alacrity.untouchable","type":"gift","fields":{"word":"words.alacrity","degree":"greater","activation":"instant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.alacrity in words.bound"}]},{"id":"gifts.alacrity.walk-between-the-rain","type":"gift","fields":{"word":"words.alacrity","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.apotheosis.attend-the-faithful","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":7}},{"id":"gifts.apotheosis.hear-prayer","type":"gift","fields":{"word":"words.apotheosis","activation":"constant","commit":"none","apotheosisLevel":4}},{"id":"gifts.apotheosis.mark-of-the-prophet","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":6}},{"id":"gifts.apotheosis.perceive-the-petitioner","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":5}},{"id":"gifts.apotheosis.receive-the-incense-of-faith","type":"gift","fields":{"word":"words.apotheosis","activation":"constant","commit":"none","apotheosisLevel":2}},{"id":"gifts.apotheosis.sanctify-shrine","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":3}},{"id":"gifts.apotheosis.smite-the-apostate","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":3}},{"id":"gifts.apotheosis.to-bless-the-nations","type":"gift","fields":{"word":"words.apotheosis","activation":"action","commit":"none","apotheosisLevel":8}},{"id":"gifts.artifice.command-the-wheels","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.artifice.faultless-repair","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.artifice.hammerhand","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"on-turn","commit":"active"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10,"when":"self.committed > 0"},{"target":"damage.ranged.floor","op":"atLeast","value":10,"when":"self.committed > 0"}]},{"id":"gifts.artifice.makers-eyes","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}]},{"id":"gifts.artifice.mark-the-maker","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action"}},{"id":"gifts.artifice.perpetual-perfection","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}]},{"id":"gifts.artifice.reverence-of-steel","type":"gift","fields":{"word":"words.artifice","degree":"greater","activation":"constant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.artifice in words.bound"}],"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.artifice.ten-thousand-tools","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"constant"}},{"id":"gifts.artifice.transmuter","type":"gift","fields":{"word":"words.artifice","degree":"lesser","activation":"action","commit":"scene","blast":"(ceil(level / 2))d6"}},{"id":"gifts.beasts.conquer-the-beast-within","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.distant-howl","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.beasts.eyes-of-the-cat","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"constant"}},{"id":"gifts.beasts.link-of-unity","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"constant","commit":"day"}},{"id":"gifts.beasts.lord-of-the-wild","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.many-skinned-mantle","type":"gift","fields":{"word":"words.beasts","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.beasts in words.bound"}]},{"id":"gifts.beasts.red-in-tooth-and-claw","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":false}},{"id":"gifts.beasts.scent-the-prey","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.beasts.untamed-will","type":"gift","fields":{"word":"words.beasts","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.bow.bar-the-red-descent","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.bow.bolt-of-invincible-skill","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.bow.feathered-tempest","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.bow.inexorable-shaft","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}],"effects":[{"target":"damage.ranged.maximize","op":"atLeast","value":1,"when":"self.committed > 0"}]},{"id":"gifts.bow.lord-of-that-which-falls","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"instant","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}]},{"id":"gifts.bow.none-beyond-reach","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"instant"}},{"id":"gifts.bow.omnipresent-reach","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"constant","damage":"1d10","ranged":true},"effects":[{"target":"damage.ranged.floor","op":"atLeast","value":10}]},{"id":"gifts.bow.rain-of-sorrow","type":"gift","fields":{"word":"words.bow","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.bow in words.bound"}]},{"id":"gifts.bow.seeking-flight","type":"gift","fields":{"word":"words.bow","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.command.bearer-of-the-scarlet-crown","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}],"effects":[{"target":"dominion.monthly","op":"add","value":1}]},{"id":"gifts.command.guards-seize-him","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action"}},{"id":"gifts.command.invincible-iron-general","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}]},{"id":"gifts.command.know-the-inner-truth","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.command.lieutenants-wisdom","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.command.lines-of-rule","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.command.soldiers-faithful-heart","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"constant"}},{"id":"gifts.command.thousand-loyal-troops","type":"gift","fields":{"word":"words.command","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.command.thrall-making-shout","type":"gift","fields":{"word":"words.command","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.command in words.bound"}]},{"id":"gifts.death.keeper-of-the-graves","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.death.mantle-of-quietus","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.death.no-release","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.pale-crown-beckons","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.death.reaping-word","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.scythe-hand","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.death.summons-to-day","type":"gift","fields":{"word":"words.death","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.death in words.bound"}]},{"id":"gifts.death.white-bone-harvest","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"3 * level"}},{"id":"gifts.death.withholding-the-mercy","type":"gift","fields":{"word":"words.death","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.conviction-of-error","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.deception.deceivers-unblinking-eye","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.familiar-face","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.deception.impenetrable-deceit","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.deception.liars-flawless-grace","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"constant"}},{"id":"gifts.deception.perfect-masquerade","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.deception.shadow-play","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.deception.veiled-step","type":"gift","fields":{"word":"words.deception","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.deception.walking-ghost","type":"gift","fields":{"word":"words.deception","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.deception in words.bound"}]},{"id":"gifts.earth.builder-of-mountain-peaks","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"action"},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.earth.earthwalker","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.fury-of-the-avalanche","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"on-turn","commit":"active","damage":"1d10","ranged":true},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.earth.jewel-bright-eyes","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.mountain-thews","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.earth.obduracy-of-stone","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.earth.rebellion-of-the-soil","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"action","blast":"1d20"}},{"id":"gifts.earth.stonespeaker","type":"gift","fields":{"word":"words.earth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.earth.tremors-of-the-worlds-heart","type":"gift","fields":{"word":"words.earth","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.earth in words.bound"}]},{"id":"gifts.endurance.amaranth-vitality","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","healing":"ceil(level / 3)"}},{"id":"gifts.endurance.body-of-iron-will","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.endurance.defy-the-iron","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.endurance.elemental-scorn","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","commit":"active","repeatable":true}},{"id":"gifts.endurance.fear-no-steel","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}],"effects":[{"id":"reduce","target":{"incoming":{"fields":["hp.current"],"tags":["damage"]}},"op":"add","value":1,"when":"self.committed > 0"},{"id":"floor","target":{"incoming":{"fields":["hp.current"],"tags":["damage"]}},"op":"atMost","value":0,"when":"self.committed > 0"}]},{"id":"gifts.endurance.harder-than-this","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.endurance.unbreakable","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"instant","commit":"day"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}]},{"id":"gifts.endurance.undying","type":"gift","fields":{"word":"words.endurance","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.endurance in words.bound"}]},{"id":"gifts.endurance.untiring-inspiration","type":"gift","fields":{"word":"words.endurance","degree":"lesser","activation":"constant","commit":"active"}},{"id":"gifts.fertility.birth-blessing","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action"}},{"id":"gifts.fertility.cornucopian-blessing","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.second-spring","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"day","healing":"1d6 + level"}},{"id":"gifts.fertility.seeds-of-death","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.fertility.sense-of-ash","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fertility.sever-the-line","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.touch-of-green-restraint","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.fertility.unending-abundance","type":"gift","fields":{"word":"words.fertility","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.fertility in words.bound"}]},{"id":"gifts.fertility.withering-curse","type":"gift","fields":{"word":"words.fertility","degree":"lesser","activation":"action","commit":"scene","blast":"(level)d12"}},{"id":"gifts.fire.burning-rebuke","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.fire.cinder-words","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.fire.consuming-gaze","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action"}},{"id":"gifts.fire.firestorm","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(level)d6","halvedBy":"evasion"}},{"id":"gifts.fire.firewalker","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.fire.give-forth-the-ashes","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"action"}},{"id":"gifts.fire.master-of-the-furnace","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fire.nimbus-of-flame","type":"gift","fields":{"word":"words.fire","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.fire.searing-blade","type":"gift","fields":{"word":"words.fire","degree":"greater","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200},"prerequisites":[{"id":"word","when":"@words.fire in words.bound"}]},{"id":"gifts.health.burning-vitality","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"on-turn","commit":"day"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.deplete-health","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.ender-of-plagues","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.health.flesh-made-true","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action"}},{"id":"gifts.health.intrinsic-health","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"constant"},"effects":[{"target":"hp.max","op":"add","value":"2 * level"}]},{"id":"gifts.health.lifegiver","type":"gift","fields":{"word":"words.health","degree":"greater","activation":"constant","commit":"day"},"prerequisites":[{"id":"word","when":"@words.health in words.bound"}]},{"id":"gifts.health.merciful-gaze","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"action","healing":"2d6 + level","healingCost":"day"}},{"id":"gifts.health.plaguebringer","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.health.vital-furnace","type":"gift","fields":{"word":"words.health","degree":"lesser","activation":"on-turn","commit":"day"}},{"id":"gifts.journeying.dust-at-your-heels","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.journeying.exodus-road","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.hour-of-need","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.know-the-path","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"constant"}},{"id":"gifts.journeying.master-of-the-key","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.journeying.opening-the-way","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.journeying.path-of-racing-dawn","type":"gift","fields":{"word":"words.journeying","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.journeying in words.bound"}]},{"id":"gifts.journeying.swift-progress","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.journeying.untroubled-passage","type":"gift","fields":{"word":"words.journeying","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.knowledge.best-course","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.best-laid-plans","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"day"}},{"id":"gifts.knowledge.disclose-the-flaw","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"instant","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.excision-of-understanding","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action"}},{"id":"gifts.knowledge.irresistible-query","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.omniscient-scholar","type":"gift","fields":{"word":"words.knowledge","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.knowledge in words.bound"}]},{"id":"gifts.knowledge.truth-that-burns","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.unveiled-truth","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.knowledge.word-far-off","type":"gift","fields":{"word":"words.knowledge","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.luck.blighted-luck","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.luck.by-chance","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"action","commit":"scene","blast":"1d12"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}]},{"id":"gifts.luck.impossible-victory","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}]},{"id":"gifts.luck.nine-lives","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"constant"}},{"id":"gifts.luck.salting-away-the-luck","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.luck.spun-fortune","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.luck.unfailing-fortune","type":"gift","fields":{"word":"words.luck","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.luck in words.bound"}],"effects":[{"target":{"rolls":["check","save","attack","damage","fray","healing","luck"]},"op":"rollModifier","value":{"kind":"reroll","below":1,"once":true}}]},{"id":"gifts.luck.unmarred-beneficence","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.luck.world-against-you","type":"gift","fields":{"word":"words.luck","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":100}},{"id":"gifts.might.descent-of-the-mountain","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"action","damage":"1d12","ranged":true,"attribute":"str","hitModifier":-4}},{"id":"gifts.might.falling-meteor-strike","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"action","commit":"scene","blast":"4 * level","blastStraight":true}},{"id":"gifts.might.fists-of-black-iron","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"constant"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10},{"target":"damage.melee.twoHandedFloor","op":"atLeast","value":12}]},{"id":"gifts.might.leap-the-moon","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.might.loosening-gods-teeth","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.might.shoulders-wide-as-the-world","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.might.stronger-than-you","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"constant"}},{"id":"gifts.might.surge-of-strength","type":"gift","fields":{"word":"words.might","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.might.thews-of-the-gods","type":"gift","fields":{"word":"words.might","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.might in words.bound"}]},{"id":"gifts.night.damn-their-eyes","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.darkling-stairs","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"constant"}},{"id":"gifts.night.darkness-at-noon","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.flesh-of-shadows","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.knives-of-night","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.night.road-of-shadows","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.speaker-in-dreams","type":"gift","fields":{"word":"words.night","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.night in words.bound"}]},{"id":"gifts.night.still-silence-of-sleep","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.night.welcoming-the-dusk","type":"gift","fields":{"word":"words.night","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.passion.banner-of-passion","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.passion.fashioning-a-friend","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.passion.follow-the-threads","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action"}},{"id":"gifts.passion.heart-like-clay","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.heart-of-the-lion","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"constant","commit":"scene"}},{"id":"gifts.passion.infectious-passion","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.snuff-the-hearts-candle","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action"}},{"id":"gifts.passion.song-buried-deep","type":"gift","fields":{"word":"words.passion","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.passion in words.bound"}]},{"id":"gifts.passion.terrifying-mien","type":"gift","fields":{"word":"words.passion","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sea.body-of-water","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.sea.crushing-depths","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sea.living-torrent","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":100}},{"id":"gifts.sea.lord-of-the-waters","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sea.river-tamer","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.salt-spray-purity","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.secrets-of-the-deep","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sea.tsunami-hand","type":"gift","fields":{"word":"words.sea","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"3 * level"},"prerequisites":[{"id":"word","when":"@words.sea in words.bound"}]},{"id":"gifts.sea.walking-with-the-tide","type":"gift","fields":{"word":"words.sea","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sky.boreal-spike","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"blastMob":"(ceil(level / 2))d10"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.clouds-below","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sky.eyes-above","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action"}},{"id":"gifts.sky.fury-of-the-heavens","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"level","blastStraight":true,"halvedBy":"hardiness"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.rain-of-lightning","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action","blast":"1d6","blastMob":"1d6"}},{"id":"gifts.sky.sapphire-wings","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sky.stormsword","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.sky.voice-of-the-winds","type":"gift","fields":{"word":"words.sky","degree":"greater","activation":"action"},"prerequisites":[{"id":"word","when":"@words.sky in words.bound"}]},{"id":"gifts.sky.windsinger","type":"gift","fields":{"word":"words.sky","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.sorcery.adept-of-the-gate","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"constant"},"choices":[{"id":"invocations","pick":4,"from":{"type":"invocation","where":"item.tier == 'gate'"},"recommend":"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.adept-of-the-throne","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","requires":"gifts.sorcery.adept-of-the-way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"},{"id":"word","when":"@words.sorcery in words.bound"}],"choices":[{"id":"invocations","pick":2,"from":{"type":"invocation","where":"item.tier == 'throne'"},"recommend":"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.adept-of-the-way","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","requires":"gifts.sorcery.adept-of-the-gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"},{"id":"word","when":"@words.sorcery in words.bound"}],"choices":[{"id":"invocations","pick":3,"from":{"type":"invocation","where":"item.tier == 'way'"},"recommend":"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]"}]},{"id":"gifts.sorcery.excellent-pause","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sorcery.greater-pavis-of-rule","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sorcery.perfection-of-understanding","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"constant"}},{"id":"gifts.sorcery.ruler-of-the-lesser-paths","type":"gift","fields":{"word":"words.sorcery","degree":"greater","activation":"constant","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sorcery in words.bound"}]},{"id":"gifts.sorcery.subtle-eye-of-knowing","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"on-turn"}},{"id":"gifts.sorcery.will-that-burns","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sorcery.wizards-wrath","type":"gift","fields":{"word":"words.sorcery","degree":"lesser","activation":"instant","commit":"active"}},{"id":"gifts.sun.body-of-burning-light","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200},"effects":[{"target":"ac.natural","op":"atMost","value":3,"when":"self.committed > 0"}]},{"id":"gifts.sun.creations-first-light","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sun.hasten-to-the-light","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.sun.hope-of-the-dawn","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sun.illumine-that-which-is","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sun.purging-noonday-blaze","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"action","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sun.purity-of-brilliant-law","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sun.sunlit-sight","type":"gift","fields":{"word":"words.sun","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.sun.sunstrike","type":"gift","fields":{"word":"words.sun","degree":"greater","activation":"action","smite":true,"commit":"scene","blast":"(level)d10"},"prerequisites":[{"id":"word","when":"@words.sun in words.bound"}]},{"id":"gifts.sword.contempt-of-distance","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"constant"}},{"id":"gifts.sword.cutting-the-crimson-road","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}]},{"id":"gifts.sword.nine-iron-walls","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.sword.path-through-war","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}]},{"id":"gifts.sword.shattering-hand","type":"gift","fields":{"word":"words.sword","degree":"greater","activation":"on-turn","commit":"active"},"prerequisites":[{"id":"word","when":"@words.sword in words.bound"}],"effects":[{"target":"damage.melee.maximize","op":"atLeast","value":1,"when":"self.committed > 0"},{"target":"fray.maximize","op":"atLeast","value":1,"when":"self.committed > 0"}]},{"id":"gifts.sword.steel-without-end","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"constant"},"effects":[{"target":"damage.melee.floor","op":"atLeast","value":10},{"target":"damage.melee.bonus","op":"add","value":1}]},{"id":"gifts.sword.thirsting-razor","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sword.through-a-red-forest","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.sword.unerring-blade","type":"gift","fields":{"word":"words.sword","degree":"lesser","activation":"instant","commit":"scene"}},{"id":"gifts.time.echoes-of-the-past","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"action","commit":"scene"}},{"id":"gifts.time.hand-on-the-balance","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.immediate-foresight","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"constant"},"effects":[{"target":"ac.natural","op":"atMost","value":3}]},{"id":"gifts.time.look-forward","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"action","commit":"day"}},{"id":"gifts.time.prophetic-insight","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"day"}},{"id":"gifts.time.reflex-of-regret","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"scene"}},{"id":"gifts.time.reweave-time","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"action","commit":"day"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.sundered-moment","type":"gift","fields":{"word":"words.time","degree":"greater","activation":"on-turn","commit":"scene"},"prerequisites":[{"id":"word","when":"@words.time in words.bound"}]},{"id":"gifts.time.withering-hour","type":"gift","fields":{"word":"words.time","degree":"lesser","activation":"on-turn","commit":"active","damage":"1d10","ranged":true,"range":200}},{"id":"gifts.universal.corona-of-fury","type":"gift","fields":{"degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(ceil(level / 2))d8"}},{"id":"gifts.universal.divine-wrath","type":"gift","fields":{"degree":"lesser","activation":"action","smite":true,"commit":"scene","blast":"(level)d8"}},{"id":"gifts.universal.effort-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant","repeatable":true},"effects":[{"target":"effort.max","op":"add","value":1}]},{"id":"gifts.universal.excellence-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant"},"choices":[{"id":"attribute","from":{"values":["str","dex","con","wis","int","cha"]},"recommend":"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":18}]}]},{"id":"gifts.universal.influence-of-the-word","type":"gift","fields":{"degree":"lesser","activation":"constant","repeatable":true},"effects":[{"target":"influence.max","op":"add","value":2}]},{"id":"gifts.wealth.craft-to-make","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.wealth.ever-sufficient-provenance","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.wealth.flawless-reproduction","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"active"}},{"id":"gifts.wealth.forever-sufficient","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.golden-gods-hand","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"action","commit":"active"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.prosperitys-abundance","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action"}},{"id":"gifts.wealth.sustain-the-multitude","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"on-turn","commit":"active"}},{"id":"gifts.wealth.thieves-bane","type":"gift","fields":{"word":"words.wealth","degree":"greater","activation":"constant"},"prerequisites":[{"id":"word","when":"@words.wealth in words.bound"}]},{"id":"gifts.wealth.wither-the-purse","type":"gift","fields":{"word":"words.wealth","degree":"lesser","activation":"action","commit":"scene"}},{"id":"invocations.auspice-of-the-divine-king","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.barred-gates-of-forbiddance","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.beacon-of-celestial-purity","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.bright-gods-canticle","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.curse-of-the-blighted-strand","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.deafening-word-of-truth","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.delaying-the-coming-of-dawn","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.directed-convulsion-of-law","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.excision-of-days","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.far-distant-lance","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.gifts-of-spring-and-winter","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.glyph-of-crowned-impunity","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.grinding-teeth-of-god","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.hearts-desire","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.kiss-of-the-crane","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.legion-of-marching-clay","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.mirrored-wheel-of-the-seasons","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.open-the-night-road","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.palace-of-the-sorcerer-prince","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.path-to-the-bright-sanctum","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.pierce-the-veil-of-night","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.pore-of-hell","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.ranks-of-pale-bone","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.seal-of-regnal-dominion","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.shutting-the-dark-way","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.sign-of-avulsive-banishment","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.summon-the-black-iron-servitor","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.sunder-every-sorcery","type":"invocation","fields":{"tier":"throne"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0"}]},{"id":"invocations.sunder-the-greater-spell","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"invocations.sunder-the-lesser-spell","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.tireless-iron-cavalcade","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.trumpet-of-far-utterance","type":"invocation","fields":{"tier":"gate"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0"}]},{"id":"invocations.tumulus-of-sanctified-night","type":"invocation","fields":{"tier":"way"},"prerequisites":[{"id":"adept","when":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0"}]},{"id":"shields.shield","type":"shield"},{"id":"traditions.academy-of-thought","type":"tradition","fields":{"casting":"spontaneous","strain":true}},{"id":"traditions.cinnabar-order","type":"tradition","fields":{"casting":"spontaneous"}},{"id":"traditions.curse-eaters","type":"tradition","fields":{"casting":"prepared"}},{"id":"traditions.empty-way","type":"tradition","fields":{"casting":"spontaneous"}},{"id":"traditions.hedge-magic","type":"tradition","fields":{"casting":"ritual"}},{"id":"traditions.merciful-hand","type":"tradition","fields":{"casting":"prepared"}},{"id":"traditions.seers-of-the-bright-eye","type":"tradition","fields":{"casting":"ritual"}},{"id":"traditions.theotechnicians","type":"tradition","fields":{"casting":"ritual"}},{"id":"weapons.heavy","type":"weapon","fields":{"damage":"1d10","attribute":"str","twoHanded":true}},{"id":"weapons.light","type":"weapon","fields":{"damage":"1d6","attribute":"str-or-dex"}},{"id":"weapons.medium","type":"weapon","fields":{"damage":"1d8","attribute":"str"}},{"id":"weapons.paired","type":"weapon","fields":{"damage":"1d10","attribute":"str-or-dex","twoHanded":true}},{"id":"weapons.ranged-one-handed","type":"weapon","fields":{"damage":"1d6","attribute":"dex","ranged":true,"range":40}},{"id":"weapons.ranged-two-handed","type":"weapon","fields":{"damage":"1d8","attribute":"dex","ranged":true,"twoHanded":true,"range":300}},{"id":"weapons.unarmed","type":"weapon","fields":{"damage":"1d2","attribute":"str-or-dex"}},{"id":"words.alacrity","type":"word","effects":[{"target":"attributes.dex.score","op":"atLeast","value":"attributes.dex.base >= 16 ? 18 : 16"}]},{"id":"words.apotheosis","type":"word","fields":{"bindable":false},"grants":[{"item":"gifts.apotheosis.receive-the-incense-of-faith","when":"level >= 2 && !apotheosis.free"},{"item":"gifts.apotheosis.sanctify-shrine","when":"level >= 3 && !apotheosis.free"},{"item":"gifts.apotheosis.smite-the-apostate","when":"level >= 3 && !apotheosis.free"},{"item":"gifts.apotheosis.hear-prayer","when":"level >= 4 && !apotheosis.free"},{"item":"gifts.apotheosis.perceive-the-petitioner","when":"level >= 5 && !apotheosis.free"},{"item":"gifts.apotheosis.mark-of-the-prophet","when":"level >= 6 && !apotheosis.free"},{"item":"gifts.apotheosis.attend-the-faithful","when":"level >= 7 && !apotheosis.free"},{"item":"gifts.apotheosis.to-bless-the-nations","when":"level >= 8 && !apotheosis.free"}]},{"id":"words.artifice","type":"word"},{"id":"words.beasts","type":"word"},{"id":"words.bow","type":"word"},{"id":"words.command","type":"word","effects":[{"target":"attributes.cha.score","op":"atLeast","value":"attributes.cha.base >= 16 ? 18 : 16"}]},{"id":"words.death","type":"word"},{"id":"words.deception","type":"word","choices":[{"id":"attribute","from":{"values":["dex","cha"]},"recommend":"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.earth","type":"word","choices":[{"id":"attribute","from":{"values":["str","con"]},"recommend":"attributes.str.base <= attributes.con.base ? 'str' : 'con'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.endurance","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.fertility","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.fire","type":"word","fields":{"damage":"1d10","ranged":true,"range":50}},{"id":"words.health","type":"word","effects":[{"target":"attributes.con.score","op":"atLeast","value":"attributes.con.base >= 16 ? 18 : 16"}]},{"id":"words.journeying","type":"word"},{"id":"words.knowledge","type":"word","choices":[{"id":"attribute","from":{"values":["int","wis"]},"recommend":"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.luck","type":"word","actions":[{"use":"luck-reserve"},{"use":"spend-luck"}]},{"id":"words.might","type":"word","effects":[{"target":"attributes.str.score","op":"atLeast","value":19}]},{"id":"words.night","type":"word"},{"id":"words.passion","type":"word","choices":[{"id":"attribute","from":{"values":["cha","wis"]},"recommend":"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'","effects":[{"target":{"fields":{"where":"'attribute' in item.tags && 'attr.' + pick.value in item.tags"}},"op":"atLeast","value":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16"}]}]},{"id":"words.sea","type":"word"},{"id":"words.sky","type":"word"},{"id":"words.sorcery","type":"word","actions":[{"use":"negate-low-magic"}]},{"id":"words.sun","type":"word"},{"id":"words.sword","type":"word"},{"id":"words.time","type":"word","effects":[{"target":"attributes.wis.score","op":"atLeast","value":"attributes.wis.base >= 16 ? 18 : 16"}]},{"id":"words.wealth","type":"word"}],"upgrades":[],"formulas":{"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next":{"text":"!character.creating && level < 10 && xp.current >= xp.next && dominion.spent >= dominion.next","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["character","creating"]}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["xp","current"]},"right":{"type":"name","path":["xp","next"]}}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["dominion","spent"]},"right":{"type":"name","path":["dominion","next"]}}}},"!character.creating || words.count >= 3":{"text":"!character.creating || words.count >= 3","tree":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"name","path":["character","creating"]}},"right":{"type":"binary","op":">=","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":3}}}},"!flags.artifact && (item.commit == 'day' || item.commit == 'active')":{"text":"!flags.artifact && (item.commit == 'day' || item.commit == 'active')","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"day"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}}},"!flags.artifact && item.commit == 'active'":{"text":"!flags.artifact && item.commit == 'active'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"!flags.artifact && item.commit == 'day'":{"text":"!flags.artifact && item.commit == 'day'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"day"}}}},"!flags.artifact && item.commit == 'scene'":{"text":"!flags.artifact && item.commit == 'scene'","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","artifact"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"scene"}}}},"!flags.known":{"text":"!flags.known","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["flags","known"]}}},"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound\n || (!params.random && item.degree == 'lesser'))\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free":{"text":"!has(item.apotheosisLevel) && (item.repeatable || countCopies(copy.item == item.id) == 0) && (!has(item.requires) || countCopies(copy.item == item.requires) > 0) && (item.id != @gifts.universal.effort-of-the-word || gifts.effortOfTheWord < words.count) && (item.id != @gifts.universal.influence-of-the-word || gifts.influenceOfTheWord < words.count) && (!has(item.word) || item.word in words.bound || !params.random && item.degree == 'lesser') && (!has(item.word) ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1) : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2) <= gifts.points.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]}},"right":{"type":"binary","op":"||","left":{"type":"name","path":["item","repeatable"]},"right":{"type":"binary","op":"==","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","requires"]}]}},"right":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","requires"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"right":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["params","random"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"lesser"}}}}},"right":{"type":"binary","op":"<=","left":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":0}}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},"right":{"type":"name","path":["gifts","points","free"]}}}},"!has(item.apotheosisLevel)\n && (item.repeatable || countCopies(copy.item == item.id) == 0)\n && (!has(item.requires) || countCopies(copy.item == item.requires) > 0)\n && (item.id != @gifts.universal.effort-of-the-word\n || gifts.effortOfTheWord < words.count)\n && (item.id != @gifts.universal.influence-of-the-word\n || gifts.influenceOfTheWord < words.count)\n && (!has(item.word) || item.word in words.bound || item.degree == 'lesser')\n && (!has(item.word)\n ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1)\n : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2)\n <= gifts.points.free":{"text":"!has(item.apotheosisLevel) && (item.repeatable || countCopies(copy.item == item.id) == 0) && (!has(item.requires) || countCopies(copy.item == item.requires) > 0) && (item.id != @gifts.universal.effort-of-the-word || gifts.effortOfTheWord < words.count) && (item.id != @gifts.universal.influence-of-the-word || gifts.influenceOfTheWord < words.count) && (!has(item.word) || item.word in words.bound || item.degree == 'lesser') && (!has(item.word) ? (item.id == @gifts.universal.effort-of-the-word && gifts.effortOfTheWord > 0 ? 2 : 1) : item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 2) <= gifts.points.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]}},"right":{"type":"binary","op":"||","left":{"type":"name","path":["item","repeatable"]},"right":{"type":"binary","op":"==","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","requires"]}]}},"right":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","requires"]}}]},"right":{"type":"int","value":0}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"name","path":["words","count"]}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"lesser"}}}},"right":{"type":"binary","op":"<=","left":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":0}}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},"right":{"type":"name","path":["gifts","points","free"]}}}},"!has(steps.damage) ? 0\n : params.straight ? steps.damage.total\n : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"!has(steps.damage) ? 0 : params.straight ? steps.damage.total : sumList(steps.damage.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"name","path":["params","straight"]},"then":{"type":"name","path":["steps","damage","total"]},"else":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}}}},"!item.repeatable":{"text":"!item.repeatable","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["item","repeatable"]}}},"!luck.rolled":{"text":"!luck.rolled","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["luck","rolled"]}}},"!params.keepActive":{"text":"!params.keepActive","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","keepActive"]}}},"!params.onSelf":{"text":"!params.onSelf","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","onSelf"]}}},"!params.random":{"text":"!params.random","tree":{"type":"unary","op":"!","operand":{"type":"name","path":["params","random"]}}},"!self.bonded && effort.free > 0":{"text":"!self.bonded && effort.free > 0","tree":{"type":"binary","op":"&&","left":{"type":"unary","op":"!","operand":{"type":"name","path":["self","bonded"]}},"right":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}},"'accept'":{"text":"'accept'","tree":{"type":"string","value":"accept"}},"'advanced'":{"text":"'advanced'","tree":{"type":"string","value":"advanced"}},"'array'":{"text":"'array'","tree":{"type":"string","value":"array"}},"'attack' in item.tags || 'fray' in item.tags":{"text":"'attack' in item.tags || 'fray' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"attack"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"fray"},"right":{"type":"name","path":["item","tags"]}}}},"'attack.bonus'":{"text":"'attack.bonus'","tree":{"type":"string","value":"attack.bonus"}},"'attribute' in item.tags":{"text":"'attribute' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"attribute"},"right":{"type":"name","path":["item","tags"]}}},"'attribute' in item.tags && 'attr.' + pick.value in item.tags":{"text":"'attribute' in item.tags && 'attr.' + pick.value in item.tags","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"in","left":{"type":"string","value":"attribute"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"binary","op":"+","left":{"type":"string","value":"attr."},"right":{"type":"name","path":["pick","value"]}},"right":{"type":"name","path":["item","tags"]}}}},"'attribute-base' in item.tags":{"text":"'attribute-base' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"attribute-base"},"right":{"type":"name","path":["item","tags"]}}},"'bonded'":{"text":"'bonded'","tree":{"type":"string","value":"bonded"}},"'cast'":{"text":"'cast'","tree":{"type":"string","value":"cast"}},"'check' in item.tags || 'save' in item.tags":{"text":"'check' in item.tags || 'save' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"check"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"save"},"right":{"type":"name","path":["item","tags"]}}}},"'check.' + params.attribute":{"text":"'check.' + params.attribute","tree":{"type":"binary","op":"+","left":{"type":"string","value":"check."},"right":{"type":"name","path":["params","attribute"]}}},"'committed'":{"text":"'committed'","tree":{"type":"string","value":"committed"}},"'created'":{"text":"'created'","tree":{"type":"string","value":"created"}},"'creation' in item.tags || 'level' in item.tags":{"text":"'creation' in item.tags || 'level' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"creation"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"level"},"right":{"type":"name","path":["item","tags"]}}}},"'dawn'":{"text":"'dawn'","tree":{"type":"string","value":"dawn"}},"'ended'":{"text":"'ended'","tree":{"type":"string","value":"ended"}},"'failure'":{"text":"'failure'","tree":{"type":"string","value":"failure"}},"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags\n || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags\n || 'luck' in item.tags || 'influence' in item.tags":{"text":"'gift' in item.tags || 'miracle' in item.tags || 'effort' in item.tags || 'theurgy' in item.tags || 'low-magic' in item.tags || 'artifact' in item.tags || 'luck' in item.tags || 'influence' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"gift"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"miracle"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"effort"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"theurgy"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"low-magic"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"artifact"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"luck"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"influence"},"right":{"type":"name","path":["item","tags"]}}}},"'healed'":{"text":"'healed'","tree":{"type":"string","value":"healed"}},"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags":{"text":"'health' in item.tags || 'rest' in item.tags || 'fury' in item.tags","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"in","left":{"type":"string","value":"health"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"rest"},"right":{"type":"name","path":["item","tags"]}}},"right":{"type":"binary","op":"in","left":{"type":"string","value":"fury"},"right":{"type":"name","path":["item","tags"]}}}},"'invoked'":{"text":"'invoked'","tree":{"type":"string","value":"invoked"}},"'negated'":{"text":"'negated'","tree":{"type":"string","value":"negated"}},"'no'":{"text":"'no'","tree":{"type":"string","value":"no"}},"'no-effort'":{"text":"'no-effort'","tree":{"type":"string","value":"no-effort"}},"'none'":{"text":"'none'","tree":{"type":"string","value":"none"}},"'prepared'":{"text":"'prepared'","tree":{"type":"string","value":"prepared"}},"'raging'":{"text":"'raging'","tree":{"type":"string","value":"raging"}},"'reclaimed'":{"text":"'reclaimed'","tree":{"type":"string","value":"reclaimed"}},"'released'":{"text":"'released'","tree":{"type":"string","value":"released"}},"'rested'":{"text":"'rested'","tree":{"type":"string","value":"rested"}},"'rolled'":{"text":"'rolled'","tree":{"type":"string","value":"rolled"}},"'save' in item.tags":{"text":"'save' in item.tags","tree":{"type":"binary","op":"in","left":{"type":"string","value":"save"},"right":{"type":"name","path":["item","tags"]}}},"'save-penalty' in item.tags && 'save.' + pick.value in item.tags":{"text":"'save-penalty' in item.tags && 'save.' + pick.value in item.tags","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"in","left":{"type":"string","value":"save-penalty"},"right":{"type":"name","path":["item","tags"]}},"right":{"type":"binary","op":"in","left":{"type":"binary","op":"+","left":{"type":"string","value":"save."},"right":{"type":"name","path":["pick","value"]}},"right":{"type":"name","path":["item","tags"]}}}},"'save.' + params.save":{"text":"'save.' + params.save","tree":{"type":"binary","op":"+","left":{"type":"string","value":"save."},"right":{"type":"name","path":["params","save"]}}},"'spent'":{"text":"'spent'","tree":{"type":"string","value":"spent"}},"'strain'":{"text":"'strain'","tree":{"type":"string","value":"strain"}},"'success'":{"text":"'success'","tree":{"type":"string","value":"success"}},"'taken'":{"text":"'taken'","tree":{"type":"string","value":"taken"}},"(ceil(level / 2))d10":{"text":"(ceil(level / 2))d10","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":10,"modifiers":[]}},"(ceil(level / 2))d6":{"text":"(ceil(level / 2))d6","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":6,"modifiers":[]}},"(ceil(level / 2))d8":{"text":"(ceil(level / 2))d8","tree":{"type":"dice","count":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},"sides":8,"modifiers":[]}},"(level)d10":{"text":"(level)d10","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":10,"modifiers":[]}},"(level)d12":{"text":"(level)d12","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":12,"modifiers":[]}},"(level)d6":{"text":"(level)d6","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":6,"modifiers":[]}},"(level)d8":{"text":"(level)d8","tree":{"type":"dice","count":{"type":"name","path":["level"]},"sides":8,"modifiers":[]}},"-flags.damage":{"text":"-flags.damage","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["flags","damage"]}}},"-item.bonus":{"text":"-item.bonus","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["item","bonus"]}}},"-lowMagic.strain":{"text":"-lowMagic.strain","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["lowMagic","strain"]}}},"-params.amount":{"text":"-params.amount","tree":{"type":"unary","op":"-","operand":{"type":"name","path":["params","amount"]}}},"16 - level - max(attributes.dex.mod, attributes.int.mod)":{"text":"16 - level - max(attributes.dex.mod, attributes.int.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","dex","mod"]},{"type":"name","path":["attributes","int","mod"]}]}}},"16 - level - max(attributes.str.mod, attributes.con.mod)":{"text":"16 - level - max(attributes.str.mod, attributes.con.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","str","mod"]},{"type":"name","path":["attributes","con","mod"]}]}}},"16 - level - max(attributes.wis.mod, attributes.cha.mod)":{"text":"16 - level - max(attributes.wis.mod, attributes.cha.mod)","tree":{"type":"binary","op":"-","left":{"type":"binary","op":"-","left":{"type":"int","value":16},"right":{"type":"name","path":["level"]}},"right":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","wis","mod"]},{"type":"name","path":["attributes","cha","mod"]}]}}},"1d10":{"text":"1d10","tree":{"type":"dice","count":1,"sides":10,"modifiers":[]}},"1d12":{"text":"1d12","tree":{"type":"dice","count":1,"sides":12,"modifiers":[]}},"1d2":{"text":"1d2","tree":{"type":"dice","count":1,"sides":2,"modifiers":[]}},"1d20":{"text":"1d20","tree":{"type":"dice","count":1,"sides":20,"modifiers":[]}},"1d6":{"text":"1d6","tree":{"type":"dice","count":1,"sides":6,"modifiers":[]}},"1d6 + level":{"text":"1d6 + level","tree":{"type":"binary","op":"+","left":{"type":"dice","count":1,"sides":6,"modifiers":[]},"right":{"type":"name","path":["level"]}}},"1d8":{"text":"1d8","tree":{"type":"dice","count":1,"sides":8,"modifiers":[]}},"2 * level":{"text":"2 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":2},"right":{"type":"name","path":["level"]}}},"2 + (level - 1)":{"text":"2 + (level - 1)","tree":{"type":"binary","op":"+","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}},"2 + (level - 1) + (fury.active ? level : 0)":{"text":"2 + (level - 1) + (fury.active ? level : 0)","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}},"right":{"type":"conditional","test":{"type":"name","path":["fury","active"]},"then":{"type":"name","path":["level"]},"else":{"type":"int","value":0}}}},"21 - attributes.cha.score":{"text":"21 - attributes.cha.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","cha","score"]}}},"21 - attributes.con.score":{"text":"21 - attributes.con.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","con","score"]}}},"21 - attributes.dex.score":{"text":"21 - attributes.dex.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","dex","score"]}}},"21 - attributes.int.score":{"text":"21 - attributes.int.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","int","score"]}}},"21 - attributes.str.score":{"text":"21 - attributes.str.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","str","score"]}}},"21 - attributes.wis.score":{"text":"21 - attributes.wis.score","tree":{"type":"binary","op":"-","left":{"type":"int","value":21},"right":{"type":"name","path":["attributes","wis","score"]}}},"2d6 + level":{"text":"2d6 + level","tree":{"type":"binary","op":"+","left":{"type":"dice","count":2,"sides":6,"modifiers":[]},"right":{"type":"name","path":["level"]}}},"3 * level":{"text":"3 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":3},"right":{"type":"name","path":["level"]}}},"4 * level":{"text":"4 * level","tree":{"type":"binary","op":"*","left":{"type":"int","value":4},"right":{"type":"name","path":["level"]}}},"4d6dl1":{"text":"4d6dl1","tree":{"type":"dice","count":4,"sides":6,"modifiers":[{"type":"dropLowest","count":1}]}},"6 + 2 * (level - 1)":{"text":"6 + 2 * (level - 1)","tree":{"type":"binary","op":"+","left":{"type":"int","value":6},"right":{"type":"binary","op":"*","left":{"type":"int","value":2},"right":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))":{"text":"8 + attributes.con.mod + (level - 1) * (4 + ceil(attributes.con.mod / 2))","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"int","value":8},"right":{"type":"name","path":["attributes","con","mod"]}},"right":{"type":"binary","op":"*","left":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}},"right":{"type":"binary","op":"+","left":{"type":"int","value":4},"right":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["attributes","con","mod"]},"right":{"type":"int","value":2}}]}}}}},"@weapons.medium":{"text":"@weapons.medium","tree":{"type":"ref","id":"weapons.medium"}},"@words.alacrity in words.bound":{"text":"@words.alacrity in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.alacrity"},"right":{"type":"name","path":["words","bound"]}}},"@words.artifice in words.bound":{"text":"@words.artifice in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.artifice"},"right":{"type":"name","path":["words","bound"]}}},"@words.beasts in words.bound":{"text":"@words.beasts in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.beasts"},"right":{"type":"name","path":["words","bound"]}}},"@words.bow in words.bound":{"text":"@words.bow in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.bow"},"right":{"type":"name","path":["words","bound"]}}},"@words.command in words.bound":{"text":"@words.command in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.command"},"right":{"type":"name","path":["words","bound"]}}},"@words.death in words.bound":{"text":"@words.death in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.death"},"right":{"type":"name","path":["words","bound"]}}},"@words.deception in words.bound":{"text":"@words.deception in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.deception"},"right":{"type":"name","path":["words","bound"]}}},"@words.earth in words.bound":{"text":"@words.earth in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.earth"},"right":{"type":"name","path":["words","bound"]}}},"@words.endurance in words.bound":{"text":"@words.endurance in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.endurance"},"right":{"type":"name","path":["words","bound"]}}},"@words.fertility in words.bound":{"text":"@words.fertility in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.fertility"},"right":{"type":"name","path":["words","bound"]}}},"@words.fire in words.bound":{"text":"@words.fire in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.fire"},"right":{"type":"name","path":["words","bound"]}}},"@words.health in words.bound":{"text":"@words.health in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.health"},"right":{"type":"name","path":["words","bound"]}}},"@words.journeying in words.bound":{"text":"@words.journeying in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.journeying"},"right":{"type":"name","path":["words","bound"]}}},"@words.knowledge in words.bound":{"text":"@words.knowledge in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.knowledge"},"right":{"type":"name","path":["words","bound"]}}},"@words.luck in words.bound":{"text":"@words.luck in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.luck"},"right":{"type":"name","path":["words","bound"]}}},"@words.might in words.bound":{"text":"@words.might in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.might"},"right":{"type":"name","path":["words","bound"]}}},"@words.night in words.bound":{"text":"@words.night in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.night"},"right":{"type":"name","path":["words","bound"]}}},"@words.passion in words.bound":{"text":"@words.passion in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.passion"},"right":{"type":"name","path":["words","bound"]}}},"@words.sea in words.bound":{"text":"@words.sea in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sea"},"right":{"type":"name","path":["words","bound"]}}},"@words.sky in words.bound":{"text":"@words.sky in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sky"},"right":{"type":"name","path":["words","bound"]}}},"@words.sorcery in words.bound":{"text":"@words.sorcery in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sorcery"},"right":{"type":"name","path":["words","bound"]}}},"@words.sun in words.bound":{"text":"@words.sun in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sun"},"right":{"type":"name","path":["words","bound"]}}},"@words.sword in words.bound":{"text":"@words.sword in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.sword"},"right":{"type":"name","path":["words","bound"]}}},"@words.time in words.bound":{"text":"@words.time in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.time"},"right":{"type":"name","path":["words","bound"]}}},"@words.wealth in words.bound":{"text":"@words.wealth in words.bound","tree":{"type":"binary","op":"in","left":{"type":"ref","id":"words.wealth"},"right":{"type":"name","path":["words","bound"]}}},"['none'] + sortList(gear.armor, -itemField(x, 'ac'))":{"text":"['none'] + sortList(gear.armor, -itemField(x, 'ac'))","tree":{"type":"binary","op":"+","left":{"type":"list","items":[{"type":"string","value":"none"}]},"right":{"type":"call","fn":"sortList","args":[{"type":"name","path":["gear","armor"]},{"type":"unary","op":"-","operand":{"type":"call","fn":"itemField","args":[{"type":"name","path":["x"]},{"type":"string","value":"ac"}]}}]}}},"['none'] + sortList(gear.shields, itemField(x, 'bonus'))":{"text":"['none'] + sortList(gear.shields, itemField(x, 'bonus'))","tree":{"type":"binary","op":"+","left":{"type":"list","items":[{"type":"string","value":"none"}]},"right":{"type":"call","fn":"sortList","args":[{"type":"name","path":["gear","shields"]},{"type":"call","fn":"itemField","args":[{"type":"name","path":["x"]},{"type":"string","value":"bonus"}]}]}}},"[13, 14, 16, 13, 10, 8]":{"text":"[13, 14, 16, 13, 10, 8]","tree":{"type":"list","items":[{"type":"int","value":13},{"type":"int","value":14},{"type":"int","value":16},{"type":"int","value":13},{"type":"int","value":10},{"type":"int","value":8}]}},"[16, 14, 13, 13, 10, 8]":{"text":"[16, 14, 13, 13, 10, 8]","tree":{"type":"list","items":[{"type":"int","value":16},{"type":"int","value":14},{"type":"int","value":13},{"type":"int","value":13},{"type":"int","value":10},{"type":"int","value":8}]}},"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total,\n steps.roll5.total, steps.roll6.total]":{"text":"[steps.roll1.total, steps.roll2.total, steps.roll3.total, steps.roll4.total, steps.roll5.total, steps.roll6.total]","tree":{"type":"list","items":[{"type":"name","path":["steps","roll1","total"]},{"type":"name","path":["steps","roll2","total"]},{"type":"name","path":["steps","roll3","total"]},{"type":"name","path":["steps","roll4","total"]},{"type":"name","path":["steps","roll5","total"]},{"type":"name","path":["steps","roll6","total"]}]}},"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0":{"text":"apotheosis.free && level >= 2 ? 1 + floor(level / 3) : 0","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"name","path":["apotheosis","free"]},"right":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}},"then":{"type":"binary","op":"+","left":{"type":"int","value":1},"right":{"type":"call","fn":"floor","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}]}},"else":{"type":"int","value":0}}},"attributes.cha.base":{"text":"attributes.cha.base","tree":{"type":"name","path":["attributes","cha","base"]}},"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'":{"text":"attributes.cha.base <= attributes.wis.base ? 'cha' : 'wis'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","base"]},"right":{"type":"name","path":["attributes","wis","base"]}},"then":{"type":"string","value":"cha"},"else":{"type":"string","value":"wis"}}},"attributes.cha.base >= 16 ? 18 : 16":{"text":"attributes.cha.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","cha","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.cha.score <= 3 ? -3\n : attributes.cha.score <= 5 ? -2\n : attributes.cha.score <= 8 ? -1\n : attributes.cha.score <= 12 ? 0\n : attributes.cha.score <= 15 ? 1\n : attributes.cha.score <= 17 ? 2\n : attributes.cha.score == 18 ? 3 : 4":{"text":"attributes.cha.score <= 3 ? -3 : attributes.cha.score <= 5 ? -2 : attributes.cha.score <= 8 ? -1 : attributes.cha.score <= 12 ? 0 : attributes.cha.score <= 15 ? 1 : attributes.cha.score <= 17 ? 2 : attributes.cha.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","cha","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.con.base":{"text":"attributes.con.base","tree":{"type":"name","path":["attributes","con","base"]}},"attributes.con.base >= 16 ? 18 : 16":{"text":"attributes.con.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","con","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.con.score <= 3 ? -3\n : attributes.con.score <= 5 ? -2\n : attributes.con.score <= 8 ? -1\n : attributes.con.score <= 12 ? 0\n : attributes.con.score <= 15 ? 1\n : attributes.con.score <= 17 ? 2\n : attributes.con.score == 18 ? 3 : 4":{"text":"attributes.con.score <= 3 ? -3 : attributes.con.score <= 5 ? -2 : attributes.con.score <= 8 ? -1 : attributes.con.score <= 12 ? 0 : attributes.con.score <= 15 ? 1 : attributes.con.score <= 17 ? 2 : attributes.con.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","con","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.dex.base":{"text":"attributes.dex.base","tree":{"type":"name","path":["attributes","dex","base"]}},"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'":{"text":"attributes.dex.base <= attributes.cha.base ? 'dex' : 'cha'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","base"]},"right":{"type":"name","path":["attributes","cha","base"]}},"then":{"type":"string","value":"dex"},"else":{"type":"string","value":"cha"}}},"attributes.dex.base >= 16 ? 18 : 16":{"text":"attributes.dex.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","dex","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.dex.score <= 3 ? -3\n : attributes.dex.score <= 5 ? -2\n : attributes.dex.score <= 8 ? -1\n : attributes.dex.score <= 12 ? 0\n : attributes.dex.score <= 15 ? 1\n : attributes.dex.score <= 17 ? 2\n : attributes.dex.score == 18 ? 3 : 4":{"text":"attributes.dex.score <= 3 ? -3 : attributes.dex.score <= 5 ? -2 : attributes.dex.score <= 8 ? -1 : attributes.dex.score <= 12 ? 0 : attributes.dex.score <= 15 ? 1 : attributes.dex.score <= 17 ? 2 : attributes.dex.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","dex","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.int.base":{"text":"attributes.int.base","tree":{"type":"name","path":["attributes","int","base"]}},"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'":{"text":"attributes.int.base <= attributes.wis.base ? 'int' : 'wis'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","base"]},"right":{"type":"name","path":["attributes","wis","base"]}},"then":{"type":"string","value":"int"},"else":{"type":"string","value":"wis"}}},"attributes.int.score <= 3 ? -3\n : attributes.int.score <= 5 ? -2\n : attributes.int.score <= 8 ? -1\n : attributes.int.score <= 12 ? 0\n : attributes.int.score <= 15 ? 1\n : attributes.int.score <= 17 ? 2\n : attributes.int.score == 18 ? 3 : 4":{"text":"attributes.int.score <= 3 ? -3 : attributes.int.score <= 5 ? -2 : attributes.int.score <= 8 ? -1 : attributes.int.score <= 12 ? 0 : attributes.int.score <= 15 ? 1 : attributes.int.score <= 17 ? 2 : attributes.int.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","int","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.str.base":{"text":"attributes.str.base","tree":{"type":"name","path":["attributes","str","base"]}},"attributes.str.base <= attributes.con.base ? 'str' : 'con'":{"text":"attributes.str.base <= attributes.con.base ? 'str' : 'con'","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","base"]},"right":{"type":"name","path":["attributes","con","base"]}},"then":{"type":"string","value":"str"},"else":{"type":"string","value":"con"}}},"attributes.str.score <= 3 ? -3\n : attributes.str.score <= 5 ? -2\n : attributes.str.score <= 8 ? -1\n : attributes.str.score <= 12 ? 0\n : attributes.str.score <= 15 ? 1\n : attributes.str.score <= 17 ? 2\n : attributes.str.score == 18 ? 3 : 4":{"text":"attributes.str.score <= 3 ? -3 : attributes.str.score <= 5 ? -2 : attributes.str.score <= 8 ? -1 : attributes.str.score <= 12 ? 0 : attributes.str.score <= 15 ? 1 : attributes.str.score <= 17 ? 2 : attributes.str.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","str","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"attributes.wis.base":{"text":"attributes.wis.base","tree":{"type":"name","path":["attributes","wis","base"]}},"attributes.wis.base >= 16 ? 18 : 16":{"text":"attributes.wis.base >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["attributes","wis","base"]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"attributes.wis.score <= 3 ? -3\n : attributes.wis.score <= 5 ? -2\n : attributes.wis.score <= 8 ? -1\n : attributes.wis.score <= 12 ? 0\n : attributes.wis.score <= 15 ? 1\n : attributes.wis.score <= 17 ? 2\n : attributes.wis.score == 18 ? 3 : 4":{"text":"attributes.wis.score <= 3 ? -3 : attributes.wis.score <= 5 ? -2 : attributes.wis.score <= 8 ? -1 : attributes.wis.score <= 12 ? 0 : attributes.wis.score <= 15 ? 1 : attributes.wis.score <= 17 ? 2 : attributes.wis.score == 18 ? 3 : 4","tree":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":3}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":3}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":5}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":8}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":1}},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":12}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":15}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":17}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["attributes","wis","score"]},"right":{"type":"int","value":18}},"then":{"type":"int","value":3},"else":{"type":"int","value":4}}}}}}}}},"ceil(hp.max / 2)":{"text":"ceil(hp.max / 2)","tree":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["hp","max"]},"right":{"type":"int","value":2}}]}},"ceil(level / 3)":{"text":"ceil(level / 3)","tree":{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}]}},"character.creating && words.count == 0":{"text":"character.creating && words.count == 0","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["character","creating"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":0}}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-gate) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-gate"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-throne) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-throne"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0":{"text":"countCopies(copy.item == @gifts.sorcery.adept-of-the-way) > 0","tree":{"type":"binary","op":">","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.sorcery.adept-of-the-way"}}]},"right":{"type":"int","value":0}}},"countCopies(copy.item == @gifts.universal.effort-of-the-word)":{"text":"countCopies(copy.item == @gifts.universal.effort-of-the-word)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.universal.effort-of-the-word"}}]}},"countCopies(copy.item == @gifts.universal.influence-of-the-word)":{"text":"countCopies(copy.item == @gifts.universal.influence-of-the-word)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"ref","id":"gifts.universal.influence-of-the-word"}}]}},"countCopies(copy.item == item.id) <= 1":{"text":"countCopies(copy.item == item.id) <= 1","tree":{"type":"binary","op":"<=","left":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"==","left":{"type":"name","path":["copy","item"]},"right":{"type":"name","path":["item","id"]}}]},"right":{"type":"int","value":1}}},"countCopies(copy.type == 'word' && copy.fields.bindable)":{"text":"countCopies(copy.type == 'word' && copy.fields.bindable)","tree":{"type":"call","fn":"countCopies","args":[{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"word"}},"right":{"type":"name","path":["copy","fields","bindable"]}}]}},"dominion.monthly > 0":{"text":"dominion.monthly > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["dominion","monthly"]},"right":{"type":"int","value":0}}},"effort.committed <= effort.max":{"text":"effort.committed <= effort.max","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["effort","committed"]},"right":{"type":"name","path":["effort","max"]}}},"effort.free":{"text":"effort.free","tree":{"type":"name","path":["effort","free"]}},"effort.free > 0":{"text":"effort.free > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}},"effort.max - effort.committed":{"text":"effort.max - effort.committed","tree":{"type":"binary","op":"-","left":{"type":"name","path":["effort","max"]},"right":{"type":"name","path":["effort","committed"]}}},"effort.scene + effort.day + effort.active":{"text":"effort.scene + effort.day + effort.active","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"name","path":["effort","scene"]},"right":{"type":"name","path":["effort","day"]}},"right":{"type":"name","path":["effort","active"]}}},"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16":{"text":"fieldOf('attributes.{attribute}.base', pick.value) >= 16 ? 18 : 16","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.base"},{"type":"name","path":["pick","value"]}]},"right":{"type":"int","value":16}},"then":{"type":"int","value":18},"else":{"type":"int","value":16}}},"fieldOf('attributes.{attribute}.check', params.attribute)":{"text":"fieldOf('attributes.{attribute}.check', params.attribute)","tree":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.check"},{"type":"name","path":["params","attribute"]}]}},"fieldOf('saves.{save}.value', params.save)":{"text":"fieldOf('saves.{save}.value', params.save)","tree":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"saves.{save}.value"},{"type":"name","path":["params","save"]}]}},"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]":{"text":"filterList(['spirit', 'evasion', 'hardiness'], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"string","value":"spirit"},{"type":"string","value":"evasion"},{"type":"string","value":"hardiness"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]":{"text":"filterList([@invocations.barred-gates-of-forbiddance, @invocations.beacon-of-celestial-purity, @invocations.bright-gods-canticle, @invocations.excision-of-days, @invocations.kiss-of-the-crane, @invocations.open-the-night-road, @invocations.pore-of-hell, @invocations.ranks-of-pale-bone, @invocations.seal-of-regnal-dominion, @invocations.sunder-the-lesser-spell, @invocations.tireless-iron-cavalcade, @invocations.trumpet-of-far-utterance], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.barred-gates-of-forbiddance"},{"type":"ref","id":"invocations.beacon-of-celestial-purity"},{"type":"ref","id":"invocations.bright-gods-canticle"},{"type":"ref","id":"invocations.excision-of-days"},{"type":"ref","id":"invocations.kiss-of-the-crane"},{"type":"ref","id":"invocations.open-the-night-road"},{"type":"ref","id":"invocations.pore-of-hell"},{"type":"ref","id":"invocations.ranks-of-pale-bone"},{"type":"ref","id":"invocations.seal-of-regnal-dominion"},{"type":"ref","id":"invocations.sunder-the-lesser-spell"},{"type":"ref","id":"invocations.tireless-iron-cavalcade"},{"type":"ref","id":"invocations.trumpet-of-far-utterance"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]":{"text":"filterList([@invocations.curse-of-the-blighted-strand, @invocations.deafening-word-of-truth, @invocations.delaying-the-coming-of-dawn, @invocations.far-distant-lance, @invocations.glyph-of-crowned-impunity, @invocations.mirrored-wheel-of-the-seasons, @invocations.path-to-the-bright-sanctum, @invocations.shutting-the-dark-way, @invocations.sign-of-avulsive-banishment, @invocations.sunder-the-greater-spell, @invocations.tumulus-of-sanctified-night], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.curse-of-the-blighted-strand"},{"type":"ref","id":"invocations.deafening-word-of-truth"},{"type":"ref","id":"invocations.delaying-the-coming-of-dawn"},{"type":"ref","id":"invocations.far-distant-lance"},{"type":"ref","id":"invocations.glyph-of-crowned-impunity"},{"type":"ref","id":"invocations.mirrored-wheel-of-the-seasons"},{"type":"ref","id":"invocations.path-to-the-bright-sanctum"},{"type":"ref","id":"invocations.shutting-the-dark-way"},{"type":"ref","id":"invocations.sign-of-avulsive-banishment"},{"type":"ref","id":"invocations.sunder-the-greater-spell"},{"type":"ref","id":"invocations.tumulus-of-sanctified-night"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]":{"text":"filterList([@invocations.hearts-desire, @invocations.auspice-of-the-divine-king, @invocations.directed-convulsion-of-law, @invocations.gifts-of-spring-and-winter, @invocations.grinding-teeth-of-god, @invocations.legion-of-marching-clay, @invocations.palace-of-the-sorcerer-prince, @invocations.pierce-the-veil-of-night, @invocations.summon-the-black-iron-servitor, @invocations.sunder-every-sorcery], !(x in choice.picks))[0]","tree":{"type":"index","object":{"type":"call","fn":"filterList","args":[{"type":"list","items":[{"type":"ref","id":"invocations.hearts-desire"},{"type":"ref","id":"invocations.auspice-of-the-divine-king"},{"type":"ref","id":"invocations.directed-convulsion-of-law"},{"type":"ref","id":"invocations.gifts-of-spring-and-winter"},{"type":"ref","id":"invocations.grinding-teeth-of-god"},{"type":"ref","id":"invocations.legion-of-marching-clay"},{"type":"ref","id":"invocations.palace-of-the-sorcerer-prince"},{"type":"ref","id":"invocations.pierce-the-veil-of-night"},{"type":"ref","id":"invocations.summon-the-black-iron-servitor"},{"type":"ref","id":"invocations.sunder-every-sorcery"}]},{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["choice","picks"]}}}]},"index":{"type":"int","value":0}}},"flags.artifact && item.commit != 'active'":{"text":"flags.artifact && item.commit != 'active'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["flags","artifact"]},"right":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"flags.artifact && item.commit == 'active'":{"text":"flags.artifact && item.commit == 'active'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["flags","artifact"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}}},"flags.bonus":{"text":"flags.bonus","tree":{"type":"name","path":["flags","bonus"]}},"flags.bonus != 0":{"text":"flags.bonus != 0","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["flags","bonus"]},"right":{"type":"int","value":0}}},"flags.damage":{"text":"flags.damage","tree":{"type":"name","path":["flags","damage"]}},"flags.damage > 0":{"text":"flags.damage > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["flags","damage"]},"right":{"type":"int","value":0}}},"flags.die":{"text":"flags.die","tree":{"type":"name","path":["flags","die"]}},"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base":{"text":"flags.floor > maxOf(flags.base) ? (flags.floor >= 12 ? 1d12 : 1d10) : flags.base","tree":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["flags","floor"]},"right":{"type":"call","fn":"maxOf","args":[{"type":"name","path":["flags","base"]}]}},"then":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["flags","floor"]},"right":{"type":"int","value":12}},"then":{"type":"dice","count":1,"sides":12,"modifiers":[]},"else":{"type":"dice","count":1,"sides":10,"modifiers":[]}},"else":{"type":"name","path":["flags","base"]}}},"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die)))\n : steps.damage.kept":{"text":"flags.maximize ? mapList(steps.damage.kept, maxOf(dieOf(flags.die))) : steps.damage.kept","tree":{"type":"conditional","test":{"type":"name","path":["flags","maximize"]},"then":{"type":"call","fn":"mapList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"call","fn":"maxOf","args":[{"type":"call","fn":"dieOf","args":[{"type":"name","path":["flags","die"]}]}]}]},"else":{"type":"name","path":["steps","damage","kept"]}}},"flags.mod":{"text":"flags.mod","tree":{"type":"name","path":["flags","mod"]}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'cha')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"cha"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'con')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"con"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'dex')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"dex"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'int')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"int"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'str')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"str"}]}}},"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]":{"text":"flags.order[indexOf(['str', 'dex', 'con', 'wis', 'int', 'cha'], 'wis')]","tree":{"type":"index","object":{"type":"name","path":["flags","order"]},"index":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"string","value":"wis"}]}}},"flags.ranged ? 'attack.ranged' : 'attack.melee'":{"text":"flags.ranged ? 'attack.ranged' : 'attack.melee'","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"string","value":"attack.ranged"},"else":{"type":"string","value":"attack.melee"}}},"flags.ranged ? 'damage.ranged' : 'damage.melee'":{"text":"flags.ranged ? 'damage.ranged' : 'damage.melee'","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"string","value":"damage.ranged"},"else":{"type":"string","value":"damage.melee"}}},"flags.ranged ? 0 : damage.melee.bonus":{"text":"flags.ranged ? 0 : damage.melee.bonus","tree":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"int","value":0},"else":{"type":"name","path":["damage","melee","bonus"]}}},"flags.result":{"text":"flags.result","tree":{"type":"name","path":["flags","result"]}},"flags.result == 'failure' && effort.free > 0":{"text":"flags.result == 'failure' && effort.free > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["flags","result"]},"right":{"type":"string","value":"failure"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}},"flags.target":{"text":"flags.target","tree":{"type":"name","path":["flags","target"]}},"flags.values[0]":{"text":"flags.values[0]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":0}}},"flags.values[1]":{"text":"flags.values[1]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":1}}},"flags.values[2]":{"text":"flags.values[2]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":2}}},"flags.values[3]":{"text":"flags.values[3]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":3}}},"flags.values[4]":{"text":"flags.values[4]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":4}}},"flags.values[5]":{"text":"flags.values[5]","tree":{"type":"index","object":{"type":"name","path":["flags","values"]},"index":{"type":"int","value":5}}},"fray.die":{"text":"fray.die","tree":{"type":"name","path":["fray","die"]}},"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die)))\n : steps.roll.kept":{"text":"fray.maximize > 0 ? mapList(steps.roll.kept, maxOf(dieOf(fray.die))) : steps.roll.kept","tree":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["fray","maximize"]},"right":{"type":"int","value":0}},"then":{"type":"call","fn":"mapList","args":[{"type":"name","path":["steps","roll","kept"]},{"type":"call","fn":"maxOf","args":[{"type":"call","fn":"dieOf","args":[{"type":"name","path":["fray","die"]}]}]}]},"else":{"type":"name","path":["steps","roll","kept"]}}},"fury.active":{"text":"fury.active","tree":{"type":"name","path":["fury","active"]}},"gifts.effortOfTheWord <= max(1, words.count)":{"text":"gifts.effortOfTheWord <= max(1, words.count)","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":1},{"type":"name","path":["words","count"]}]}}},"gifts.influenceOfTheWord <= max(1, words.count)":{"text":"gifts.influenceOfTheWord <= max(1, words.count)","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","influenceOfTheWord"]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":1},{"type":"name","path":["words","count"]}]}}},"gifts.points.free >= 3":{"text":"gifts.points.free >= 3","tree":{"type":"binary","op":">=","left":{"type":"name","path":["gifts","points","free"]},"right":{"type":"int","value":3}}},"gifts.points.spent <= gifts.points.total":{"text":"gifts.points.spent <= gifts.points.total","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["gifts","points","spent"]},"right":{"type":"name","path":["gifts","points","total"]}}},"gifts.points.total - gifts.points.spent":{"text":"gifts.points.total - gifts.points.spent","tree":{"type":"binary","op":"-","left":{"type":"name","path":["gifts","points","total"]},"right":{"type":"name","path":["gifts","points","spent"]}}},"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0":{"text":"has(item.apotheosisLevel) ? 3 : !has(item.word) ? 2 : item.degree == 'greater' ? 1 : 0","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["item","apotheosisLevel"]}]},"then":{"type":"int","value":3},"else":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]}},"then":{"type":"int","value":2},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":1},"else":{"type":"int","value":0}}}}},"has(item.blast) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))":{"text":"has(item.blast) && (item.commit == 'none' || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blast"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}}},"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed)\n && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)":{"text":"has(item.damage) && (item.type != 'weapon' || self.equipped || item.id == @weapons.unarmed) && (item.type != 'gift' || item.commit != 'active' || self.committed > 0)","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","damage"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"weapon"}},"right":{"type":"name","path":["self","equipped"]}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}}},"has(item.healing) && (item.commit == 'none'\n || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))":{"text":"has(item.healing) && (item.commit == 'none' || (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0))","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","healing"]}]},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}}},"has(item.hitModifier)":{"text":"has(item.hitModifier)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["item","hitModifier"]}]}},"has(item.ranged) && item.ranged":{"text":"has(item.ranged) && item.ranged","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","ranged"]}]},"right":{"type":"name","path":["item","ranged"]}}},"has(item.ranged) && item.ranged ? damage.ranged.floor\n : max(damage.melee.floor,\n has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)":{"text":"has(item.ranged) && item.ranged ? damage.ranged.floor : max(damage.melee.floor, has(item.twoHanded) && item.twoHanded ? damage.melee.twoHandedFloor : 0)","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","ranged"]}]},"right":{"type":"name","path":["item","ranged"]}},"then":{"type":"name","path":["damage","ranged","floor"]},"else":{"type":"call","fn":"max","args":[{"type":"name","path":["damage","melee","floor"]},{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","twoHanded"]}]},"right":{"type":"name","path":["item","twoHanded"]}},"then":{"type":"name","path":["damage","melee","twoHandedFloor"]},"else":{"type":"int","value":0}}]}}},"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0":{"text":"has(item.word) && item.word in words.bound ? (item.degree == 'greater' ? 2 : 1) : 0","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["item","word"]}]},"right":{"type":"binary","op":"in","left":{"type":"name","path":["item","word"]},"right":{"type":"name","path":["words","bound"]}}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":0}}},"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute)\n : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags)\n : item.attribute == 'str' ? attributes.str.mod\n : item.attribute == 'dex' ? attributes.dex.mod\n : max(attributes.str.mod, attributes.dex.mod)":{"text":"has(params.attribute) ? fieldOf('attributes.{attribute}.mod', params.attribute) : !has(item.attribute) ? maxFields(f.value, 'attribute-mod' in f.tags) : item.attribute == 'str' ? attributes.str.mod : item.attribute == 'dex' ? attributes.dex.mod : max(attributes.str.mod, attributes.dex.mod)","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["params","attribute"]}]},"then":{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.mod"},{"type":"name","path":["params","attribute"]}]},"else":{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","attribute"]}]}},"then":{"type":"call","fn":"maxFields","args":[{"type":"name","path":["f","value"]},{"type":"binary","op":"in","left":{"type":"string","value":"attribute-mod"},"right":{"type":"name","path":["f","tags"]}}]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","attribute"]},"right":{"type":"string","value":"str"}},"then":{"type":"name","path":["attributes","str","mod"]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","attribute"]},"right":{"type":"string","value":"dex"}},"then":{"type":"name","path":["attributes","dex","mod"]},"else":{"type":"call","fn":"max","args":[{"type":"name","path":["attributes","str","mod"]},{"type":"name","path":["attributes","dex","mod"]}]}}}}}},"has(params.targetAc)":{"text":"has(params.targetAc)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["params","targetAc"]}]}},"has(params.targetAc) ? params.targetAc : 0":{"text":"has(params.targetAc) ? params.targetAc : 0","tree":{"type":"conditional","test":{"type":"call","fn":"has","args":[{"type":"name","path":["params","targetAc"]}]},"then":{"type":"name","path":["params","targetAc"]},"else":{"type":"int","value":0}}},"has(steps.backlash)":{"text":"has(steps.backlash)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","backlash"]}]}},"has(steps.cost) && steps.cost.picked == 'injury'":{"text":"has(steps.cost) && steps.cost.picked == 'injury'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","cost"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","cost","picked"]},"right":{"type":"string","value":"injury"}}}},"has(steps.damage)":{"text":"has(steps.damage)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]}},"has(steps.damage) && params.straight":{"text":"has(steps.damage) && params.straight","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","damage"]}]},"right":{"type":"name","path":["params","straight"]}}},"has(steps.injury) && steps.injury.total >= 2":{"text":"has(steps.injury) && steps.injury.total >= 2","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","injury"]}]},"right":{"type":"binary","op":">=","left":{"type":"name","path":["steps","injury","total"]},"right":{"type":"int","value":2}}}},"has(steps.moreWords) && steps.moreWords.picked == 'yes'":{"text":"has(steps.moreWords) && steps.moreWords.picked == 'yes'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","moreWords"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","moreWords","picked"]},"right":{"type":"string","value":"yes"}}}},"has(steps.newWord) && steps.newWord.picked == 'yes'":{"text":"has(steps.newWord) && steps.newWord.picked == 'yes'","tree":{"type":"binary","op":"&&","left":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","newWord"]}]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","newWord","picked"]},"right":{"type":"string","value":"yes"}}}},"has(steps.roll1)":{"text":"has(steps.roll1)","tree":{"type":"call","fn":"has","args":[{"type":"name","path":["steps","roll1"]}]}},"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0":{"text":"hasChoice('tradition') || lowMagic.spontaneous > 0 || lowMagic.prepared > 0","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"call","fn":"hasChoice","args":[{"type":"string","value":"tradition"}]},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"int","value":0}}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":0}}}},"hp.current == 0 && !fury.spent && !fury.active":{"text":"hp.current == 0 && !fury.spent && !fury.active","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["hp","current"]},"right":{"type":"int","value":0}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["fury","spent"]}}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["fury","active"]}}}},"hp.max":{"text":"hp.max","tree":{"type":"name","path":["hp","max"]}},"indexOf(['gate', 'way', 'throne'], item.tier)":{"text":"indexOf(['gate', 'way', 'throne'], item.tier)","tree":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"gate"},{"type":"string","value":"way"},{"type":"string","value":"throne"}]},{"type":"name","path":["item","tier"]}]}},"influence.committed":{"text":"influence.committed","tree":{"type":"name","path":["influence","committed"]}},"influence.committed <= influence.max":{"text":"influence.committed <= influence.max","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["influence","committed"]},"right":{"type":"name","path":["influence","max"]}}},"influence.committed > 0":{"text":"influence.committed > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["influence","committed"]},"right":{"type":"int","value":0}}},"influence.free":{"text":"influence.free","tree":{"type":"name","path":["influence","free"]}},"influence.free > 0":{"text":"influence.free > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["influence","free"]},"right":{"type":"int","value":0}}},"influence.max - influence.committed":{"text":"influence.max - influence.committed","tree":{"type":"binary","op":"-","left":{"type":"name","path":["influence","max"]},"right":{"type":"name","path":["influence","committed"]}}},"item.ac":{"text":"item.ac","tree":{"type":"name","path":["item","ac"]}},"item.bindable":{"text":"item.bindable","tree":{"type":"name","path":["item","bindable"]}},"item.bindable && !(item.id in words.bound)":{"text":"item.bindable && !(item.id in words.bound)","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["item","bindable"]},"right":{"type":"unary","op":"!","operand":{"type":"binary","op":"in","left":{"type":"name","path":["item","id"]},"right":{"type":"name","path":["words","bound"]}}}}},"item.bindable && picks == 0":{"text":"item.bindable && picks == 0","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["item","bindable"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["picks"]},"right":{"type":"int","value":0}}}},"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax":{"text":"item.casting == 'prepared' && lowMagic.prepared < lowMagic.preparedMax","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"prepared"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"name","path":["lowMagic","preparedMax"]}}}},"item.casting == 'prepared' && lowMagic.prepared > 0":{"text":"item.casting == 'prepared' && lowMagic.prepared > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"prepared"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":0}}}},"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax":{"text":"item.casting == 'spontaneous' && lowMagic.spontaneous < lowMagic.spontaneousMax","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","casting"]},"right":{"type":"string","value":"spontaneous"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"name","path":["lowMagic","spontaneousMax"]}}}},"item.commit != 'none' && !has(item.blast) && !has(item.healing)\n && (item.commit != 'active' || self.committed == 0)\n && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)":{"text":"item.commit != 'none' && !has(item.blast) && !has(item.healing) && (item.commit != 'active' || self.committed == 0) && (self.artifactEffort > 0 ? self.spent < self.artifactEffort : effort.free > 0)","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"&&","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blast"]}]}}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["item","healing"]}]}}},"right":{"type":"binary","op":"||","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"right":{"type":"conditional","test":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}},"then":{"type":"binary","op":"<","left":{"type":"name","path":["self","spent"]},"right":{"type":"name","path":["self","artifactEffort"]}},"else":{"type":"binary","op":">","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":0}}}}},"item.commit != 'none' && flags.artifact":{"text":"item.commit != 'none' && flags.artifact","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"!=","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"none"}},"right":{"type":"name","path":["flags","artifact"]}}},"item.commit == 'active'":{"text":"item.commit == 'active'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}}},"item.commit == 'active' && self.committed > 0":{"text":"item.commit == 'active' && self.committed > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","commit"]},"right":{"type":"string","value":"active"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"item.damage":{"text":"item.damage","tree":{"type":"name","path":["item","damage"]}},"item.effort":{"text":"item.effort","tree":{"type":"name","path":["item","effort"]}},"item.healing":{"text":"item.healing","tree":{"type":"name","path":["item","healing"]}},"item.healingCost == 'day'":{"text":"item.healingCost == 'day'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","healingCost"]},"right":{"type":"string","value":"day"}}},"item.hitModifier":{"text":"item.hitModifier","tree":{"type":"name","path":["item","hitModifier"]}},"item.id":{"text":"item.id","tree":{"type":"name","path":["item","id"]}},"item.id != @weapons.unarmed":{"text":"item.id != @weapons.unarmed","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}},"item.id == @weapons.unarmed":{"text":"item.id == @weapons.unarmed","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"weapons.unarmed"}}},"item.id == @words.apotheosis":{"text":"item.id == @words.apotheosis","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","id"]},"right":{"type":"ref","id":"words.apotheosis"}}},"item.penalties":{"text":"item.penalties","tree":{"type":"name","path":["item","penalties"]}},"item.strain":{"text":"item.strain","tree":{"type":"name","path":["item","strain"]}},"item.tier == 'gate'":{"text":"item.tier == 'gate'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"gate"}}},"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20":{"text":"item.tier == 'gate' ? 1d6 : item.tier == 'way' ? 1d12 : 1d20","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"gate"}},"then":{"type":"dice","count":1,"sides":6,"modifiers":[]},"else":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"way"}},"then":{"type":"dice","count":1,"sides":12,"modifiers":[]},"else":{"type":"dice","count":1,"sides":20,"modifiers":[]}}}},"item.tier == 'throne'":{"text":"item.tier == 'throne'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"throne"}}},"item.tier == 'way'":{"text":"item.tier == 'way'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["item","tier"]},"right":{"type":"string","value":"way"}}},"item.type == 'gift' && self.committed > 0":{"text":"item.type == 'gift' && self.committed > 0","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["item","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}}},"level":{"text":"level","tree":{"type":"name","path":["level"]}},"level >= 10":{"text":"level >= 10","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}}},"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]":{"text":"level >= 10 ? 0 : [2, 4, 10, 22, 38, 57, 76, 95, 124][level - 1]","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}},"then":{"type":"int","value":0},"else":{"type":"index","object":{"type":"list","items":[{"type":"int","value":2},{"type":"int","value":4},{"type":"int","value":10},{"type":"int","value":22},{"type":"int","value":38},{"type":"int","value":57},{"type":"int","value":76},{"type":"int","value":95},{"type":"int","value":124}]},"index":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]":{"text":"level >= 10 ? 0 : [3, 6, 12, 24, 48, 72, 96, 130, 170][level - 1]","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":10}},"then":{"type":"int","value":0},"else":{"type":"index","object":{"type":"list","items":[{"type":"int","value":3},{"type":"int","value":6},{"type":"int","value":12},{"type":"int","value":24},{"type":"int","value":48},{"type":"int","value":72},{"type":"int","value":96},{"type":"int","value":130},{"type":"int","value":170}]},"index":{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"int","value":1}}}}},"level >= 2":{"text":"level >= 2","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}},"level >= 2 && !apotheosis.free":{"text":"level >= 2 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 3":{"text":"level >= 3","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}}},"level >= 3 && !apotheosis.free":{"text":"level >= 3 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":3}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 4":{"text":"level >= 4","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":4}}},"level >= 4 && !apotheosis.free":{"text":"level >= 4 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":4}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 5":{"text":"level >= 5","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":5}}},"level >= 5 && !apotheosis.free":{"text":"level >= 5 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":5}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 6":{"text":"level >= 6","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":6}}},"level >= 6 && !apotheosis.free":{"text":"level >= 6 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":6}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 7":{"text":"level >= 7","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":7}}},"level >= 7 && !apotheosis.free":{"text":"level >= 7 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":7}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 8":{"text":"level >= 8","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":8}}},"level >= 8 && !apotheosis.free":{"text":"level >= 8 && !apotheosis.free","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":8}},"right":{"type":"unary","op":"!","operand":{"type":"name","path":["apotheosis","free"]}}}},"level >= 9":{"text":"level >= 9","tree":{"type":"binary","op":">=","left":{"type":"name","path":["level"]},"right":{"type":"int","value":9}}},"lowMagic.prepared <= lowMagic.preparedMax":{"text":"lowMagic.prepared <= lowMagic.preparedMax","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"name","path":["lowMagic","preparedMax"]}}},"lowMagic.spontaneous <= lowMagic.spontaneousMax":{"text":"lowMagic.spontaneous <= lowMagic.spontaneousMax","tree":{"type":"binary","op":"<=","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"name","path":["lowMagic","spontaneousMax"]}}},"lowMagic.spontaneous > 0 || lowMagic.strain > 0":{"text":"lowMagic.spontaneous > 0 || lowMagic.strain > 0","tree":{"type":"binary","op":"||","left":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","spontaneous"]},"right":{"type":"int","value":0}},"right":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","strain"]},"right":{"type":"int","value":0}}}},"lowMagic.strain > 0":{"text":"lowMagic.strain > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["lowMagic","strain"]},"right":{"type":"int","value":0}}},"luck.reserve":{"text":"luck.reserve","tree":{"type":"name","path":["luck","reserve"]}},"luck.reserve > 0":{"text":"luck.reserve > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["luck","reserve"]},"right":{"type":"int","value":0}}},"luck.reserve > 0 || luck.rolled":{"text":"luck.reserve > 0 || luck.rolled","tree":{"type":"binary","op":"||","left":{"type":"binary","op":">","left":{"type":"name","path":["luck","reserve"]},"right":{"type":"int","value":0}},"right":{"type":"name","path":["luck","rolled"]}}},"max(0, level - floor(lowMagic.prepared / 2))":{"text":"max(0, level - floor(lowMagic.prepared / 2))","tree":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["level"]},"right":{"type":"call","fn":"floor","args":[{"type":"binary","op":"/","left":{"type":"name","path":["lowMagic","prepared"]},"right":{"type":"int","value":2}}]}}]}},"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)":{"text":"min(9, min(ac.natural, ac.armor + ac.shield) - attributes.dex.mod)","tree":{"type":"call","fn":"min","args":[{"type":"int","value":9},{"type":"binary","op":"-","left":{"type":"call","fn":"min","args":[{"type":"name","path":["ac","natural"]},{"type":"binary","op":"+","left":{"type":"name","path":["ac","armor"]},"right":{"type":"name","path":["ac","shield"]}}]},"right":{"type":"name","path":["attributes","dex","mod"]}}]}},"miracle.armor":{"text":"miracle.armor","tree":{"type":"name","path":["miracle","armor"]}},"options[0]":{"text":"options[0]","tree":{"type":"index","object":{"type":"name","path":["options"]},"index":{"type":"int","value":0}}},"params.amount":{"text":"params.amount","tree":{"type":"name","path":["params","amount"]}},"params.amount > 0":{"text":"params.amount > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["params","amount"]},"right":{"type":"int","value":0}}},"params.duration == 'day'":{"text":"params.duration == 'day'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","duration"]},"right":{"type":"string","value":"day"}}},"params.duration == 'scene'":{"text":"params.duration == 'scene'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","duration"]},"right":{"type":"string","value":"scene"}}},"params.kind == 'armor'":{"text":"params.kind == 'armor'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"armor"}}},"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6":{"text":"params.kind == 'hurt-one' ? (min(level, 10))d8 : (min(ceil(level / 2), 10))d6","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-one"}},"then":{"type":"dice","count":{"type":"call","fn":"min","args":[{"type":"name","path":["level"]},{"type":"int","value":10}]},"sides":8,"modifiers":[]},"else":{"type":"dice","count":{"type":"call","fn":"min","args":[{"type":"call","fn":"ceil","args":[{"type":"binary","op":"/","left":{"type":"name","path":["level"]},"right":{"type":"int","value":2}}]},{"type":"int","value":10}]},"sides":6,"modifiers":[]}}},"params.kind == 'hurt-one' || params.kind == 'hurt-several'":{"text":"params.kind == 'hurt-one' || params.kind == 'hurt-several'","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-one"}},"right":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"hurt-several"}}}},"params.kind == 'mimic-day-gift' && effort.free < 2":{"text":"params.kind == 'mimic-day-gift' && effort.free < 2","tree":{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"mimic-day-gift"}},"right":{"type":"binary","op":"<","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":2}}}},"params.kind == 'mimic-day-gift' ? 2 : 1":{"text":"params.kind == 'mimic-day-gift' ? 2 : 1","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","kind"]},"right":{"type":"string","value":"mimic-day-gift"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}}},"params.magical":{"text":"params.magical","tree":{"type":"name","path":["params","magical"]}},"params.magical && effort.free < 1":{"text":"params.magical && effort.free < 1","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["params","magical"]},"right":{"type":"binary","op":"<","left":{"type":"name","path":["effort","free"]},"right":{"type":"int","value":1}}}},"params.maximize\n || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)":{"text":"params.maximize || (flags.ranged ? damage.ranged.maximize > 0 : damage.melee.maximize > 0)","tree":{"type":"binary","op":"||","left":{"type":"name","path":["params","maximize"]},"right":{"type":"conditional","test":{"type":"name","path":["flags","ranged"]},"then":{"type":"binary","op":">","left":{"type":"name","path":["damage","ranged","maximize"]},"right":{"type":"int","value":0}},"else":{"type":"binary","op":">","left":{"type":"name","path":["damage","melee","maximize"]},"right":{"type":"int","value":0}}}}},"params.mob && has(item.blastMob) ? item.blastMob : item.blast":{"text":"params.mob && has(item.blastMob) ? item.blastMob : item.blast","tree":{"type":"conditional","test":{"type":"binary","op":"&&","left":{"type":"name","path":["params","mob"]},"right":{"type":"call","fn":"has","args":[{"type":"name","path":["item","blastMob"]}]}},"then":{"type":"name","path":["item","blastMob"]},"else":{"type":"name","path":["item","blast"]}}},"params.modifier":{"text":"params.modifier","tree":{"type":"name","path":["params","modifier"]}},"params.modifier != 0":{"text":"params.modifier != 0","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["params","modifier"]},"right":{"type":"int","value":0}}},"params.onSelf":{"text":"params.onSelf","tree":{"type":"name","path":["params","onSelf"]}},"params.random":{"text":"params.random","tree":{"type":"name","path":["params","random"]}},"params.random && choice.id == 'invocations'":{"text":"params.random && choice.id == 'invocations'","tree":{"type":"binary","op":"&&","left":{"type":"name","path":["params","random"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["choice","id"]},"right":{"type":"string","value":"invocations"}}}},"params.random || steps.method.picked == 'roll'":{"text":"params.random || steps.method.picked == 'roll'","tree":{"type":"binary","op":"||","left":{"type":"name","path":["params","random"]},"right":{"type":"binary","op":"==","left":{"type":"name","path":["steps","method","picked"]},"right":{"type":"string","value":"roll"}}}},"params.speed == 'instant'":{"text":"params.speed == 'instant'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"instant"}}},"params.speed == 'quick'":{"text":"params.speed == 'quick'","tree":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"quick"}}},"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0":{"text":"params.speed == 'quick' ? indexOf(['gate', 'way', 'throne'], item.tier) + 1 : 0","tree":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["params","speed"]},"right":{"type":"string","value":"quick"}},"then":{"type":"binary","op":"+","left":{"type":"call","fn":"indexOf","args":[{"type":"list","items":[{"type":"string","value":"gate"},{"type":"string","value":"way"},{"type":"string","value":"throne"}]},{"type":"name","path":["item","tier"]}]},"right":{"type":"int","value":1}},"else":{"type":"int","value":0}}},"params.straight":{"text":"params.straight","tree":{"type":"name","path":["params","straight"]}},"params.straight || params.mob || item.blastStraight":{"text":"params.straight || params.mob || item.blastStraight","tree":{"type":"binary","op":"||","left":{"type":"binary","op":"||","left":{"type":"name","path":["params","straight"]},"right":{"type":"name","path":["params","mob"]}},"right":{"type":"name","path":["item","blastStraight"]}}},"picked.id":{"text":"picked.id","tree":{"type":"name","path":["picked","id"]}},"picked.value":{"text":"picked.value","tree":{"type":"name","path":["picked","value"]}},"picked.value != 'none'":{"text":"picked.value != 'none'","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["picked","value"]},"right":{"type":"string","value":"none"}}},"roll.kept[0] == 1":{"text":"roll.kept[0] == 1","tree":{"type":"binary","op":"==","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":1}}},"roll.kept[0] == 20":{"text":"roll.kept[0] == 20","tree":{"type":"binary","op":"==","left":{"type":"index","object":{"type":"name","path":["roll","kept"]},"index":{"type":"int","value":0}},"right":{"type":"int","value":20}}},"roll.total >= 20 - flags.ac":{"text":"roll.total >= 20 - flags.ac","tree":{"type":"binary","op":">=","left":{"type":"name","path":["roll","total"]},"right":{"type":"binary","op":"-","left":{"type":"int","value":20},"right":{"type":"name","path":["flags","ac"]}}}},"roll.total >= flags.target":{"text":"roll.total >= flags.target","tree":{"type":"binary","op":">=","left":{"type":"name","path":["roll","total"]},"right":{"type":"name","path":["flags","target"]}}},"saves.evasion.base + saves.evasion.penalty":{"text":"saves.evasion.base + saves.evasion.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","evasion","base"]},"right":{"type":"name","path":["saves","evasion","penalty"]}}},"saves.hardiness.base + saves.hardiness.penalty":{"text":"saves.hardiness.base + saves.hardiness.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","hardiness","base"]},"right":{"type":"name","path":["saves","hardiness","penalty"]}}},"saves.spirit.base + saves.spirit.penalty":{"text":"saves.spirit.base + saves.spirit.penalty","tree":{"type":"binary","op":"+","left":{"type":"name","path":["saves","spirit","base"]},"right":{"type":"name","path":["saves","spirit","penalty"]}}},"self.artifactEffort == 0":{"text":"self.artifactEffort == 0","tree":{"type":"binary","op":"==","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}}},"self.artifactEffort > 0":{"text":"self.artifactEffort > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","artifactEffort"]},"right":{"type":"int","value":0}}},"self.bonded":{"text":"self.bonded","tree":{"type":"name","path":["self","bonded"]}},"self.committed > 0":{"text":"self.committed > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","committed"]},"right":{"type":"int","value":0}}},"self.equipped":{"text":"self.equipped","tree":{"type":"name","path":["self","equipped"]}},"self.spent > 0":{"text":"self.spent > 0","tree":{"type":"binary","op":">","left":{"type":"name","path":["self","spent"]},"right":{"type":"int","value":0}}},"situational.luckReserve":{"text":"situational.luckReserve","tree":{"type":"name","path":["situational","luckReserve"]}},"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]":{"text":"sortList(['str', 'dex', 'con', 'wis', 'int', 'cha'], fieldOf('attributes.{attribute}.base', x))[0]","tree":{"type":"index","object":{"type":"call","fn":"sortList","args":[{"type":"list","items":[{"type":"string","value":"str"},{"type":"string","value":"dex"},{"type":"string","value":"con"},{"type":"string","value":"wis"},{"type":"string","value":"int"},{"type":"string","value":"cha"}]},{"type":"call","fn":"fieldOf","args":[{"type":"string","value":"attributes.{attribute}.base"},{"type":"name","path":["x"]}]}]},"index":{"type":"int","value":0}}},"steps.damage.total - sumList(steps.damage.kept, x)":{"text":"steps.damage.total - sumList(steps.damage.kept, x)","tree":{"type":"binary","op":"-","left":{"type":"name","path":["steps","damage","total"]},"right":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","damage","kept"]},{"type":"name","path":["x"]}]}}},"steps.hit.band":{"text":"steps.hit.band","tree":{"type":"name","path":["steps","hit","band"]}},"steps.hit.band != 'miss'":{"text":"steps.hit.band != 'miss'","tree":{"type":"binary","op":"!=","left":{"type":"name","path":["steps","hit","band"]},"right":{"type":"string","value":"miss"}}},"steps.hit.total":{"text":"steps.hit.total","tree":{"type":"name","path":["steps","hit","total"]}},"steps.injury.total >= 6 ? -2 : -1":{"text":"steps.injury.total >= 6 ? -2 : -1","tree":{"type":"conditional","test":{"type":"binary","op":">=","left":{"type":"name","path":["steps","injury","total"]},"right":{"type":"int","value":6}},"then":{"type":"unary","op":"-","operand":{"type":"int","value":2}},"else":{"type":"unary","op":"-","operand":{"type":"int","value":1}}}},"steps.roll.band":{"text":"steps.roll.band","tree":{"type":"name","path":["steps","roll","band"]}},"steps.roll.total":{"text":"steps.roll.total","tree":{"type":"name","path":["steps","roll","total"]}},"sumCopies(\n !has(copy.fields.word) ? 1\n : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1)\n : 2,\n copy.type == 'gift' && !has(copy.fields.apotheosisLevel))\n + max(0, gifts.effortOfTheWord - 1)\n + 3 * max(0, words.count - 3)":{"text":"sumCopies(!has(copy.fields.word) ? 1 : copy.fields.word in words.bound ? (copy.fields.degree == 'greater' ? 2 : 1) : 2, copy.type == 'gift' && !has(copy.fields.apotheosisLevel)) + max(0, gifts.effortOfTheWord - 1) + 3 * max(0, words.count - 3)","tree":{"type":"binary","op":"+","left":{"type":"binary","op":"+","left":{"type":"call","fn":"sumCopies","args":[{"type":"conditional","test":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","fields","word"]}]}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"in","left":{"type":"name","path":["copy","fields","word"]},"right":{"type":"name","path":["words","bound"]}},"then":{"type":"conditional","test":{"type":"binary","op":"==","left":{"type":"name","path":["copy","fields","degree"]},"right":{"type":"string","value":"greater"}},"then":{"type":"int","value":2},"else":{"type":"int","value":1}},"else":{"type":"int","value":2}}},{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"unary","op":"!","operand":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","fields","apotheosisLevel"]}]}}}]},"right":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["gifts","effortOfTheWord"]},"right":{"type":"int","value":1}}]}},"right":{"type":"binary","op":"*","left":{"type":"int","value":3},"right":{"type":"call","fn":"max","args":[{"type":"int","value":0},{"type":"binary","op":"-","left":{"type":"name","path":["words","count"]},"right":{"type":"int","value":3}}]}}}},"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))":{"text":"sumCopies(copy.state.committed, copy.type == 'gift' && has(copy.state.committed))","tree":{"type":"call","fn":"sumCopies","args":[{"type":"name","path":["copy","state","committed"]},{"type":"binary","op":"&&","left":{"type":"binary","op":"==","left":{"type":"name","path":["copy","type"]},"right":{"type":"string","value":"gift"}},"right":{"type":"call","fn":"has","args":[{"type":"name","path":["copy","state","committed"]}]}}]}},"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}},"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)\n + maxList(flags.faces,\n (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4)\n - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))":{"text":"sumList(flags.faces, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4) + maxList(flags.faces, (x + flags.add <= 1 ? 0 : x + flags.add <= 5 ? 1 : x + flags.add <= 9 ? 2 : 4) - (x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4))","tree":{"type":"binary","op":"+","left":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]},"right":{"type":"call","fn":"maxList","args":[{"type":"name","path":["flags","faces"]},{"type":"binary","op":"-","left":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"binary","op":"+","left":{"type":"name","path":["x"]},"right":{"type":"name","path":["flags","add"]}},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}},"right":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}}]}}},"sumList(flags.faces, x)":{"text":"sumList(flags.faces, x)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"name","path":["x"]}]}},"sumList(flags.faces, x) + flags.add":{"text":"sumList(flags.faces, x) + flags.add","tree":{"type":"binary","op":"+","left":{"type":"call","fn":"sumList","args":[{"type":"name","path":["flags","faces"]},{"type":"name","path":["x"]}]},"right":{"type":"name","path":["flags","add"]}}},"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(steps.backlash.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","backlash","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}},"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)":{"text":"sumList(steps.roll.kept, x <= 1 ? 0 : x <= 5 ? 1 : x <= 9 ? 2 : 4)","tree":{"type":"call","fn":"sumList","args":[{"type":"name","path":["steps","roll","kept"]},{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":1}},"then":{"type":"int","value":0},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":5}},"then":{"type":"int","value":1},"else":{"type":"conditional","test":{"type":"binary","op":"<=","left":{"type":"name","path":["x"]},"right":{"type":"int","value":9}},"then":{"type":"int","value":2},"else":{"type":"int","value":4}}}}]}}}};