tpmkms_4wp 7.12.8-beta.0 → 7.12.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/dimension.instance.json +736 -62
- package/common/dimension.js +15 -7
- package/common/formulas.instance.json +992 -0
- package/common/formulas.js +18 -5
- package/common/length.instance.json +141 -445
- package/common/pipboy.instance.json +23454 -1101
- package/common/pipboy.js +31 -4
- package/common/pressure.instance.json +48 -0
- package/common/temperature.instance.json +48 -0
- package/common/weight.instance.json +144 -0
- package/main.js +0 -6
- package/package.json +4 -16
- package/common/dimensionTemplate.instance.json +0 -582
- package/common/dimensionTemplate.js +0 -35
- package/common/dimensionTemplate.test.json +0 -2
- package/common/formulasTemplate.instance.json +0 -483
- package/common/formulasTemplate.js +0 -30
- package/common/formulasTemplate.test.json +0 -2
- package/common/pipboyTemplate.instance.json +0 -17420
- package/common/pipboyTemplate.js +0 -48
- package/common/pipboyTemplate.test.json +0 -2
package/common/pipboyTemplate.js
DELETED
@@ -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
|
-
})
|