ekms 7.12.8-beta.0 → 7.12.8-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/common/animals.instance.json +89 -249
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -5
  5. package/common/crew.instance.json +289 -577
  6. package/common/crew.js +1 -1
  7. package/common/currency.js +0 -2
  8. package/common/dialogues.js +16 -14
  9. package/common/dimension.instance.json +747 -73
  10. package/common/dimension.js +15 -7
  11. package/common/edible.instance.json +293 -297
  12. package/common/edible.js +1 -1
  13. package/common/emotions.instance.json +29 -65
  14. package/common/emotions.js +1 -1
  15. package/common/fastfood.instance.json +517 -1473
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +992 -0
  18. package/common/formulas.js +19 -6
  19. package/common/gdefaults.js +2 -0
  20. package/common/help.js +7 -2
  21. package/common/help.test.json +9 -5
  22. package/common/helpers.js +5 -0
  23. package/common/javascript.js +8 -6
  24. package/common/kirk.instance.json +1 -1
  25. package/common/kirk.js +1 -1
  26. package/common/length.instance.json +199 -683
  27. package/common/length.js +1 -1
  28. package/common/math.instance.json +21 -41
  29. package/common/math.js +1 -1
  30. package/common/meta.instance.json +1 -1
  31. package/common/meta.js +35 -10
  32. package/common/numbers.js +28 -24
  33. package/common/ordering.instance.json +37 -101
  34. package/common/ordering.js +1 -1
  35. package/common/people.instance.json +50 -78
  36. package/common/people.js +1 -1
  37. package/common/pipboy.instance.json +23431 -1082
  38. package/common/pipboy.js +31 -4
  39. package/common/pokemon.instance.json +41 -97
  40. package/common/pokemon.js +1 -1
  41. package/common/pressure.instance.json +61 -33
  42. package/common/pressure.js +1 -1
  43. package/common/properties.instance.json +21 -49
  44. package/common/properties.js +13 -8
  45. package/common/reports.instance.json +7 -63
  46. package/common/reports.js +9 -7
  47. package/common/scorekeeper.instance.json +1 -1
  48. package/common/scorekeeper.js +9 -7
  49. package/common/spock.instance.json +1 -1
  50. package/common/spock.js +1 -1
  51. package/common/tell.js +4 -2
  52. package/common/temperature.instance.json +65 -133
  53. package/common/temperature.js +1 -1
  54. package/common/time.js +36 -20
  55. package/common/time.test.json +66 -44
  56. package/common/tokenize.js +46 -0
  57. package/common/ui.instance.json +1 -1
  58. package/common/weight.instance.json +177 -201
  59. package/common/weight.js +1 -1
  60. package/main.js +2 -6
  61. package/package.json +6 -14
  62. package/common/dimensionTemplate.instance.json +0 -582
  63. package/common/dimensionTemplate.js +0 -35
  64. package/common/formulasTemplate.instance.json +0 -483
  65. package/common/formulasTemplate.js +0 -30
  66. package/common/formulasTemplate.test.json +0 -2
  67. package/common/pipboyTemplate.instance.json +0 -17420
  68. package/common/pipboyTemplate.js +0 -48
  69. package/common/pipboyTemplate.test.json +0 -2
  70. /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
@@ -1,48 +0,0 @@
1
- const { Config, knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
3
- const base_km = require('./hierarchy')
4
- const countable = require('./countable')
5
- const comparable = require('./comparable')
6
- const tests = require('./pipboyTemplate.test.json')
7
- const instance = require('./pipboyTemplate.instance.json')
8
-
9
- const template = {
10
- queries: [
11
- "pistols rifles grenades mines and shotguns are weapons",
12
- "mines and grenades are explosives",
13
- "explosives are weapons",
14
- "pistols rifles and shotguns are firearms",
15
- "firearms are weapons",
16
- "hats armor and suits are clothes",
17
- // "a rifle is a weapon",
18
- //"a weapon is equipable and changeable"
19
- "a weapon is equipable",
20
- "clothes are wearable",
21
- // "weapons are countable", TODO fix this
22
- "edible is a concept",
23
- "food is edible",
24
- "drinks are drinkable",
25
- "meat is food",
26
- "vegetables and fruit are food",
27
- "cola and pop are drinks",
28
- "medicine and stimpaks are takeable",
29
- "item modifies properties",
30
- "damage luck hp rads value ap charisma range and accuracy are item properties"
31
- ]
32
- }
33
-
34
- const createConfig = () => new Config({ name: 'pipboyTemplate' }, module).add(base_km(), countable(), comparable())
35
-
36
- knowledgeModule({
37
- module,
38
- description: 'Template for pipboy with speech',
39
- createConfig,
40
- template: { template, instance },
41
- test: {
42
- name: './pipboyTemplate.test.json',
43
- contents: tests,
44
- checks: {
45
- context: defaultContextCheck,
46
- },
47
- },
48
- })
@@ -1,2 +0,0 @@
1
- [
2
- ]