@opencharacter/swn-revised 0.0.0-stage → 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.
Files changed (321) hide show
  1. package/LICENSE +147 -0
  2. package/README.md +182 -2
  3. package/content/armor/armored-undersuit.yaml +8 -0
  4. package/content/armor/armored-vacc-suit.yaml +8 -0
  5. package/content/armor/assault-suit.yaml +8 -0
  6. package/content/armor/combat-field-uniform.yaml +8 -0
  7. package/content/armor/deflector-array.yaml +8 -0
  8. package/content/armor/field-emitter-panoply.yaml +9 -0
  9. package/content/armor/force-pavis.yaml +9 -0
  10. package/content/armor/heavy-primitive-armor.yaml +8 -0
  11. package/content/armor/icarus-harness.yaml +8 -0
  12. package/content/armor/light-primitive-armor.yaml +8 -0
  13. package/content/armor/medium-primitive-armor.yaml +8 -0
  14. package/content/armor/secure-clothing.yaml +8 -0
  15. package/content/armor/security-armor.yaml +8 -0
  16. package/content/armor/shield.yaml +9 -0
  17. package/content/armor/storm-armor.yaml +9 -0
  18. package/content/armor/vestimentum.yaml +8 -0
  19. package/content/armor/warpaint.yaml +8 -0
  20. package/content/armor/woven-body-armor.yaml +8 -0
  21. package/content/backgrounds/barbarian.yaml +20 -0
  22. package/content/backgrounds/clergy.yaml +20 -0
  23. package/content/backgrounds/courtesan.yaml +20 -0
  24. package/content/backgrounds/criminal.yaml +20 -0
  25. package/content/backgrounds/dilettante.yaml +20 -0
  26. package/content/backgrounds/entertainer.yaml +20 -0
  27. package/content/backgrounds/merchant.yaml +20 -0
  28. package/content/backgrounds/noble.yaml +20 -0
  29. package/content/backgrounds/official.yaml +20 -0
  30. package/content/backgrounds/peasant.yaml +20 -0
  31. package/content/backgrounds/physician.yaml +20 -0
  32. package/content/backgrounds/pilot.yaml +20 -0
  33. package/content/backgrounds/politician.yaml +20 -0
  34. package/content/backgrounds/scholar.yaml +20 -0
  35. package/content/backgrounds/soldier.yaml +20 -0
  36. package/content/backgrounds/spacer.yaml +20 -0
  37. package/content/backgrounds/technician.yaml +20 -0
  38. package/content/backgrounds/thug.yaml +20 -0
  39. package/content/backgrounds/vagabond.yaml +20 -0
  40. package/content/backgrounds/worker.yaml +20 -0
  41. package/content/classes/adventurer.yaml +9 -0
  42. package/content/classes/expert.yaml +16 -0
  43. package/content/classes/psychic.yaml +11 -0
  44. package/content/classes/warrior.yaml +29 -0
  45. package/content/cyberware/adrenal-suppression-pump.yaml +17 -0
  46. package/content/cyberware/bioadaptation-augments.yaml +6 -0
  47. package/content/cyberware/body-arsenal-array.yaml +6 -0
  48. package/content/cyberware/body-sculpting.yaml +6 -0
  49. package/content/cyberware/dermal-armor.yaml +8 -0
  50. package/content/cyberware/drone-control-link.yaml +6 -0
  51. package/content/cyberware/eelskin-capacitor-mesh.yaml +7 -0
  52. package/content/cyberware/gecko-anchors.yaml +6 -0
  53. package/content/cyberware/ghost-talker-transceiver.yaml +6 -0
  54. package/content/cyberware/holdout-cavity.yaml +6 -0
  55. package/content/cyberware/holoskin-emitters.yaml +6 -0
  56. package/content/cyberware/identity-submersion-trigger.yaml +6 -0
  57. package/content/cyberware/immunofiltration-system.yaml +6 -0
  58. package/content/cyberware/induced-coma-trigger.yaml +6 -0
  59. package/content/cyberware/neurointruder-alert.yaml +11 -0
  60. package/content/cyberware/panspectral-optics.yaml +6 -0
  61. package/content/cyberware/pressure-sheathing.yaml +6 -0
  62. package/content/cyberware/prosthetic-limb.yaml +6 -0
  63. package/content/cyberware/revenant-wiring.yaml +6 -0
  64. package/content/cyberware/slowtime-window.yaml +7 -0
  65. package/content/cyberware/stabilization-overrides.yaml +8 -0
  66. package/content/cyberware/tagger-nanites.yaml +7 -0
  67. package/content/cyberware/toxin-injector.yaml +7 -0
  68. package/content/cyberware/twitchlock-actuators.yaml +7 -0
  69. package/content/foci/alert.yaml +9 -0
  70. package/content/foci/armsman.yaml +9 -0
  71. package/content/foci/assassin.yaml +5 -0
  72. package/content/foci/authority.yaml +5 -0
  73. package/content/foci/close-combatant.yaml +7 -0
  74. package/content/foci/connected.yaml +5 -0
  75. package/content/foci/die-hard.yaml +7 -0
  76. package/content/foci/diplomat.yaml +10 -0
  77. package/content/foci/gunslinger.yaml +8 -0
  78. package/content/foci/hacker.yaml +10 -0
  79. package/content/foci/healer.yaml +7 -0
  80. package/content/foci/henchkeeper.yaml +7 -0
  81. package/content/foci/ironhide.yaml +7 -0
  82. package/content/foci/psychic-training.yaml +19 -0
  83. package/content/foci/savage-fray.yaml +5 -0
  84. package/content/foci/shocking-assault.yaml +8 -0
  85. package/content/foci/sniper.yaml +10 -0
  86. package/content/foci/specialist.yaml +36 -0
  87. package/content/foci/star-captain.yaml +5 -0
  88. package/content/foci/starfarer.yaml +5 -0
  89. package/content/foci/tinker.yaml +5 -0
  90. package/content/foci/unarmed-combatant.yaml +11 -0
  91. package/content/foci/unique-gift.yaml +6 -0
  92. package/content/foci/wanderer.yaml +5 -0
  93. package/content/foci/wild-psychic-talent.yaml +21 -0
  94. package/content/gear/ammo-20-rounds.yaml +9 -0
  95. package/content/gear/ammo-missile.yaml +8 -0
  96. package/content/gear/atmofilter.yaml +7 -0
  97. package/content/gear/backpack-tl0.yaml +7 -0
  98. package/content/gear/backpack-tl4.yaml +7 -0
  99. package/content/gear/bezoar.yaml +9 -0
  100. package/content/gear/binoculars-tl3.yaml +7 -0
  101. package/content/gear/binoculars-tl4.yaml +7 -0
  102. package/content/gear/bioscanner.yaml +7 -0
  103. package/content/gear/black-slab.yaml +7 -0
  104. package/content/gear/brainwave.yaml +8 -0
  105. package/content/gear/climbing-harness.yaml +7 -0
  106. package/content/gear/comm-server.yaml +7 -0
  107. package/content/gear/compad.yaml +7 -0
  108. package/content/gear/data-phase-tap.yaml +7 -0
  109. package/content/gear/data-protocol.yaml +7 -0
  110. package/content/gear/dataslab.yaml +7 -0
  111. package/content/gear/field-radio.yaml +7 -0
  112. package/content/gear/glowbug.yaml +7 -0
  113. package/content/gear/grapnel-launcher.yaml +7 -0
  114. package/content/gear/grav-chute-tl4.yaml +7 -0
  115. package/content/gear/grav-chute-tl5.yaml +7 -0
  116. package/content/gear/grav-harness.yaml +7 -0
  117. package/content/gear/hush.yaml +8 -0
  118. package/content/gear/instapanel.yaml +8 -0
  119. package/content/gear/lazarus-patch.yaml +8 -0
  120. package/content/gear/lift.yaml +11 -0
  121. package/content/gear/line-shunt.yaml +7 -0
  122. package/content/gear/low-light-goggles.yaml +7 -0
  123. package/content/gear/medkit.yaml +7 -0
  124. package/content/gear/metatool.yaml +7 -0
  125. package/content/gear/navcomp.yaml +7 -0
  126. package/content/gear/portabox.yaml +7 -0
  127. package/content/gear/postech-toolkit.yaml +7 -0
  128. package/content/gear/power-cell-a.yaml +9 -0
  129. package/content/gear/power-cell-b.yaml +8 -0
  130. package/content/gear/pressure-tent.yaml +7 -0
  131. package/content/gear/pretech-cosmetic.yaml +9 -0
  132. package/content/gear/pretech-toolkit.yaml +7 -0
  133. package/content/gear/psych.yaml +8 -0
  134. package/content/gear/rations-1-day.yaml +8 -0
  135. package/content/gear/remote-link-unit.yaml +7 -0
  136. package/content/gear/reverie.yaml +9 -0
  137. package/content/gear/rope-tl0.yaml +7 -0
  138. package/content/gear/rope-tl4.yaml +7 -0
  139. package/content/gear/scout-report.yaml +7 -0
  140. package/content/gear/solar-recharger.yaml +7 -0
  141. package/content/gear/spare-parts.yaml +8 -0
  142. package/content/gear/squeal.yaml +8 -0
  143. package/content/gear/stiletto-charge.yaml +6 -0
  144. package/content/gear/storage-unit.yaml +7 -0
  145. package/content/gear/survey-scanner.yaml +7 -0
  146. package/content/gear/survival-kit.yaml +7 -0
  147. package/content/gear/tailored-antiallergens.yaml +7 -0
  148. package/content/gear/telekinetic-generator.yaml +7 -0
  149. package/content/gear/telescoping-pole.yaml +7 -0
  150. package/content/gear/thermal-flare.yaml +7 -0
  151. package/content/gear/tightbeam-link-unit.yaml +7 -0
  152. package/content/gear/trade-goods.yaml +8 -0
  153. package/content/gear/trade-metals.yaml +8 -0
  154. package/content/gear/translator-torc.yaml +7 -0
  155. package/content/gear/tsunami.yaml +9 -0
  156. package/content/gear/vacc-fresher.yaml +7 -0
  157. package/content/gear/vacc-skin.yaml +7 -0
  158. package/content/gear/vacc-suit.yaml +7 -0
  159. package/content/kits/barbarian.yaml +17 -0
  160. package/content/kits/blade.yaml +17 -0
  161. package/content/kits/civilian.yaml +12 -0
  162. package/content/kits/credits.yaml +11 -0
  163. package/content/kits/gunslinger.yaml +16 -0
  164. package/content/kits/hacker.yaml +18 -0
  165. package/content/kits/medic.yaml +18 -0
  166. package/content/kits/scout.yaml +19 -0
  167. package/content/kits/soldier.yaml +16 -0
  168. package/content/kits/technician.yaml +19 -0
  169. package/content/kits/thief.yaml +19 -0
  170. package/content/partial-classes/expert.yaml +5 -0
  171. package/content/partial-classes/psychic.yaml +16 -0
  172. package/content/partial-classes/warrior.yaml +7 -0
  173. package/content/styles/expert-nimble.yaml +11 -0
  174. package/content/styles/expert-smart.yaml +11 -0
  175. package/content/styles/expert-smooth.yaml +11 -0
  176. package/content/styles/psychic-adept.yaml +11 -0
  177. package/content/styles/psychic-seer.yaml +11 -0
  178. package/content/styles/warrior-leader.yaml +11 -0
  179. package/content/styles/warrior-melee.yaml +11 -0
  180. package/content/styles/warrior-ranged.yaml +11 -0
  181. package/content/techniques/accelerated-succor.yaml +10 -0
  182. package/content/techniques/alternate-outcome.yaml +10 -0
  183. package/content/techniques/anguished-vision.yaml +10 -0
  184. package/content/techniques/burdened-apportation.yaml +10 -0
  185. package/content/techniques/cloak-powers.yaml +10 -0
  186. package/content/techniques/concert-of-minds.yaml +10 -0
  187. package/content/techniques/cursed-luck.yaml +59 -0
  188. package/content/techniques/deep-intrusion.yaml +10 -0
  189. package/content/techniques/destinys-shield.yaml +10 -0
  190. package/content/techniques/effortless-apportation.yaml +10 -0
  191. package/content/techniques/facile-mind.yaml +10 -0
  192. package/content/techniques/far-thought.yaml +10 -0
  193. package/content/techniques/flawless-mastery.yaml +10 -0
  194. package/content/techniques/force-puppetry.yaml +10 -0
  195. package/content/techniques/forced-outcome.yaml +10 -0
  196. package/content/techniques/holistic-optimization-patterning.yaml +10 -0
  197. package/content/techniques/impact-sump.yaml +10 -0
  198. package/content/techniques/impervious-pavis-of-will.yaml +10 -0
  199. package/content/techniques/intuitive-response.yaml +10 -0
  200. package/content/techniques/invincible-stand.yaml +10 -0
  201. package/content/techniques/kinetic-transversal.yaml +10 -0
  202. package/content/techniques/major-organ-restoration.yaml +10 -0
  203. package/content/techniques/mastered-succor.yaml +10 -0
  204. package/content/techniques/memory-editing.yaml +10 -0
  205. package/content/techniques/metadimensional-friction.yaml +10 -0
  206. package/content/techniques/metamorph.yaml +10 -0
  207. package/content/techniques/mindtracing.yaml +10 -0
  208. package/content/techniques/neural-trap.yaml +10 -0
  209. package/content/techniques/not-my-time.yaml +10 -0
  210. package/content/techniques/offensive-apportation.yaml +10 -0
  211. package/content/techniques/oracle.yaml +6 -0
  212. package/content/techniques/organic-purification-protocols.yaml +10 -0
  213. package/content/techniques/perceptive-dislocation.yaml +10 -0
  214. package/content/techniques/personal-apportation.yaml +6 -0
  215. package/content/techniques/pressure-field.yaml +10 -0
  216. package/content/techniques/proficient-apportation.yaml +10 -0
  217. package/content/techniques/prophecy.yaml +10 -0
  218. package/content/techniques/psychic-refinement.yaml +11 -0
  219. package/content/techniques/psychic-static.yaml +10 -0
  220. package/content/techniques/psychic-succor.yaml +52 -0
  221. package/content/techniques/psychic-tutelage.yaml +10 -0
  222. package/content/techniques/quintessential-reconstruction.yaml +10 -0
  223. package/content/techniques/reactive-telekinesis.yaml +10 -0
  224. package/content/techniques/reflex-response.yaml +10 -0
  225. package/content/techniques/remote-repair.yaml +10 -0
  226. package/content/techniques/rift-reduplication.yaml +10 -0
  227. package/content/techniques/sense-the-need.yaml +10 -0
  228. package/content/techniques/slip-field.yaml +10 -0
  229. package/content/techniques/spatial-awareness.yaml +10 -0
  230. package/content/techniques/spatial-synchrony-mandala.yaml +10 -0
  231. package/content/techniques/stutterjump.yaml +10 -0
  232. package/content/techniques/suppress-cognition.yaml +10 -0
  233. package/content/techniques/surge-momentum.yaml +10 -0
  234. package/content/techniques/suspended-manifestation.yaml +10 -0
  235. package/content/techniques/synthetic-adaptation.yaml +10 -0
  236. package/content/techniques/tangible-force-construct.yaml +10 -0
  237. package/content/techniques/telekinetic-armory.yaml +10 -0
  238. package/content/techniques/telekinetic-expertise.yaml +10 -0
  239. package/content/techniques/telekinetic-flight.yaml +10 -0
  240. package/content/techniques/telekinetic-manipulation.yaml +6 -0
  241. package/content/techniques/telekinetic-ram.yaml +10 -0
  242. package/content/techniques/telepathic-assault.yaml +10 -0
  243. package/content/techniques/telepathic-contact.yaml +6 -0
  244. package/content/techniques/teratic-overload.yaml +10 -0
  245. package/content/techniques/terminal-reflection.yaml +10 -0
  246. package/content/techniques/thermokinesis.yaml +10 -0
  247. package/content/techniques/tissue-integrity-field.yaml +10 -0
  248. package/content/techniques/transmit-thought.yaml +10 -0
  249. package/content/techniques/unity-of-thought.yaml +10 -0
  250. package/content/templates/trained-unarmed.yaml +9 -0
  251. package/content/weapons/advanced-bow.yaml +13 -0
  252. package/content/weapons/anti-vehicle-laser.yaml +16 -0
  253. package/content/weapons/combat-rifle.yaml +16 -0
  254. package/content/weapons/combat-shotgun.yaml +16 -0
  255. package/content/weapons/conversion-bow.yaml +13 -0
  256. package/content/weapons/crude-pistol.yaml +16 -0
  257. package/content/weapons/demo-charge.yaml +13 -0
  258. package/content/weapons/distortion-cannon.yaml +16 -0
  259. package/content/weapons/grenade.yaml +14 -0
  260. package/content/weapons/heavy-machine-gun.yaml +17 -0
  261. package/content/weapons/hydra-array.yaml +16 -0
  262. package/content/weapons/knife.yaml +7 -0
  263. package/content/weapons/large-advanced-weapon.yaml +13 -0
  264. package/content/weapons/large-primitive-weapon.yaml +12 -0
  265. package/content/weapons/laser-pistol.yaml +16 -0
  266. package/content/weapons/laser-rifle.yaml +17 -0
  267. package/content/weapons/mag-pistol.yaml +15 -0
  268. package/content/weapons/mag-rifle.yaml +15 -0
  269. package/content/weapons/medium-advanced-weapon.yaml +13 -0
  270. package/content/weapons/medium-primitive-weapon.yaml +12 -0
  271. package/content/weapons/monoblade-knife.yaml +7 -0
  272. package/content/weapons/monoblade-sword.yaml +4 -0
  273. package/content/weapons/musket.yaml +16 -0
  274. package/content/weapons/plasma-projector.yaml +16 -0
  275. package/content/weapons/primitive-bow.yaml +13 -0
  276. package/content/weapons/railgun.yaml +16 -0
  277. package/content/weapons/revolver.yaml +15 -0
  278. package/content/weapons/rifle.yaml +15 -0
  279. package/content/weapons/rocket-launcher.yaml +16 -0
  280. package/content/weapons/semi-auto-pistol.yaml +15 -0
  281. package/content/weapons/shear-rifle.yaml +17 -0
  282. package/content/weapons/shotgun.yaml +15 -0
  283. package/content/weapons/small-advanced-weapon.yaml +14 -0
  284. package/content/weapons/small-primitive-weapon.yaml +13 -0
  285. package/content/weapons/sniper-rifle.yaml +15 -0
  286. package/content/weapons/spear.yaml +8 -0
  287. package/content/weapons/spike-thrower.yaml +16 -0
  288. package/content/weapons/stun-baton.yaml +14 -0
  289. package/content/weapons/submachine-gun.yaml +16 -0
  290. package/content/weapons/suit-ripper.yaml +11 -0
  291. package/content/weapons/thermal-knife.yaml +7 -0
  292. package/content/weapons/thermal-pistol.yaml +16 -0
  293. package/content/weapons/thunder-gun.yaml +16 -0
  294. package/content/weapons/unarmed.yaml +8 -0
  295. package/content/weapons/void-carbine.yaml +15 -0
  296. package/content/weapons/vortex-cannon.yaml +14 -0
  297. package/content/weapons/wheatcutter-belt.yaml +14 -0
  298. package/dist/i18n/en.d.ts +3 -0
  299. package/dist/i18n/en.js +2 -0
  300. package/dist/i18n/en.json +1411 -0
  301. package/dist/index.d.ts +3 -0
  302. package/dist/index.js +2 -0
  303. package/dist/release.json +31795 -0
  304. package/i18n/en/content.yaml +436 -0
  305. package/i18n/en/foci.yaml +199 -0
  306. package/i18n/en/rules.yaml +772 -0
  307. package/i18n/en/text.yaml +249 -0
  308. package/i18n/en.yaml +1 -0
  309. package/pack.yaml +15 -0
  310. package/package.json +58 -3
  311. package/rules/advancement.yaml +482 -0
  312. package/rules/character.yaml +139 -0
  313. package/rules/checks.yaml +166 -0
  314. package/rules/combat.yaml +321 -0
  315. package/rules/core.yaml +111 -0
  316. package/rules/creation.yaml +431 -0
  317. package/rules/gear.yaml +188 -0
  318. package/rules/layout.yaml +197 -0
  319. package/rules/psionics.yaml +165 -0
  320. package/rules/start.yaml +417 -0
  321. package/rules/tags.yaml +71 -0
@@ -0,0 +1,197 @@
1
+ display:
2
+ groups:
3
+ - id: attributes
4
+ priority: 0
5
+ members: { type: field, where: "'attribute' in item.tags" }
6
+ - id: saves
7
+ priority: 0
8
+ members: { type: field, where: "'save' in item.tags" }
9
+ - id: skills
10
+ priority: 0
11
+ members: { type: field, where: "'skill.general' in item.tags || 'skill.combat' in item.tags" }
12
+ - id: psychic-skills
13
+ priority: 1
14
+ showWhen: "psionics.access != 'none'"
15
+ members: { type: field, where: "'skill.psychic' in item.tags" }
16
+ - id: condition
17
+ priority: 0
18
+ - id: combat
19
+ priority: 0
20
+ - id: psionics
21
+ priority: 1
22
+ showWhen: "psionics.access != 'none' || effort.max > 0"
23
+ - id: advancement
24
+ priority: 2
25
+ - id: carrying
26
+ priority: 2
27
+ - id: attacks
28
+ kind: actions
29
+ priority: 0
30
+ members: { type: action, where: "'attack' in item.tags || 'combat' in item.tags" }
31
+ - id: checks
32
+ kind: actions
33
+ priority: 0
34
+ members:
35
+ type: action
36
+ where: "'check' in item.tags || 'save' in item.tags || 'initiative' in item.tags"
37
+ - id: health-actions
38
+ kind: actions
39
+ priority: 1
40
+ members: { type: action, where: "'health' in item.tags || 'strain' in item.tags" }
41
+ - id: psionic-actions
42
+ kind: actions
43
+ priority: 1
44
+ members: { type: action, where: "'psionics' in item.tags" }
45
+ - id: advancement-actions
46
+ kind: actions
47
+ priority: 2
48
+ visibility: background
49
+ members: { type: action, where: "'level-up' in item.tags || 'creation' in item.tags" }
50
+ - id: class
51
+ kind: content
52
+ priority: 0
53
+ members: { type: class }
54
+ - id: background
55
+ kind: content
56
+ priority: 0
57
+ members: { type: background }
58
+ - id: foci
59
+ kind: content
60
+ priority: 0
61
+ members: { type: focus }
62
+ - id: techniques
63
+ kind: content
64
+ priority: 1
65
+ showWhen: "hasChoice('technique') || psionics.access != 'none' || effort.max > 0"
66
+ members: { type: technique }
67
+ sectionBy: item.level
68
+ - id: weapons
69
+ kind: content
70
+ priority: 1
71
+ members: { type: weapon }
72
+ - id: armor
73
+ kind: content
74
+ priority: 1
75
+ members: { type: armor }
76
+ - id: gear
77
+ kind: content
78
+ priority: 2
79
+ members: { type: gear }
80
+ sectionBy: item.category
81
+ - id: cyberware
82
+ kind: content
83
+ priority: 2
84
+ members: { type: cyberware }
85
+ types:
86
+ class: { quantity: { hidden: true } }
87
+ background: { quantity: { hidden: true } }
88
+ focus:
89
+ quantity: { hidden: true }
90
+ state:
91
+ level: { priority: 0 }
92
+ technique:
93
+ quantity: { hidden: true }
94
+ state:
95
+ committed: { priority: 0, showWhen: self.committed > 0 }
96
+ torched: { hidden: true }
97
+ cyberware: { quantity: { hidden: true } }
98
+ weapon:
99
+ state:
100
+ loaded: { priority: 0, input: { widget: track }, showWhen: has(item.magazine) }
101
+ fields:
102
+ damage: { format: dice }
103
+ fields:
104
+ level: { groups: [advancement], priority: 0, visibility: primary }
105
+ xp.current: { groups: [advancement], priority: 0, with: [{ field: xp.next, as: max }] }
106
+ xp.next: { groups: [advancement], priority: 1 }
107
+ skillPoints.general: { groups: [advancement], priority: 1 }
108
+ skillPoints.expert: { groups: [advancement], priority: 1, showWhen: class.expertPoints > 0 }
109
+ skillPoints.psychic:
110
+ { groups: [advancement], priority: 1, showWhen: "psionics.access != 'none'" }
111
+ skillPoints.training: { groups: [advancement], priority: 1, showWhen: skillPoints.training > 0 }
112
+ attributes.boosts: { groups: [advancement], priority: 2 }
113
+ 'skills.{skill}.credit':
114
+ { groups: [advancement], priority: 3, showWhen: 'skills.{skill}.credit > 0' }
115
+ hp.current:
116
+ groups: [condition]
117
+ priority: 0
118
+ visibility: primary
119
+ with: [{ field: hp.max, as: max }]
120
+ rolls: [{ action: take-damage }, { action: heal }]
121
+ hp.max: { groups: [condition], priority: 1 }
122
+ hp.rolled: { groups: [condition], priority: 2, visibility: background }
123
+ hp.perLevel: { hidden: true }
124
+ strain.current:
125
+ groups: [condition]
126
+ priority: 0
127
+ with: [{ field: strain.max, as: max }, { field: strain.permanent, as: detail }]
128
+ strain.total: { groups: [condition], priority: 1 }
129
+ strain.permanent: { groups: [condition], priority: 1 }
130
+ strain.max: { groups: [condition], priority: 1 }
131
+ scene.expertReroll:
132
+ groups: [condition]
133
+ priority: 1
134
+ showWhen: 'countCopies(copy.item == @classes.expert) > 0'
135
+ input: { widget: checkbox }
136
+ scene.warriorLuck:
137
+ groups: [condition]
138
+ priority: 1
139
+ showWhen: 'countCopies(copy.item == @classes.warrior) > 0'
140
+ input: { widget: checkbox }
141
+ ac.value: { groups: [combat], priority: 0, visibility: primary }
142
+ ac.advanced: { groups: [combat], priority: 1 }
143
+ combat.attackBonus: { groups: [combat], priority: 0, visibility: primary }
144
+ credits.current: { groups: [carrying], priority: 0 }
145
+ encumbrance.readied:
146
+ { groups: [carrying], priority: 0, with: [{ field: encumbrance.readiedLimit, as: max }] }
147
+ encumbrance.stowed:
148
+ { groups: [carrying], priority: 0, with: [{ field: encumbrance.stowedLimit, as: max }] }
149
+ encumbrance.level: { groups: [carrying], priority: 1 }
150
+ movement: { groups: [carrying], priority: 1 }
151
+ henchmen.max: { groups: [carrying], priority: 2, showWhen: henchmen.max > 0 }
152
+ effort.available:
153
+ groups: [psionics]
154
+ priority: 0
155
+ with: [{ field: effort.max, as: max }]
156
+ rolls: [{ action: commit-effort }]
157
+ effort.max: { groups: [psionics], priority: 1 }
158
+ effort.scene: { groups: [psionics], priority: 1 }
159
+ effort.day: { groups: [psionics], priority: 1 }
160
+ effort.active: { groups: [psionics], priority: 1, showWhen: effort.active > 0 }
161
+ effort.torched: { groups: [psionics], priority: 2 }
162
+ psionics.access: { groups: [psionics], priority: 1 }
163
+ psionics.discipline:
164
+ { groups: [psionics], priority: 1, showWhen: "psionics.discipline != 'none'" }
165
+ psionics.training: { hidden: true }
166
+ effort.bonus: { hidden: true }
167
+ effort.wild: { hidden: true }
168
+ class.focus.combat: { hidden: true }
169
+ class.focus.noncombat: { hidden: true }
170
+ class.expertPoints: { hidden: true }
171
+ ac.armor: { hidden: true }
172
+ ac.innate: { hidden: true }
173
+ ac.shield: { hidden: true }
174
+ damage.melee: { hidden: true }
175
+ damage.ranged: { hidden: true }
176
+ shock.bonus: { hidden: true }
177
+ shock.anyAc: { hidden: true }
178
+ miss.melee: { hidden: true }
179
+ miss.ranged: { hidden: true }
180
+ miss.punch: { hidden: true }
181
+ combat.meleeAdvanced: { hidden: true }
182
+ combat.punchAdvanced: { hidden: true }
183
+ encumbrance.strength: { hidden: true }
184
+ 'attributes.{attr}.score':
185
+ with: [{ field: 'attributes.{attr}.mod', as: detail }]
186
+ 'skills.{general}.level':
187
+ rolls: [{ action: skill-check, params: { skill: '{general}' } }]
188
+ 'skills.{combat}.level':
189
+ rolls: [{ action: skill-check, params: { skill: '{combat}' } }]
190
+ 'skills.{psychic}.level':
191
+ rolls: [{ action: skill-check, params: { skill: '{psychic}' } }]
192
+ 'skills.{general}.dice': { hidden: true }
193
+ 'skills.{combat}.dice': { hidden: true }
194
+ 'skills.{psychic}.dice': { hidden: true }
195
+ saves.physical: { rolls: [{ action: saving-throw, params: { save: physical } }] }
196
+ saves.evasion: { rolls: [{ action: saving-throw, params: { save: evasion } }] }
197
+ saves.mental: { rolls: [{ action: saving-throw, params: { save: mental } }] }
@@ -0,0 +1,165 @@
1
+ fields:
2
+ # Cursed Luck is on the character: attacks against them and damage they take roll twice and
3
+ # keep the better.
4
+ psionics.cursedLuck: { type: boolean, formula: false }
5
+ effort.bonus: { type: integer, formula: 0 }
6
+ # A wild talent's Effort, for a character who isn't a psychic.
7
+ effort.wild: { type: integer, formula: 0 }
8
+ effort.max:
9
+ type: integer
10
+ formula: >-
11
+ psionics.access == 'none' ? effort.wild
12
+ : max(1, 1 + maxFields(f.value, 'skill.psychic' in f.tags)
13
+ + max(attributes.wis.mod, attributes.con.mod)) + effort.bonus
14
+ # Effort Committed until the end of the scene, and until the next night's rest.
15
+ effort.scene: { type: integer, input: true, default: 0, min: 0 }
16
+ effort.day: { type: integer, input: true, default: 0, min: 0 }
17
+ # Effort gained by torching, which lasts for the scene.
18
+ effort.torched: { type: integer, input: true, default: 0, min: 0 }
19
+ # Effort Committed for as long as a technique lasts, held on the technique: its copy, the
20
+ # pick that chose it, or the grant of a core technique. Each technique adds its own.
21
+ effort.active: { type: integer, formula: 0 }
22
+ effort.available:
23
+ type: integer
24
+ formula: max(0, effort.max + effort.torched - effort.scene - effort.day - effort.active)
25
+
26
+ effects:
27
+ - target: { rolls: [attack, damage] }
28
+ op: rollModifier
29
+ value: { kind: advantage, of: roll }
30
+ when: >-
31
+ has(participants.target) && size(participants.target) > 0
32
+ && participants.target[0].psionics.cursedLuck
33
+
34
+ # When the scene ends, torched Effort goes, and with it the techniques it sustained.
35
+ - target: { steps: [rest.scene, rest.night] }
36
+ op: changes
37
+ value:
38
+ changes:
39
+ - type: adjustState
40
+ when: "countCopies(copy.type == 'technique' && copy.state.torched > 0) > 0"
41
+ copies: { type: technique, where: self.torched > 0 }
42
+ key: committed
43
+ by: -self.torched
44
+ - type: setState
45
+ when: "countCopies(copy.type == 'technique' && copy.state.torched > 0) > 0"
46
+ copies: { type: technique, where: self.torched > 0 }
47
+ key: torched
48
+ value: 0
49
+ - type: adjustState
50
+ when: "countPicks(pick.type == 'technique' && pick.state.torched > 0) > 0"
51
+ picks: { where: self.torched > 0 }
52
+ key: committed
53
+ by: -self.torched
54
+ - type: setState
55
+ when: "countPicks(pick.type == 'technique' && pick.state.torched > 0) > 0"
56
+ picks: { where: self.torched > 0 }
57
+ key: torched
58
+ value: 0
59
+ - type: adjustState
60
+ when: "countGrants(grant.type == 'technique' && grant.state.torched > 0) > 0"
61
+ grants: { where: self.torched > 0 }
62
+ key: committed
63
+ by: -self.torched
64
+ - type: setState
65
+ when: "countGrants(grant.type == 'technique' && grant.state.torched > 0) > 0"
66
+ grants: { where: self.torched > 0 }
67
+ key: torched
68
+ value: 0
69
+
70
+ contentTypes:
71
+ technique:
72
+ copies: { perItem: 1 }
73
+ fields:
74
+ discipline:
75
+ type: enum
76
+ open: true
77
+ required: true
78
+ values: [biopsionics, metapsionics, precognition, telekinesis, telepathy, teleportation]
79
+ level: { type: integer, required: true, min: 0, max: 4 }
80
+ # The discipline's core technique: every psychic with the skill has it.
81
+ core: { type: boolean, default: false }
82
+ state:
83
+ # Effort Committed to keep the technique going, until it is released.
84
+ committed: { type: integer, default: 0, min: 0 }
85
+ # The part of it torched Effort pays for, which ends with the scene.
86
+ torched: { type: integer, default: 0, min: 0 }
87
+ effects:
88
+ - { target: effort.active, op: add, value: self.committed }
89
+ actions:
90
+ - use: sustain-technique
91
+ - use: release-technique
92
+
93
+ constraints:
94
+ # Only psychics have psychic skills, and a restricted psychic only their one discipline.
95
+ - id: psychic-skills
96
+ check: >-
97
+ psionics.access == 'unrestricted'
98
+ || sumFields(f.value >= 0 && (psionics.access == 'none' || psionics.discipline == 'none'
99
+ || f.id != fieldId('skills.{psychic}.level', psionics.discipline)) ? 1 : 0,
100
+ 'skill.psychic' in f.tags) == 0
101
+ # Torching can lower the maximum under what is Committed; the commitments stay until released.
102
+ - id: effort-overcommitted
103
+ check: effort.max + effort.torched - effort.scene - effort.day - effort.active >= 0
104
+
105
+ actions:
106
+ # Commit a point of Effort for as long as the technique lasts: it stays Committed on the
107
+ # technique until the psychic releases it, ending the power.
108
+ - id: sustain-technique
109
+ tags: [psionics]
110
+ available: effort.available > 0
111
+ results: [committed]
112
+ steps:
113
+ - &held
114
+ id: held
115
+ kind: branch
116
+ cases:
117
+ - when: true
118
+ flags:
119
+ # Where the technique is held: its own copy, a focus's pick (Wild Psychic Talent)
120
+ # or a psychic class's grant (a core technique). The owning copy's type tells.
121
+ held: >-
122
+ countCopies(copy.id == self.id && copy.type == 'technique') > 0 ? 'copy'
123
+ : countCopies(copy.id == self.id && copy.type == 'focus') > 0 ? 'pick'
124
+ : 'grant'
125
+ torched: effort.max - effort.scene - effort.day - effort.active <= 0
126
+ - id: commit
127
+ kind: changes
128
+ changes:
129
+ - { type: adjustState, when: "flags.held == 'copy'", entry: self, key: committed, by: 1 }
130
+ - { type: adjustState, when: "flags.held == 'pick'", pick: self, key: committed, by: 1 }
131
+ - { type: adjustState, when: "flags.held == 'grant'", grant: self, key: committed, by: 1 }
132
+ - type: adjustState
133
+ when: "flags.torched && flags.held == 'copy'"
134
+ entry: self
135
+ key: torched
136
+ by: 1
137
+ - type: adjustState
138
+ when: "flags.torched && flags.held == 'pick'"
139
+ pick: self
140
+ key: torched
141
+ by: 1
142
+ - type: adjustState
143
+ when: "flags.torched && flags.held == 'grant'"
144
+ grant: self
145
+ key: torched
146
+ by: 1
147
+ - { id: result, kind: outcome, result: "'committed'" }
148
+
149
+ # Reclaim the Effort a technique holds, ending it.
150
+ - id: release-technique
151
+ tags: [psionics]
152
+ available: self.committed > 0
153
+ results: [released]
154
+ steps:
155
+ - *held
156
+ - id: release
157
+ kind: changes
158
+ changes:
159
+ - { type: setState, when: "flags.held == 'copy'", entry: self, key: committed, value: 0 }
160
+ - { type: setState, when: "flags.held == 'pick'", pick: self, key: committed, value: 0 }
161
+ - { type: setState, when: "flags.held == 'grant'", grant: self, key: committed, value: 0 }
162
+ - { type: setState, when: "flags.held == 'copy'", entry: self, key: torched, value: 0 }
163
+ - { type: setState, when: "flags.held == 'pick'", pick: self, key: torched, value: 0 }
164
+ - { type: setState, when: "flags.held == 'grant'", grant: self, key: torched, value: 0 }
165
+ - { id: result, kind: outcome, result: "'released'" }