tpmkms_4wp 7.4.3-beta.8 → 7.4.3-beta.9

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.

Potentially problematic release.


This version of tpmkms_4wp might be problematic. Click here for more details.

package/common/pipboy.js CHANGED
@@ -4,6 +4,8 @@ const pipboy_tests = require('./pipboy.test.json')
4
4
 
5
5
  class API {
6
6
  // id in stats, inv, data, map, radio
7
+ // under stats: status, special, perks
8
+ // under inventory: weapons, armour, aid
7
9
  setDisplay(id) {
8
10
  this.objects.display = id
9
11
  }
@@ -13,6 +15,11 @@ class API {
13
15
 
14
16
  getWeapons() {
15
17
  }
18
+
19
+ // { item: 'stimpack', quantity: <number>, to?: [ { part: ['arm', 'leg', 'torso', head'], side?: ['left', 'right'] } ] }
20
+ apply(item) {
21
+ this.objects.apply = item
22
+ }
16
23
  }
17
24
  const api = new API()
18
25
 
@@ -21,8 +28,20 @@ let config = {
21
28
  operators: [
22
29
  "([show] ([showable|]))",
23
30
  "(([content]) [tab])",
31
+ "([apply] ([stimpack]))",
24
32
  ],
25
33
  bridges: [
34
+ {
35
+ id: "apply",
36
+ isA: ['verby'],
37
+ level: 0,
38
+ bridge: "{ ...next(operator), item: after[0] }",
39
+ generatorp: ({context, g}) => `apply ${g(context.item)}`,
40
+ semantic: ({api, context}) => {
41
+ // { item: 'stimpack', quantity: <number>, to?: [ { part: ['arm', 'leg', 'torso', head'], side?: ['left', 'right'] } ] }
42
+ api.apply({ item: 'stimpack', quantity: 1 })
43
+ }
44
+ },
26
45
  {
27
46
  id: "show",
28
47
  isA: ['verby'],
@@ -30,10 +49,15 @@ let config = {
30
49
  bridge: "{ ...next(operator), showable: after[0] }",
31
50
  generatorp: ({context, g}) => `show ${g(context.showable)}`,
32
51
  semantic: ({api, context}) => {
33
- debugger;
34
52
  api.setDisplay(context.showable.value)
35
53
  }
36
54
  },
55
+ {
56
+ id: "stimpack",
57
+ level: 0,
58
+ isA: ['theAble'],
59
+ bridge: "{ ...next(operator) }"
60
+ },
37
61
  {
38
62
  id: "tab",
39
63
  level: 0,
@@ -51,7 +75,21 @@ let config = {
51
75
  level: 0,
52
76
  isA: ['showable'],
53
77
  bridge: "{ ...next(operator) }" ,
54
- words: [['stat', 'stat'], ['stats', 'stat'], ['statistics', 'stat'], ['inventory', 'inv'], ['data', 'data'], ['map', 'map'], ['radio', 'radio']].map(
78
+ words: [
79
+ ['stat', 'stat'],
80
+ ['stats', 'stat'],
81
+ ['statistics', 'stat'],
82
+ ['inventory', 'inv'],
83
+ ['data', 'data'],
84
+ ['map', 'map'],
85
+ ['radio', 'radio'],
86
+ ['status', 'status'],
87
+ ['special', 'special'],
88
+ ['perks', 'perks'],
89
+ ['weapons', 'weapons'],
90
+ ['armour', 'armour'],
91
+ ['aid', 'aid'],
92
+ ].map(
55
93
  ([word, value]) => { return { word, value } })
56
94
  },
57
95
  ],
@@ -1425,5 +1425,251 @@
1425
1425
  "responses": [
1426
1426
  ""
1427
1427
  ]
1428
+ },
1429
+ {
1430
+ "associations": [
1431
+ [
1432
+ [
1433
+ "a",
1434
+ 0
1435
+ ],
1436
+ [
1437
+ "apply",
1438
+ 0
1439
+ ]
1440
+ ],
1441
+ [
1442
+ [
1443
+ "a",
1444
+ 0
1445
+ ],
1446
+ [
1447
+ "apply",
1448
+ 0
1449
+ ],
1450
+ [
1451
+ "stimpack",
1452
+ 0
1453
+ ]
1454
+ ],
1455
+ [
1456
+ [
1457
+ "apply",
1458
+ 0
1459
+ ],
1460
+ [
1461
+ "stimpack",
1462
+ 0
1463
+ ]
1464
+ ]
1465
+ ],
1466
+ "config": {
1467
+ },
1468
+ "contexts": [
1469
+ {
1470
+ "default": true,
1471
+ "item": {
1472
+ "concept": true,
1473
+ "default": true,
1474
+ "determiner": "a",
1475
+ "marker": "stimpack",
1476
+ "modifiers": [
1477
+ "determiner"
1478
+ ],
1479
+ "number": "one",
1480
+ "pullFromContext": false,
1481
+ "range": {
1482
+ "end": 15,
1483
+ "start": 6
1484
+ },
1485
+ "text": "a stimpack",
1486
+ "types": [
1487
+ "stimpack"
1488
+ ],
1489
+ "value": "stimpack",
1490
+ "wantsValue": true,
1491
+ "word": "stimpack"
1492
+ },
1493
+ "marker": "apply",
1494
+ "range": {
1495
+ "end": 15,
1496
+ "start": 0
1497
+ },
1498
+ "text": "apply a stimpack",
1499
+ "topLevel": true,
1500
+ "touchedBy": [
1501
+ "call2"
1502
+ ],
1503
+ "value": "apply",
1504
+ "word": "apply"
1505
+ }
1506
+ ],
1507
+ "developerTest": false,
1508
+ "metadata": {
1509
+ "opChoices": [
1510
+ {
1511
+ "op": [
1512
+ "stimpack",
1513
+ 0
1514
+ ],
1515
+ "ops": [
1516
+ [
1517
+ "a",
1518
+ 0
1519
+ ],
1520
+ [
1521
+ "apply",
1522
+ 0
1523
+ ],
1524
+ [
1525
+ "stimpack",
1526
+ 0
1527
+ ]
1528
+ ]
1529
+ },
1530
+ {
1531
+ "op": [
1532
+ "a",
1533
+ 0
1534
+ ],
1535
+ "ops": [
1536
+ [
1537
+ "a",
1538
+ 0
1539
+ ],
1540
+ [
1541
+ "apply",
1542
+ 0
1543
+ ]
1544
+ ]
1545
+ },
1546
+ {
1547
+ "op": [
1548
+ "apply",
1549
+ 0
1550
+ ],
1551
+ "ops": [
1552
+ [
1553
+ "apply",
1554
+ 0
1555
+ ]
1556
+ ]
1557
+ }
1558
+ ]
1559
+ },
1560
+ "objects": {
1561
+ "namespaced": {
1562
+ "0": {
1563
+ "apply": {
1564
+ "item": "stimpack",
1565
+ "quantity": 1
1566
+ }
1567
+ },
1568
+ "1": {
1569
+ },
1570
+ "2": {
1571
+ "children": {
1572
+ "showable": [
1573
+ "tab",
1574
+ "content"
1575
+ ]
1576
+ },
1577
+ "concepts": [
1578
+ "properties",
1579
+ "tab",
1580
+ "showable",
1581
+ "content"
1582
+ ],
1583
+ "parents": {
1584
+ "content": [
1585
+ "showable"
1586
+ ],
1587
+ "tab": [
1588
+ "showable"
1589
+ ]
1590
+ },
1591
+ "properties": {
1592
+ "handlers": {
1593
+ },
1594
+ "initHandlers": [
1595
+ ],
1596
+ "root": {
1597
+ "content": {
1598
+ },
1599
+ "showable": {
1600
+ },
1601
+ "tab": {
1602
+ }
1603
+ }
1604
+ },
1605
+ "property": {
1606
+ },
1607
+ "relations": [
1608
+ ],
1609
+ "valueToWords": {
1610
+ }
1611
+ },
1612
+ "3": {
1613
+ "mentioned": [
1614
+ ],
1615
+ "variables": {
1616
+ }
1617
+ },
1618
+ "4": {
1619
+ }
1620
+ },
1621
+ "processed": [
1622
+ {
1623
+ "context": {
1624
+ "default": true,
1625
+ "item": {
1626
+ "concept": true,
1627
+ "default": true,
1628
+ "determiner": "a",
1629
+ "marker": "stimpack",
1630
+ "modifiers": [
1631
+ "determiner"
1632
+ ],
1633
+ "number": "one",
1634
+ "pullFromContext": false,
1635
+ "range": {
1636
+ "end": 15,
1637
+ "start": 6
1638
+ },
1639
+ "text": "a stimpack",
1640
+ "types": [
1641
+ "stimpack"
1642
+ ],
1643
+ "value": "stimpack",
1644
+ "wantsValue": true,
1645
+ "word": "stimpack"
1646
+ },
1647
+ "marker": "apply",
1648
+ "range": {
1649
+ "end": 15,
1650
+ "start": 0
1651
+ },
1652
+ "text": "apply a stimpack",
1653
+ "topLevel": true,
1654
+ "touchedBy": [
1655
+ "call2"
1656
+ ],
1657
+ "value": "apply",
1658
+ "word": "apply"
1659
+ },
1660
+ "paraphrases": "apply a stimpack",
1661
+ "responses": [
1662
+ ""
1663
+ ]
1664
+ }
1665
+ ]
1666
+ },
1667
+ "paraphrases": [
1668
+ "apply a stimpack"
1669
+ ],
1670
+ "query": "apply a stimpack",
1671
+ "responses": [
1672
+ ""
1673
+ ]
1428
1674
  }
1429
1675
  ]
package/package.json CHANGED
@@ -111,8 +111,8 @@
111
111
  "table": "^6.7.1",
112
112
  "base-64": "^1.0.0",
113
113
  "argparse": "^2.0.1",
114
- "theprogrammablemind_4wp": "7.4.3-beta.8"
114
+ "theprogrammablemind_4wp": "7.4.3-beta.9"
115
115
  },
116
- "version": "7.4.3-beta.8",
116
+ "version": "7.4.3-beta.9",
117
117
  "license": "ISC"
118
118
  }