@maka/maka-cli 5.3.17 → 5.5.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 (245) hide show
  1. package/bundle/typescript/package.json +1 -1
  2. package/bundle/typescript/src/commands/game/sideQuest/archetypes.d.ts +62 -0
  3. package/bundle/typescript/src/commands/game/sideQuest/archetypes.js +196 -0
  4. package/bundle/typescript/src/commands/game/sideQuest/archetypes.js.map +1 -0
  5. package/bundle/typescript/src/commands/game/sideQuest/commands/advance.d.ts +16 -0
  6. package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js +65 -0
  7. package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js.map +1 -0
  8. package/bundle/typescript/src/commands/game/sideQuest/commands/assense.d.ts +16 -0
  9. package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js +122 -0
  10. package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js.map +1 -0
  11. package/bundle/typescript/src/commands/game/sideQuest/commands/attack.d.ts +42 -0
  12. package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js +243 -0
  13. package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js.map +1 -0
  14. package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.d.ts +16 -0
  15. package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.js +39 -0
  16. package/bundle/typescript/src/commands/game/sideQuest/commands/bluff.js.map +1 -0
  17. package/bundle/typescript/src/commands/game/sideQuest/commands/brandish.d.ts +21 -0
  18. package/bundle/typescript/src/commands/game/sideQuest/commands/brandish.js +82 -0
  19. package/bundle/typescript/src/commands/game/sideQuest/commands/brandish.js.map +1 -0
  20. package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.d.ts +28 -0
  21. package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js +101 -0
  22. package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js.map +1 -0
  23. package/bundle/typescript/src/commands/game/sideQuest/commands/call.d.ts +19 -0
  24. package/bundle/typescript/src/commands/game/sideQuest/commands/call.js +219 -0
  25. package/bundle/typescript/src/commands/game/sideQuest/commands/call.js.map +1 -0
  26. package/bundle/typescript/src/commands/game/sideQuest/commands/cast.d.ts +58 -0
  27. package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js +397 -0
  28. package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js.map +1 -0
  29. package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.d.ts +11 -1
  30. package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js +8 -3
  31. package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js.map +1 -1
  32. package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +6 -0
  33. package/bundle/typescript/src/commands/game/sideQuest/commands/command.js +4 -0
  34. package/bundle/typescript/src/commands/game/sideQuest/commands/command.js.map +1 -1
  35. package/bundle/typescript/src/commands/game/sideQuest/commands/drone.d.ts +15 -0
  36. package/bundle/typescript/src/commands/game/sideQuest/commands/drone.js +72 -0
  37. package/bundle/typescript/src/commands/game/sideQuest/commands/drone.js.map +1 -0
  38. package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +3 -0
  39. package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +1 -1
  40. package/bundle/typescript/src/commands/game/sideQuest/commands/edge.d.ts +13 -0
  41. package/bundle/typescript/src/commands/game/sideQuest/commands/edge.js +31 -0
  42. package/bundle/typescript/src/commands/game/sideQuest/commands/edge.js.map +1 -0
  43. package/bundle/typescript/src/commands/game/sideQuest/commands/end-call.d.ts +6 -0
  44. package/bundle/typescript/src/commands/game/sideQuest/commands/end-call.js +27 -0
  45. package/bundle/typescript/src/commands/game/sideQuest/commands/end-call.js.map +1 -0
  46. package/bundle/typescript/src/commands/game/sideQuest/commands/equip.d.ts +4 -0
  47. package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +59 -2
  48. package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -1
  49. package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.d.ts +13 -0
  50. package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js +50 -0
  51. package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js.map +1 -0
  52. package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +7 -1
  53. package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -1
  54. package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +13 -0
  55. package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +147 -4
  56. package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -1
  57. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.d.ts +25 -0
  58. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js +199 -0
  59. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js.map +1 -0
  60. package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.d.ts +15 -0
  61. package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js +75 -0
  62. package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js.map +1 -0
  63. package/bundle/typescript/src/commands/game/sideQuest/commands/inv.d.ts +12 -0
  64. package/bundle/typescript/src/commands/game/sideQuest/commands/inv.js +43 -0
  65. package/bundle/typescript/src/commands/game/sideQuest/commands/inv.js.map +1 -0
  66. package/bundle/typescript/src/commands/game/sideQuest/commands/jack.d.ts +17 -0
  67. package/bundle/typescript/src/commands/game/sideQuest/commands/jack.js +64 -0
  68. package/bundle/typescript/src/commands/game/sideQuest/commands/jack.js.map +1 -0
  69. package/bundle/typescript/src/commands/game/sideQuest/commands/kill.d.ts +10 -3
  70. package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +11 -33
  71. package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js.map +1 -1
  72. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +47 -4
  73. package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
  74. package/bundle/typescript/src/commands/game/sideQuest/commands/map.d.ts +12 -0
  75. package/bundle/typescript/src/commands/game/sideQuest/commands/map.js +46 -0
  76. package/bundle/typescript/src/commands/game/sideQuest/commands/map.js.map +1 -0
  77. package/bundle/typescript/src/commands/game/sideQuest/commands/pan.d.ts +12 -0
  78. package/bundle/typescript/src/commands/game/sideQuest/commands/pan.js +55 -0
  79. package/bundle/typescript/src/commands/game/sideQuest/commands/pan.js.map +1 -0
  80. package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.d.ts +18 -0
  81. package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js +100 -0
  82. package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js.map +1 -0
  83. package/bundle/typescript/src/commands/game/sideQuest/commands/pick.d.ts +10 -0
  84. package/bundle/typescript/src/commands/game/sideQuest/commands/pick.js +33 -0
  85. package/bundle/typescript/src/commands/game/sideQuest/commands/pick.js.map +1 -0
  86. package/bundle/typescript/src/commands/game/sideQuest/commands/project.d.ts +19 -0
  87. package/bundle/typescript/src/commands/game/sideQuest/commands/project.js +54 -0
  88. package/bundle/typescript/src/commands/game/sideQuest/commands/project.js.map +1 -0
  89. package/bundle/typescript/src/commands/game/sideQuest/commands/read.js +6 -5
  90. package/bundle/typescript/src/commands/game/sideQuest/commands/read.js.map +1 -1
  91. package/bundle/typescript/src/commands/game/sideQuest/commands/reboot.d.ts +12 -0
  92. package/bundle/typescript/src/commands/game/sideQuest/commands/reboot.js +52 -0
  93. package/bundle/typescript/src/commands/game/sideQuest/commands/reboot.js.map +1 -0
  94. package/bundle/typescript/src/commands/game/sideQuest/commands/reload.d.ts +14 -0
  95. package/bundle/typescript/src/commands/game/sideQuest/commands/reload.js +40 -0
  96. package/bundle/typescript/src/commands/game/sideQuest/commands/reload.js.map +1 -0
  97. package/bundle/typescript/src/commands/game/sideQuest/commands/rest.d.ts +15 -0
  98. package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js +59 -0
  99. package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js.map +1 -0
  100. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +31 -2
  101. package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
  102. package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +71 -7
  103. package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +1 -1
  104. package/bundle/typescript/src/commands/game/sideQuest/commands/sheet.d.ts +12 -0
  105. package/bundle/typescript/src/commands/game/sideQuest/commands/sheet.js +58 -0
  106. package/bundle/typescript/src/commands/game/sideQuest/commands/sheet.js.map +1 -0
  107. package/bundle/typescript/src/commands/game/sideQuest/commands/silent.d.ts +13 -0
  108. package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js +50 -0
  109. package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js.map +1 -0
  110. package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.d.ts +15 -0
  111. package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js +35 -0
  112. package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js.map +1 -0
  113. package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +32 -11
  114. package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -1
  115. package/bundle/typescript/src/commands/game/sideQuest/commands/spells.d.ts +14 -0
  116. package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js +86 -0
  117. package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js.map +1 -0
  118. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.d.ts +12 -0
  119. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js +41 -0
  120. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js.map +1 -0
  121. package/bundle/typescript/src/commands/game/sideQuest/commands/subdue.d.ts +21 -0
  122. package/bundle/typescript/src/commands/game/sideQuest/commands/subdue.js +43 -0
  123. package/bundle/typescript/src/commands/game/sideQuest/commands/subdue.js.map +1 -0
  124. package/bundle/typescript/src/commands/game/sideQuest/commands/surrender.d.ts +20 -0
  125. package/bundle/typescript/src/commands/game/sideQuest/commands/surrender.js +45 -0
  126. package/bundle/typescript/src/commands/game/sideQuest/commands/surrender.js.map +1 -0
  127. package/bundle/typescript/src/commands/game/sideQuest/commands/take.d.ts +8 -0
  128. package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +138 -2
  129. package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -1
  130. package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +8 -0
  131. package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +1 -1
  132. package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +6 -3
  133. package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +1 -1
  134. package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +1 -0
  135. package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +1 -1
  136. package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +24 -0
  137. package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +102 -1
  138. package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +1 -1
  139. package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +2 -1
  140. package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +1 -1
  141. package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +7 -2
  142. package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js.map +1 -1
  143. package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +2 -1
  144. package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +1 -1
  145. package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +3 -0
  146. package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +1 -1
  147. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.d.ts +175 -0
  148. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js +673 -0
  149. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js.map +1 -0
  150. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.d.ts +8 -1
  151. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +139 -21
  152. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -1
  153. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.d.ts +174 -0
  154. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.js +647 -0
  155. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-seed-generator.js.map +1 -0
  156. package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +138 -9
  157. package/bundle/typescript/src/commands/game/sideQuest/game.js +757 -197
  158. package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
  159. package/bundle/typescript/src/commands/game/sideQuest/minigames/hack-minigame.d.ts +16 -0
  160. package/bundle/typescript/src/commands/game/sideQuest/minigames/hack-minigame.js +101 -0
  161. package/bundle/typescript/src/commands/game/sideQuest/minigames/hack-minigame.js.map +1 -0
  162. package/bundle/typescript/src/commands/game/sideQuest/minigames/lockpick-minigame.d.ts +15 -0
  163. package/bundle/typescript/src/commands/game/sideQuest/minigames/lockpick-minigame.js +95 -0
  164. package/bundle/typescript/src/commands/game/sideQuest/minigames/lockpick-minigame.js.map +1 -0
  165. package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +10 -0
  166. package/bundle/typescript/src/commands/game/sideQuest/models/door.js +15 -2
  167. package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +1 -1
  168. package/bundle/typescript/src/commands/game/sideQuest/models/inventory.d.ts +10 -0
  169. package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +54 -4
  170. package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js.map +1 -1
  171. package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +41 -0
  172. package/bundle/typescript/src/commands/game/sideQuest/models/item.js +106 -3
  173. package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
  174. package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +27 -0
  175. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +312 -50
  176. package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
  177. package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +278 -0
  178. package/bundle/typescript/src/commands/game/sideQuest/models/player.js +661 -9
  179. package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
  180. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +75 -1
  181. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +199 -6
  182. package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -1
  183. package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +24 -0
  184. package/bundle/typescript/src/commands/game/sideQuest/models/room.js +53 -18
  185. package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
  186. package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +73 -0
  187. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +208 -3
  188. package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
  189. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +319 -70
  190. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +661 -227
  191. package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +1 -0
  192. package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +1 -0
  193. package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +1 -0
  194. package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.d.ts +1 -0
  195. package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +42 -0
  196. package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +15 -1
  197. package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +4 -0
  198. package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +8 -0
  199. package/bundle/typescript/src/commands/game/sideQuest/types/seed/win-condition-seed.d.ts +15 -0
  200. package/bundle/typescript/src/commands/game/sideQuest/types/seed/win-condition-seed.js +2 -0
  201. package/bundle/typescript/src/commands/game/sideQuest/types/seed/win-condition-seed.js.map +1 -0
  202. package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.d.ts +1 -0
  203. package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +5 -0
  204. package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js.map +1 -1
  205. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +1 -0
  206. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +1 -0
  207. package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +1 -1
  208. package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +3 -0
  209. package/bundle/typescript/src/commands/game/sideQuest/ui.js +95 -6
  210. package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
  211. package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.d.ts +60 -0
  212. package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js +138 -0
  213. package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js.map +1 -0
  214. package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.d.ts +145 -0
  215. package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js +354 -0
  216. package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js.map +1 -0
  217. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.d.ts +2 -0
  218. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js +12 -0
  219. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js.map +1 -0
  220. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.d.ts +22 -0
  221. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js +34 -0
  222. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js.map +1 -0
  223. package/bundle/typescript/src/commands/game/sideQuest/utilities/fuzzy-match.d.ts +36 -0
  224. package/bundle/typescript/src/commands/game/sideQuest/utilities/fuzzy-match.js +92 -0
  225. package/bundle/typescript/src/commands/game/sideQuest/utilities/fuzzy-match.js.map +1 -0
  226. package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.d.ts +77 -0
  227. package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js +265 -0
  228. package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js.map +1 -0
  229. package/bundle/typescript/src/commands/game/sideQuest/utilities/pursuit.d.ts +16 -0
  230. package/bundle/typescript/src/commands/game/sideQuest/utilities/pursuit.js +36 -0
  231. package/bundle/typescript/src/commands/game/sideQuest/utilities/pursuit.js.map +1 -0
  232. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +78 -7
  233. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
  234. package/bundle/typescript/src/commands/set/global.sub.cmd.js +59 -5
  235. package/bundle/typescript/src/commands/set/global.sub.cmd.js.map +1 -1
  236. package/bundle/typescript/src/tools/ai/ai.class.d.ts +42 -0
  237. package/bundle/typescript/src/tools/ai/ai.class.js +117 -0
  238. package/bundle/typescript/src/tools/ai/ai.class.js.map +1 -0
  239. package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +1 -0
  240. package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +1 -1
  241. package/bundle/typescript/src/tools/https/https.class.d.ts +3 -2
  242. package/bundle/typescript/src/tools/https/https.class.js +51 -2
  243. package/bundle/typescript/src/tools/https/https.class.js.map +1 -1
  244. package/bundle/typescript/src/tools/https/https.interface.d.ts +10 -0
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"look.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest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S,CAAC;QAEnC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAA+B,EAAE,CAAC;YAC5E,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;YAClC,IAAI,CAAC,KAAK;gBAAE,SAAS;YAErB,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzC,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC5B,IAAI,IAAI,EAAE,CAAC;oBACT,KAAK,CAAC,IAAI,CAAC,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBACvD,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,yCAAyC,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * On-demand exits panel, replacing the always-on blessed sidebar box.
4
+ * Registered as both "map" and "exits". Locked ways out matter most, so
5
+ * each exit carries its lock state, and any barrier (room puzzle or
6
+ * puzzle-guarded door) gets a line too.
7
+ */
8
+ export declare class MapCommand extends Command implements ICommand {
9
+ protected static verb: string;
10
+ protected static description: string;
11
+ execute(_args?: string[]): Promise<string>;
12
+ }
@@ -0,0 +1,46 @@
1
+ import { Command } from './command.js';
2
+ import { Door } from '../models/door.js';
3
+ import { capitalCase } from 'change-case';
4
+ /**
5
+ * On-demand exits panel, replacing the always-on blessed sidebar box.
6
+ * Registered as both "map" and "exits". Locked ways out matter most, so
7
+ * each exit carries its lock state, and any barrier (room puzzle or
8
+ * puzzle-guarded door) gets a line too.
9
+ */
10
+ export class MapCommand extends Command {
11
+ static verb = 'map';
12
+ static description = 'Where you are and every way out, with lock states.';
13
+ async execute(_args = []) {
14
+ const room = this.actor.currentLocation;
15
+ if (!room) {
16
+ return "You're nowhere. This is a bug.";
17
+ }
18
+ const lines = [`=== ${room.name.toUpperCase()} ===`];
19
+ if (room.exits.size === 0) {
20
+ lines.push('There are no exits here.');
21
+ return lines.join('\n');
22
+ }
23
+ lines.push('Exits:');
24
+ for (const [direction, exit] of room.exits.entries()) {
25
+ if (exit instanceof Door) {
26
+ const target = exit.getOtherSideToName(room);
27
+ const state = exit.checkIfLocked() ? ' (locked)' : exit.checkIfLockable() ? ' (unlocked)' : '';
28
+ lines.push(` • ${capitalCase(direction)}: ${target}${state}`);
29
+ }
30
+ else {
31
+ lines.push(` • ${capitalCase(direction)}: ${exit}`);
32
+ }
33
+ }
34
+ const barriers = room.getPuzzleTargets();
35
+ if (barriers.length > 0) {
36
+ lines.push('');
37
+ for (const barrier of barriers) {
38
+ lines.push(barrier.direction
39
+ ? `A barrier blocks the way ${barrier.direction} -- "search" for a closer look.`
40
+ : `There's a barrier here -- "search" for a closer look.`);
41
+ }
42
+ }
43
+ return lines.join('\n');
44
+ }
45
+ }
46
+ //# sourceMappingURL=map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,OAAO,UAAW,SAAQ,OAAO;IAC3B,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,MAAM,CAAC,WAAW,GAAG,oDAAoD,CAAC;IAEpF,KAAK,CAAC,OAAO,CAAC,QAAkB,EAAE;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,K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IAAI,QAAQ,EAAE,CAAC;gBAC/B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS;oBAC1B,CAAC,CAAC,4BAA4B,OAAO,CAAC,SAAS,iCAAiC;oBAChF,CAAC,CAAC,uDAAuD,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * The PAN dashboard: your personal area network at a glance -- master
4
+ * device and its firewall, every slaved device with what it grants while
5
+ * loud, and the silent-vs-loud tradeoff spelled out. This is the screen
6
+ * you check before deciding whether the AR bonus is worth being hackable.
7
+ */
8
+ export declare class PanCommand extends Command implements ICommand {
9
+ protected static verb: string;
10
+ protected static description: string;
11
+ execute(_args?: string[]): Promise<string>;
12
+ }
@@ -0,0 +1,55 @@
1
+ import { Command } from './command.js';
2
+ import { Category } from '../types/shared/item-enum.js';
3
+ /**
4
+ * The PAN dashboard: your personal area network at a glance -- master
5
+ * device and its firewall, every slaved device with what it grants while
6
+ * loud, and the silent-vs-loud tradeoff spelled out. This is the screen
7
+ * you check before deciding whether the AR bonus is worth being hackable.
8
+ */
9
+ export class PanCommand extends Command {
10
+ static verb = 'pan';
11
+ static description = 'Your personal area network: master device, slaved gear, wireless bonuses, and what running silent costs and protects.';
12
+ async execute(_args = []) {
13
+ const a = this.actor;
14
+ const master = a.getPanMaster();
15
+ if (!master) {
16
+ return `No devices, no PAN. You are unhackable and unreachable -- the monk's build.`;
17
+ }
18
+ const state = a.runningSilent
19
+ ? `{magenta-fg}SILENT{/magenta-fg} -- hidden (+2 firewall), but no calls, no AR, no Matrix`
20
+ : a.arOffline
21
+ ? `{red-fg}LOUD, AR CUT{/red-fg} -- someone hacked your overlay dark ("reboot")`
22
+ : `{green-fg}LOUD{/green-fg} -- full bonuses, and hackable`;
23
+ const lines = [
24
+ `=== PAN: ${a.name.toUpperCase()} ===`,
25
+ '',
26
+ `Broadcast: ${state}`,
27
+ `Master: ${master.name} -- firewall ${a.getPanDefensePool()}d6 (Logic + quality${a.runningSilent ? ' + silent' : ''})`,
28
+ '',
29
+ 'Slaved devices:',
30
+ ];
31
+ const link = a.equipment.head?.commlink;
32
+ if (link) {
33
+ const bonus = a.runningSilent || a.arOffline ? 'inactive' : `+${link.qualityBonus} initiative (AR overlay)`;
34
+ lines.push(` • ${link.name} (commlink) -- calls; ${bonus}`);
35
+ }
36
+ const deck = a.getAnyCyberdeck();
37
+ if (deck) {
38
+ lines.push(` • ${deck.name} (cyberdeck) -- Matrix access; ${deck.deckSummary()}${deck.isBricked ? ' BRICKED (rest to repair)' : ''}`);
39
+ }
40
+ const gun = a.equipment.rightHand?.weapon ?? a.equipment.leftHand?.weapon;
41
+ if (gun?.isFirearm()) {
42
+ lines.push(` • ${gun.name} (smartgun) -- ${gun.jammed ? '{red-fg}JAMMED -- smartlink cracked ("reboot"){/red-fg}' : 'smartlink live'}`);
43
+ }
44
+ const drone = a.inventory.getAllItems().find(i => i.category === Category.Drone);
45
+ if (drone) {
46
+ lines.push(` • ${drone.name} (drone) -- recon uplink ("drone")`);
47
+ }
48
+ lines.push('');
49
+ lines.push(a.runningSilent
50
+ ? `Silent running: enemy deckers must FIND you before they can crack you -- but a good one can force you loud.`
51
+ : `Running loud: any decker in reach can try your firewall -- jammed guns and dead AR are how that feels. "silent" goes dark.`);
52
+ return lines.join('\n');
53
+ }
54
+ }
55
+ //# sourceMappingURL=pan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pan.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/pan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,OAAO,UAAW,SAAQ,OAAO;IAC3B,MAAM,CAAC,IAAI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AAI,kCAAkC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACzI,CAAC;QAED,MAAM,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1E,IAAI,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,kBAAkB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,yDAAyD,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAC3I,CAAC;QAED,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC;QACjF,IAAI,KAAK,EAAE,CAAC;YACV,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,IAAI,oCAAoC,CAAC,CAAC;QACpE,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa;YACxB,CAAC,CAAC,6GAA6G;YAC/G,CAAC,CAAC,4HAA4H,CAAC,CAAC;QAElI,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * The NEGOTIATION skill against a PERSON: "persuade <name> [your pitch]"
4
+ * rolls opposed Charisma + negotiation, and the OUTCOME is mechanically
5
+ * fed into the target's AI as a disposition note -- a won roll makes them
6
+ * genuinely inclined to cooperate (share what they know, drop absurd
7
+ * demands), a strong win makes them an ally for the scene, a lost roll
8
+ * leaves them unmoved, and a critical glitch actively sours them. Once
9
+ * per target per job -- people notice being worked twice. Born from a
10
+ * real Face session stonewalled by a bartender demanding the entire job's
11
+ * payout for one answer, with charisma 6 / negotiation 6 and no verb to
12
+ * spend them on.
13
+ */
14
+ export declare class PersuadeCommand extends Command implements ICommand {
15
+ protected static verb: string;
16
+ protected static description: string;
17
+ execute(args?: string[]): Promise<string>;
18
+ }
@@ -0,0 +1,100 @@
1
+ import { Command } from './command.js';
2
+ import { NPC } from '../models/npc.js';
3
+ import { rollPool, formatRoll } from '../utilities/dice.js';
4
+ import { fuzzyPickName } from '../utilities/fuzzy-match.js';
5
+ /**
6
+ * The NEGOTIATION skill against a PERSON: "persuade <name> [your pitch]"
7
+ * rolls opposed Charisma + negotiation, and the OUTCOME is mechanically
8
+ * fed into the target's AI as a disposition note -- a won roll makes them
9
+ * genuinely inclined to cooperate (share what they know, drop absurd
10
+ * demands), a strong win makes them an ally for the scene, a lost roll
11
+ * leaves them unmoved, and a critical glitch actively sours them. Once
12
+ * per target per job -- people notice being worked twice. Born from a
13
+ * real Face session stonewalled by a bartender demanding the entire job's
14
+ * payout for one answer, with charisma 6 / negotiation 6 and no verb to
15
+ * spend them on.
16
+ */
17
+ export class PersuadeCommand extends Command {
18
+ static verb = 'persuade';
19
+ static description = 'Work someone over: "persuade <name> [pitch]" -- opposed Charisma + negotiation; winning genuinely inclines them to cooperate. Once per person per job.';
20
+ async execute(args = []) {
21
+ const actor = this.actor;
22
+ if (!args || args.length === 0) {
23
+ return 'Persuade whom? Try: `persuade <name> [what you pitch them]`';
24
+ }
25
+ if (actor.plane !== 'meat') {
26
+ return actor.plane === 'matrix'
27
+ ? `Charm doesn't compile. "jack out" and work them in person.`
28
+ : `The living can't hear you from out here. "return" first.`;
29
+ }
30
+ const room = actor.currentLocation;
31
+ const candidates = this.scene.getActorsInRoom(room)
32
+ .filter(a => a !== actor && a.plane === 'meat' && !a.isIncapacitated());
33
+ // Longest-prefix name match so multi-word names don't need quoting and
34
+ // the rest of the input becomes the pitch (same approach as call.ts).
35
+ let target;
36
+ let pitchWords = [];
37
+ for (let i = args.length; i >= 1; i--) {
38
+ const picked = fuzzyPickName(args.slice(0, i).join(' '), candidates.map(a => a.name));
39
+ if (picked) {
40
+ target = candidates.find(a => a.name === picked);
41
+ pitchWords = args.slice(i);
42
+ break;
43
+ }
44
+ }
45
+ if (!target) {
46
+ const present = candidates.map(a => a.name).join(', ') || 'no one';
47
+ return `Nobody here by that name to work on. Present: ${present}.`;
48
+ }
49
+ if (!(target instanceof NPC)) {
50
+ return `${target.name} knows all your tricks already.`;
51
+ }
52
+ const mark = `persuaded-by:${actor.name}`;
53
+ if (target.socialMarks.has(mark)) {
54
+ return `You've already made your play with ${target.name} this job -- pushing again would just read as desperation.`;
55
+ }
56
+ target.socialMarks.add(mark);
57
+ // Talking someone around is not a quiet activity (see sneak.ts).
58
+ actor.sneaking = false;
59
+ const negotiation = actor.skillRating('negotiation');
60
+ const pool = Math.max(1, actor.charisma + (negotiation > 0 ? negotiation : -1) + actor.woundModifier - actor.sustainingPenalty);
61
+ const theirs = Math.max(1, target.charisma + target.skillRating('negotiation'));
62
+ const mine = rollPool(pool);
63
+ const resistance = rollPool(theirs);
64
+ const net = mine.hits - resistance.hits;
65
+ const pitch = pitchWords.join(' ');
66
+ actor.performAction('works on', `${target.name}${pitch ? ` -- "${pitch}"` : ''}`);
67
+ this.logger.write(`${actor.name} persuades ${target.name}: ${mine.hits} vs ${resistance.hits}.`);
68
+ // The disposition note is the MECHANIC: it lands in the target's AI
69
+ // history via hear() (which also makes them respond in character), so
70
+ // the roll's outcome shapes every reply they give from here on.
71
+ let note;
72
+ let verdict;
73
+ if (mine.criticalGlitch) {
74
+ note = `[System note: that pitch was insultingly manipulative -- you SAW the strings. You are now colder and more suspicious toward ${actor.name}; raise your guard and your price.]`;
75
+ verdict = `It comes out wrong -- all angle, no warmth. ${target.name}'s eyes go flat.`;
76
+ }
77
+ else if (net >= 3) {
78
+ note = `[System note: ${actor.name}'s pitch genuinely LANDED -- you now actively want to help them this job: share what you know freely, drop any demands to a token gesture, and treat them as a friend.]`;
79
+ verdict = `Something shifts -- ${target.name} is with you now.`;
80
+ }
81
+ else if (net >= 1) {
82
+ note = `[System note: ${actor.name} is persuasive -- you're inclined to cooperate: be more forthcoming and reasonable with them than you'd otherwise be.]`;
83
+ verdict = `${target.name} thaws, visibly.`;
84
+ }
85
+ else {
86
+ note = `[System note: the pitch didn't land -- you remain exactly as unmoved as before.]`;
87
+ verdict = `${target.name} hears you out. Nothing moves behind their eyes.`;
88
+ }
89
+ void Promise.resolve(target.hear(actor, `${pitch || '(making their case, smooth and unhurried)'} ${note}`)).catch(err => {
90
+ this.logger.error(`${target.name} failed to hear the persuasion: ${err}`);
91
+ });
92
+ return [
93
+ `You work on ${target.name}:`,
94
+ ` Negotiation: ${formatRoll(mine)}`,
95
+ ` ${target.name}: ${formatRoll(resistance)}`,
96
+ ` ${verdict}`,
97
+ ].join('\n');
98
+ }
99
+ }
100
+ //# sourceMappingURL=persuade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persuade.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/persuade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,eAAgB,SAAQ,OAAO;IAChC,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,MAAM,CAAC,WAAW,GAAG,wJAAwJ,CAAC;IAExL,KAAK,CAAC,OAAO,CAAC,OAAiB,EAAE;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB,IAAI,CAAC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AK,CAAC,GAAG,CAAC,EAAE;YACtH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,mCAAmC,GAAG,EAAE,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,eAAe,MAAM,CAAC,IAAI,GAAG;YAC7B,kBAAkB,UAAU,CAAC,IAAI,CAAC,EAAE;YACpC,KAAK,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,UAAU,CAAC,EAAE;YAC7C,KAAK,OAAO,EAAE;SACf,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { BypassCommand } from './bypass-command.js';
2
+ import { PuzzleBypassType } from '../types/seed/puzzle-seed.js';
3
+ export declare class PickCommand extends BypassCommand {
4
+ protected static verb: string;
5
+ protected static description: string;
6
+ protected bypassType: PuzzleBypassType;
7
+ protected noPuzzleMessage: string;
8
+ execute(args: string[]): Promise<string>;
9
+ protected determineOutcome(): Promise<boolean>;
10
+ }
@@ -0,0 +1,33 @@
1
+ import { BypassCommand } from './bypass-command.js';
2
+ import { rollPool, formatRoll } from '../utilities/dice.js';
3
+ export class PickCommand extends BypassCommand {
4
+ static verb = 'pick';
5
+ static description = 'Pick a lock -- skips needing the code, but a failed attempt is fatal (instant game over). If there\'s more than one barrier here, say which: "pick north" or "pick <name>".';
6
+ bypassType = 'lockpick';
7
+ noPuzzleMessage = "There's nothing here to pick.";
8
+ async execute(args) {
9
+ // Lockpicking is HANDS work -- a jacked-in persona picking a physical
10
+ // maglock (which a real session did, from cold-sim) breaks the plane
11
+ // fiction wide open. Meat only.
12
+ if (this.actor.plane === 'matrix') {
13
+ return `Your hands are meat -- and right now they're slumped in ${this.actor.bodyRoom?.name ?? 'another room'} along with your picks. "jack out" to work a physical lock.`;
14
+ }
15
+ if (this.actor.plane === 'astral') {
16
+ return `Astral fingers pass straight through tumblers. "return" to your body to work a physical lock.`;
17
+ }
18
+ return super.execute(args);
19
+ }
20
+ async determineOutcome() {
21
+ // A LOCKSMITH test (Agility + locksmith, 2 hits; unskilled defaults to
22
+ // Agility - 1) -- the character's training decides the odds now, not a
23
+ // minigame or a coin flip. Same stakes as ever: failure is fatal.
24
+ const skill = this.actor.skillRating('locksmith');
25
+ const pool = Math.max(1, this.actor.agility + (skill > 0 ? skill : -1) + this.actor.woundModifier - this.actor.sustainingPenalty);
26
+ const roll = rollPool(pool);
27
+ if (this.actor === this.scene.getPlayer()) {
28
+ this.logger.log(`Locksmith: ${formatRoll(roll)} (2+ to open)`);
29
+ }
30
+ return roll.hits >= 2;
31
+ }
32
+ }
33
+ //# sourceMappingURL=pick.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/pick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,OAAO,WAAY,SAAQ,aAAa;IAClC,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,MAAM,CAAC,WAAW,GAAG,6KAA6K,CAAC;IACnM,UAAU,GAAqB,UAAU,CAAC;IAC1C,eAAe,GAAG,+BAA+B,CAAC;IAE5D,KAAK,CAAC,OAAO,CAAC,IAAc;QAC1B,sEAAsE;QACtE,qEAAqE;QACrE,gCAAgC;QAChC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,2DAA2D,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,IAAI,cAAc,6DAA6D,CAAC;QAC7K,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAClC,OAAO,+FAA+F,CAAC;QACzG,CAAC;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAES,KAAK,CAAC,gBAAgB;QAC9B,uEAAuE;QACvE,uEAAuE;QACvE,kEAAkE;QAClE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAClD,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAClI,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,CAAC;YAC1C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;IACxB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * Astral projection ("project") and the way back ("return") -- Awakened
4
+ * only; a mundane with a grimoire can throw a book-learned spell but can't
5
+ * leave their flesh. The astral overlays the same rooms: locked doors mean
6
+ * nothing, wards mean everything, and every move out there deepens the
7
+ * snap-back toll collected on return (see planes.ts). Your body slumps
8
+ * where you left it, and yes, someone can find it.
9
+ */
10
+ export declare class ProjectCommand extends Command implements ICommand {
11
+ protected static verb: string;
12
+ protected static description: string;
13
+ execute(_args?: string[]): Promise<string>;
14
+ }
15
+ export declare class ReturnCommand extends Command implements ICommand {
16
+ protected static verb: string;
17
+ protected static description: string;
18
+ execute(_args?: string[]): Promise<string>;
19
+ }
@@ -0,0 +1,54 @@
1
+ import { Command } from './command.js';
2
+ import { projectAstral, returnToBody } from '../utilities/planes.js';
3
+ /**
4
+ * Astral projection ("project") and the way back ("return") -- Awakened
5
+ * only; a mundane with a grimoire can throw a book-learned spell but can't
6
+ * leave their flesh. The astral overlays the same rooms: locked doors mean
7
+ * nothing, wards mean everything, and every move out there deepens the
8
+ * snap-back toll collected on return (see planes.ts). Your body slumps
9
+ * where you left it, and yes, someone can find it.
10
+ */
11
+ export class ProjectCommand extends Command {
12
+ static verb = 'project';
13
+ static description = 'Leave your body and walk the astral (Awakened only). Locked doors mean nothing, wards mean everything, and your empty body stays behind. "return" comes back.';
14
+ async execute(_args = []) {
15
+ const actor = this.actor;
16
+ if (actor.plane === 'astral') {
17
+ return `You're already out. "return" comes back to your body.`;
18
+ }
19
+ if (actor.plane === 'matrix') {
20
+ return `Your mind is in the Matrix -- one plane at a time. "jack out" first.`;
21
+ }
22
+ if (!actor.isAwakened()) {
23
+ return `You reach for the door out of your flesh and find a wall. Projection takes the Awakened gift -- no formula or focus fakes this one.`;
24
+ }
25
+ if (actor.adept) {
26
+ return `Your magic lives IN your body -- an adept's gift doesn't leave the flesh. You can read auras ("assense"), but projecting isn't yours.`;
27
+ }
28
+ if (actor.isIncapacitated()) {
29
+ return `You're down -- your spirit isn't going anywhere your body can't follow.`;
30
+ }
31
+ if (actor.inExchange) {
32
+ return `Lead is flying -- leaving your body mid-firefight is how bodies stop being yours. Wait for the lull.`;
33
+ }
34
+ const lines = projectAstral(this.scene, actor);
35
+ this.scene.updateStatus();
36
+ return lines.join('\n');
37
+ }
38
+ }
39
+ export class ReturnCommand extends Command {
40
+ static verb = 'return';
41
+ static description = 'Return to your body from the astral plane, paying the snap-back toll for time spent out.';
42
+ async execute(_args = []) {
43
+ const actor = this.actor;
44
+ if (actor.plane !== 'astral') {
45
+ return `You're already in your body.`;
46
+ }
47
+ if (actor.inExchange) {
48
+ return `The fight has your astral form pinned in the exchange -- survive it, then slip back in the lull.`;
49
+ }
50
+ const lines = returnToBody(this.scene, actor);
51
+ return lines.join('\n');
52
+ }
53
+ }
54
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO;IAC/B,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC;IACxB,MAAM,CAAC,WAAW,GAAG,+JAA+J,CAAC;IAE/L,KAAK,CAAC,OAAO,CAAC,QAAkB,EAAE;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,uDAAuD,CAAC;QACjE,CAAC;QACD,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,sEAAsE,CAAC;QAChF,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC;YACxB,OAAO,qIAAqI,CAAC;QAC/I,CAAC;QACD,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,uIAAuI,CAAC;QACjJ,CAAC;QACD,IAAI,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC;YAC5B,OAAO,yEAAyE,CAAC;QACnF,CAAC;QACD,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO,sGAAsG,CAAC;QAChH,CAAC;QAED,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;;AAGH,MAAM,OAAO,aAAc,SAAQ,OAAO;IAC9B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,MAAM,CAAC,WAAW,GAAG,0FAA0F,CAAC;IAE1H,KAAK,CAAC,OAAO,CAAC,QAAkB,EAAE;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,8BAA8B,CAAC;QACxC,CAAC;QACD,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO,kGAAkG,CAAC;QAC5G,CAAC;QACD,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC9C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
@@ -7,9 +7,8 @@ export class ReadCommand extends Command {
7
7
  if (args.length === 0) {
8
8
  return 'What do you want to read? Try: `read [item name]`';
9
9
  }
10
- const targetName = args.join(' ').toLowerCase();
11
- const actorItems = this.actor.inventory.getAllItems();
12
- const item = actorItems.find((i) => i.name.toLowerCase() === targetName);
10
+ const targetName = args.join(' ');
11
+ const item = this.actor.inventory.getItem(targetName);
13
12
  if (!item) {
14
13
  return `You don't have anything called "${targetName}" here.`;
15
14
  }
@@ -19,8 +18,10 @@ export class ReadCommand extends Command {
19
18
  // Log the action
20
19
  this.logger.write(`ReadCommand: ${this.actor.name} reads "${item.name}".`);
21
20
  this.actor.performAction('reads', item.name);
22
- // Provide a default response if no extra details are present
23
- return item.details || `You flip through "${item.name}" but it's mostly blank pages.`;
21
+ // "details" is where clue/note content is meant to live, but "description"
22
+ // is a reasonable fallback if a scene ever puts it there instead -- better
23
+ // to show something real than a dead "blank pages" non-answer.
24
+ return item.details || item.description || `You flip through "${item.name}" but it's mostly blank pages.`;
24
25
  }
25
26
  }
26
27
  //# sourceMappingURL=read.js.map
@@ -1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I,gCAAgC,CAAC;IAC5G,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * The answer to a cracked PAN (see hack.ts): reboot your network. Clears
4
+ * every jammed device you carry and brings a hacked-dark AR overlay back
5
+ * up. Costs you the lull -- you can't reboot with lead in the air, which
6
+ * is exactly why a mid-fight jam hurts.
7
+ */
8
+ export declare class RebootCommand extends Command implements ICommand {
9
+ protected static verb: string;
10
+ protected static description: string;
11
+ execute(_args?: string[]): Promise<string>;
12
+ }
@@ -0,0 +1,52 @@
1
+ import { Command } from './command.js';
2
+ /**
3
+ * The answer to a cracked PAN (see hack.ts): reboot your network. Clears
4
+ * every jammed device you carry and brings a hacked-dark AR overlay back
5
+ * up. Costs you the lull -- you can't reboot with lead in the air, which
6
+ * is exactly why a mid-fight jam hurts.
7
+ */
8
+ export class RebootCommand extends Command {
9
+ static verb = 'reboot';
10
+ static description = 'Reboot your PAN: clears jammed (hacked) devices and restores a cut AR overlay. Not while lead is flying.';
11
+ async execute(_args = []) {
12
+ const actor = this.actor;
13
+ if (actor.isIncapacitated()) {
14
+ return `You're down. The network can wait.`;
15
+ }
16
+ if (actor.inExchange || (actor === this.scene.getPlayer() && this.scene.isPlayerExchangeActive())) {
17
+ return `No rebooting with lead in the air -- survive the exchange, then cycle it in the lull.`;
18
+ }
19
+ if (actor.plane === 'matrix') {
20
+ return `Rebooting the deck you're RIDING would dump you. "jack out" first.`;
21
+ }
22
+ const jammedGear = actor.inventory.getAllItems().filter(i => i.jammed);
23
+ for (const group of Object.values(actor.equipment)) {
24
+ if (!group)
25
+ continue;
26
+ for (const item of Object.values(group)) {
27
+ if (item && item.jammed)
28
+ jammedGear.push(item);
29
+ }
30
+ }
31
+ const hadArDown = actor.arOffline;
32
+ if (jammedGear.length === 0 && !hadArDown) {
33
+ return `Your PAN is clean -- nothing needs a reboot.`;
34
+ }
35
+ for (const item of jammedGear) {
36
+ item.jammed = false;
37
+ }
38
+ actor.arOffline = false;
39
+ actor.performAction('reboots their PAN', 'devices cycling back up');
40
+ this.logger.write(`${actor.name} rebooted their PAN (${jammedGear.length} device(s) cleared, AR ${hadArDown ? 'restored' : 'fine'}).`);
41
+ this.scene.updateStatus();
42
+ const lines = [`You cold-cycle the PAN. A three-second eternity, then everything handshakes back:`];
43
+ for (const item of jammedGear) {
44
+ lines.push(` • ${item.name} -- smartlink live again`);
45
+ }
46
+ if (hadArDown) {
47
+ lines.push(` • AR overlay back up -- the world regrows its labels`);
48
+ }
49
+ return lines.join('\n');
50
+ }
51
+ }
52
+ //# sourceMappingURL=reboot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reboot.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/reboot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,OAAO;IAC9B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,MAAM,CAAC,WAAW,GAAG,0GAA0G,CAAC;IAE1I,KAAK,CAAC,OAAO,CAAC,QAAkB,EAAE;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB,IAAI,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC;YAC5B,OAAO,oCAAoC,CAAC;QAC9C,CAAC;QACD,IAAI,KAAK,CAAC,UAAU,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,EAAE,CAAC;YAClG,OAAO,uFAAuF,CAAC;QACjG,CAAC;QACD,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,oEAAoE,CAAC;QAC9E,CAAC;QAED,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,E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ACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Command, ICommand } from './command.js';
2
+ /**
3
+ * Refills the equipped firearm's magazine by consuming one
4
+ * Ammunition-category item from the pack. Firearms hold
5
+ * Item.MAGAZINE_CAPACITY rounds and every shot (retaliation included)
6
+ * spends one -- see combat-exchange.ts. Reloading mid-fight is allowed
7
+ * (the between-exchanges pause is exactly the window for it), just not
8
+ * mid-exchange.
9
+ */
10
+ export declare class ReloadCommand extends Command implements ICommand {
11
+ protected static verb: string;
12
+ protected static description: string;
13
+ execute(_args?: string[]): Promise<string>;
14
+ }
@@ -0,0 +1,40 @@
1
+ import { Command } from './command.js';
2
+ import { Category } from '../types/shared/item-enum.js';
3
+ import { Item } from '../models/item.js';
4
+ /**
5
+ * Refills the equipped firearm's magazine by consuming one
6
+ * Ammunition-category item from the pack. Firearms hold
7
+ * Item.MAGAZINE_CAPACITY rounds and every shot (retaliation included)
8
+ * spends one -- see combat-exchange.ts. Reloading mid-fight is allowed
9
+ * (the between-exchanges pause is exactly the window for it), just not
10
+ * mid-exchange.
11
+ */
12
+ export class ReloadCommand extends Command {
13
+ static verb = 'reload';
14
+ static description = 'Reload your equipped firearm -- consumes one Ammunition item from your pack.';
15
+ async execute(_args = []) {
16
+ const actor = this.actor;
17
+ if (actor === this.scene.getPlayer() && this.scene.isPlayerExchangeActive()) {
18
+ return `No time -- the exchange is still resolving. Reload in the lull.`;
19
+ }
20
+ const weapon = actor.equipment.rightHand?.weapon ?? actor.equipment.leftHand?.weapon;
21
+ if (!weapon || !weapon.isFirearm()) {
22
+ return `You have no firearm equipped to reload.`;
23
+ }
24
+ if (weapon.ammo >= Item.MAGAZINE_CAPACITY) {
25
+ return `The ${weapon.name} is already fully loaded (${weapon.ammo}/${Item.MAGAZINE_CAPACITY}).`;
26
+ }
27
+ const ammo = actor.inventory.getAllItems().find(i => i.category === Category.Ammunition);
28
+ if (!ammo) {
29
+ return `No ammunition in your pack -- the ${weapon.name} stays at ${weapon.ammo}/${Item.MAGAZINE_CAPACITY}. Find a spare clip.`;
30
+ }
31
+ actor.inventory.removeItem(ammo.name);
32
+ weapon.reload();
33
+ this.logger.write(`${actor.name} reloaded ${weapon.name} with ${ammo.name}.`);
34
+ this.actor.performAction('reloads', weapon.name);
35
+ this.scene.updateInventory(this.scene.getPlayer().inventory);
36
+ this.scene.updateStatus();
37
+ return `You slap the ${ammo.name} home -- ${weapon.name} loaded, ${weapon.ammo}/${Item.MAGAZINE_CAPACITY}.`;
38
+ }
39
+ }
40
+ //# sourceMappingURL=reload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reload.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/commands/reload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,OAAO,aAAc,SAAQ,OAAO;IAC9B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,MAAM,CAAC,WAAW,GAAG,8EAA8E,CAAC;IAE9G,KAAK,CAAC,OAAO,CAAC,QAAkB,EAAE;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,CAAC;YAC5E,OAAO,iEAAiE,CAAC;QAC3E,CAAC;QAED,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;QACrF,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EA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ches are the fast, risky one --
4
+ * see use.ts): catch your breath somewhere safe. "Safe" means a
5
+ * Residence-type room (your Hideout qualifies) or a room with no one else
6
+ * in it -- nobody naps in front of an audience in the sprawl. Each rest
7
+ * rolls Body and recovers hits + 1 stun; repeat as needed. Rest never
8
+ * touches the physical track (bullet holes take medkits or a heal spell),
9
+ * and you can't rest mid-combat-exchange.
10
+ */
11
+ export declare class RestCommand extends Command implements ICommand {
12
+ protected static verb: string;
13
+ protected static description: string;
14
+ execute(_args?: string[]): Promise<string>;
15
+ }