@sharpee/lang-en-us 3.1.0 → 3.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.
- package/actions/attacking.d.ts +3 -0
- package/actions/attacking.d.ts.map +1 -1
- package/actions/attacking.js +7 -0
- package/actions/attacking.js.map +1 -1
- package/actions/climbing.d.ts +1 -0
- package/actions/climbing.d.ts.map +1 -1
- package/actions/climbing.js +3 -0
- package/actions/climbing.js.map +1 -1
- package/actions/examining.d.ts +2 -0
- package/actions/examining.d.ts.map +1 -1
- package/actions/examining.js +9 -0
- package/actions/examining.js.map +1 -1
- package/actions/exiting.d.ts +2 -0
- package/actions/exiting.d.ts.map +1 -1
- package/actions/exiting.js +2 -0
- package/actions/exiting.js.map +1 -1
- package/actions/hiding.d.ts +4 -1
- package/actions/hiding.d.ts.map +1 -1
- package/actions/hiding.js +7 -2
- package/actions/hiding.js.map +1 -1
- package/actions/hunger.d.ts +26 -0
- package/actions/hunger.d.ts.map +1 -0
- package/actions/hunger.js +35 -0
- package/actions/hunger.js.map +1 -0
- package/actions/index.d.ts +83 -68
- package/actions/index.d.ts.map +1 -1
- package/actions/index.js +167 -164
- package/actions/index.js.map +1 -1
- package/actions/scoring.d.ts +19 -24
- package/actions/scoring.d.ts.map +1 -1
- package/actions/scoring.js +24 -47
- package/actions/scoring.js.map +1 -1
- package/actions/searching.d.ts +3 -1
- package/actions/searching.d.ts.map +1 -1
- package/actions/searching.js +6 -1
- package/actions/searching.js.map +1 -1
- package/assembler/english-assembler.d.ts +16 -0
- package/assembler/english-assembler.d.ts.map +1 -1
- package/assembler/english-assembler.js +33 -0
- package/assembler/english-assembler.js.map +1 -1
- package/assembler/index.d.ts +2 -1
- package/assembler/index.d.ts.map +1 -1
- package/assembler/index.js +2 -1
- package/assembler/index.js.map +1 -1
- package/data/verbs.d.ts +11 -0
- package/data/verbs.d.ts.map +1 -1
- package/data/verbs.js +82 -0
- package/data/verbs.js.map +1 -1
- package/grammar.d.ts +1 -1
- package/grammar.d.ts.map +1 -1
- package/grammar.js +1 -1
- package/grammar.js.map +1 -1
- package/index.d.ts +15 -15
- package/index.d.ts.map +1 -1
- package/index.js +31 -31
- package/index.js.map +1 -1
- package/language-provider.d.ts +22 -1
- package/language-provider.d.ts.map +1 -1
- package/language-provider.js +70 -37
- package/language-provider.js.map +1 -1
- package/npc/index.d.ts +4 -4
- package/npc/index.d.ts.map +1 -1
- package/npc/index.js +4 -4
- package/npc/index.js.map +1 -1
- package/package.json +3 -3
- package/perspective/index.d.ts +1 -1
- package/perspective/index.d.ts.map +1 -1
- package/perspective/index.js +5 -5
- package/perspective/index.js.map +1 -1
- package/pluralize.js +2 -2
- package/pluralize.js.map +1 -1
package/actions/index.js
CHANGED
|
@@ -21,198 +21,201 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.standardActionLanguage = void 0;
|
|
23
23
|
// Core actions
|
|
24
|
-
__exportStar(require("./taking"), exports);
|
|
25
|
-
__exportStar(require("./dropping"), exports);
|
|
26
|
-
__exportStar(require("./looking"), exports);
|
|
27
|
-
__exportStar(require("./inventory"), exports);
|
|
28
|
-
__exportStar(require("./examining"), exports);
|
|
29
|
-
__exportStar(require("./going"), exports);
|
|
24
|
+
__exportStar(require("./taking.js"), exports);
|
|
25
|
+
__exportStar(require("./dropping.js"), exports);
|
|
26
|
+
__exportStar(require("./looking.js"), exports);
|
|
27
|
+
__exportStar(require("./inventory.js"), exports);
|
|
28
|
+
__exportStar(require("./examining.js"), exports);
|
|
29
|
+
__exportStar(require("./going.js"), exports);
|
|
30
30
|
// Container actions
|
|
31
|
-
__exportStar(require("./opening"), exports);
|
|
32
|
-
__exportStar(require("./closing"), exports);
|
|
33
|
-
__exportStar(require("./putting"), exports);
|
|
34
|
-
__exportStar(require("./inserting"), exports);
|
|
35
|
-
__exportStar(require("./removing"), exports);
|
|
31
|
+
__exportStar(require("./opening.js"), exports);
|
|
32
|
+
__exportStar(require("./closing.js"), exports);
|
|
33
|
+
__exportStar(require("./putting.js"), exports);
|
|
34
|
+
__exportStar(require("./inserting.js"), exports);
|
|
35
|
+
__exportStar(require("./removing.js"), exports);
|
|
36
36
|
// Wearable actions
|
|
37
|
-
__exportStar(require("./wearing"), exports);
|
|
38
|
-
__exportStar(require("./taking-off"), exports);
|
|
37
|
+
__exportStar(require("./wearing.js"), exports);
|
|
38
|
+
__exportStar(require("./taking-off.js"), exports);
|
|
39
39
|
// Lock actions
|
|
40
|
-
__exportStar(require("./locking"), exports);
|
|
41
|
-
__exportStar(require("./unlocking"), exports);
|
|
40
|
+
__exportStar(require("./locking.js"), exports);
|
|
41
|
+
__exportStar(require("./unlocking.js"), exports);
|
|
42
42
|
// Movement actions
|
|
43
|
-
__exportStar(require("./entering"), exports);
|
|
44
|
-
__exportStar(require("./exiting"), exports);
|
|
45
|
-
__exportStar(require("./climbing"), exports);
|
|
43
|
+
__exportStar(require("./entering.js"), exports);
|
|
44
|
+
__exportStar(require("./exiting.js"), exports);
|
|
45
|
+
__exportStar(require("./climbing.js"), exports);
|
|
46
46
|
// Sensory actions
|
|
47
|
-
__exportStar(require("./searching"), exports);
|
|
48
|
-
__exportStar(require("./listening"), exports);
|
|
49
|
-
__exportStar(require("./smelling"), exports);
|
|
50
|
-
__exportStar(require("./touching"), exports);
|
|
51
|
-
__exportStar(require("./reading"), exports);
|
|
47
|
+
__exportStar(require("./searching.js"), exports);
|
|
48
|
+
__exportStar(require("./listening.js"), exports);
|
|
49
|
+
__exportStar(require("./smelling.js"), exports);
|
|
50
|
+
__exportStar(require("./touching.js"), exports);
|
|
51
|
+
__exportStar(require("./reading.js"), exports);
|
|
52
52
|
// Device actions
|
|
53
|
-
__exportStar(require("./switching-on"), exports);
|
|
54
|
-
__exportStar(require("./switching-off"), exports);
|
|
55
|
-
__exportStar(require("./pushing"), exports);
|
|
56
|
-
__exportStar(require("./pulling"), exports);
|
|
57
|
-
__exportStar(require("./turning"), exports);
|
|
53
|
+
__exportStar(require("./switching-on.js"), exports);
|
|
54
|
+
__exportStar(require("./switching-off.js"), exports);
|
|
55
|
+
__exportStar(require("./pushing.js"), exports);
|
|
56
|
+
__exportStar(require("./pulling.js"), exports);
|
|
57
|
+
__exportStar(require("./turning.js"), exports);
|
|
58
58
|
// Capability-dispatch actions (ADR-090)
|
|
59
|
-
__exportStar(require("./lowering"), exports);
|
|
60
|
-
__exportStar(require("./raising"), exports);
|
|
59
|
+
__exportStar(require("./lowering.js"), exports);
|
|
60
|
+
__exportStar(require("./raising.js"), exports);
|
|
61
61
|
// Social actions
|
|
62
|
-
__exportStar(require("./giving"), exports);
|
|
63
|
-
__exportStar(require("./showing"), exports);
|
|
64
|
-
__exportStar(require("./talking"), exports);
|
|
65
|
-
__exportStar(require("./asking"), exports);
|
|
66
|
-
__exportStar(require("./telling"), exports);
|
|
67
|
-
__exportStar(require("./answering"), exports);
|
|
62
|
+
__exportStar(require("./giving.js"), exports);
|
|
63
|
+
__exportStar(require("./showing.js"), exports);
|
|
64
|
+
__exportStar(require("./talking.js"), exports);
|
|
65
|
+
__exportStar(require("./asking.js"), exports);
|
|
66
|
+
__exportStar(require("./telling.js"), exports);
|
|
67
|
+
__exportStar(require("./answering.js"), exports);
|
|
68
68
|
// Interaction actions
|
|
69
|
-
__exportStar(require("./throwing"), exports);
|
|
70
|
-
__exportStar(require("./eating"), exports);
|
|
71
|
-
__exportStar(require("./drinking"), exports);
|
|
72
|
-
__exportStar(require("./attacking"), exports);
|
|
69
|
+
__exportStar(require("./throwing.js"), exports);
|
|
70
|
+
__exportStar(require("./eating.js"), exports);
|
|
71
|
+
__exportStar(require("./drinking.js"), exports);
|
|
72
|
+
__exportStar(require("./attacking.js"), exports);
|
|
73
73
|
// Concealment actions (ADR-148)
|
|
74
|
-
__exportStar(require("./hiding"), exports);
|
|
74
|
+
__exportStar(require("./hiding.js"), exports);
|
|
75
75
|
// Meta actions
|
|
76
|
-
__exportStar(require("./waiting"), exports);
|
|
77
|
-
__exportStar(require("./sleeping"), exports);
|
|
78
|
-
__exportStar(require("./scoring"), exports);
|
|
79
|
-
__exportStar(require("./
|
|
80
|
-
__exportStar(require("./
|
|
81
|
-
__exportStar(require("./
|
|
82
|
-
__exportStar(require("./
|
|
83
|
-
__exportStar(require("./
|
|
84
|
-
__exportStar(require("./
|
|
85
|
-
__exportStar(require("./
|
|
86
|
-
__exportStar(require("./
|
|
87
|
-
__exportStar(require("./
|
|
76
|
+
__exportStar(require("./waiting.js"), exports);
|
|
77
|
+
__exportStar(require("./sleeping.js"), exports);
|
|
78
|
+
__exportStar(require("./scoring.js"), exports);
|
|
79
|
+
__exportStar(require("./hunger.js"), exports);
|
|
80
|
+
__exportStar(require("./help.js"), exports);
|
|
81
|
+
__exportStar(require("./about.js"), exports);
|
|
82
|
+
__exportStar(require("./version.js"), exports);
|
|
83
|
+
__exportStar(require("./saving.js"), exports);
|
|
84
|
+
__exportStar(require("./restoring.js"), exports);
|
|
85
|
+
__exportStar(require("./quitting.js"), exports);
|
|
86
|
+
__exportStar(require("./restarting.js"), exports);
|
|
87
|
+
__exportStar(require("./undoing.js"), exports);
|
|
88
|
+
__exportStar(require("./again.js"), exports);
|
|
88
89
|
// Import all action language definitions
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
const
|
|
90
|
+
const taking_js_1 = require("./taking.js");
|
|
91
|
+
const dropping_js_1 = require("./dropping.js");
|
|
92
|
+
const looking_js_1 = require("./looking.js");
|
|
93
|
+
const inventory_js_1 = require("./inventory.js");
|
|
94
|
+
const examining_js_1 = require("./examining.js");
|
|
95
|
+
const going_js_1 = require("./going.js");
|
|
96
|
+
const opening_js_1 = require("./opening.js");
|
|
97
|
+
const closing_js_1 = require("./closing.js");
|
|
98
|
+
const putting_js_1 = require("./putting.js");
|
|
99
|
+
const inserting_js_1 = require("./inserting.js");
|
|
100
|
+
const removing_js_1 = require("./removing.js");
|
|
101
|
+
const wearing_js_1 = require("./wearing.js");
|
|
102
|
+
const taking_off_js_1 = require("./taking-off.js");
|
|
103
|
+
const locking_js_1 = require("./locking.js");
|
|
104
|
+
const unlocking_js_1 = require("./unlocking.js");
|
|
105
|
+
const cutting_js_1 = require("./cutting.js");
|
|
106
|
+
const digging_js_1 = require("./digging.js");
|
|
107
|
+
const entering_js_1 = require("./entering.js");
|
|
108
|
+
const exiting_js_1 = require("./exiting.js");
|
|
109
|
+
const climbing_js_1 = require("./climbing.js");
|
|
110
|
+
const searching_js_1 = require("./searching.js");
|
|
111
|
+
const listening_js_1 = require("./listening.js");
|
|
112
|
+
const smelling_js_1 = require("./smelling.js");
|
|
113
|
+
const touching_js_1 = require("./touching.js");
|
|
114
|
+
const reading_js_1 = require("./reading.js");
|
|
115
|
+
const switching_on_js_1 = require("./switching-on.js");
|
|
116
|
+
const switching_off_js_1 = require("./switching-off.js");
|
|
117
|
+
const pushing_js_1 = require("./pushing.js");
|
|
118
|
+
const pulling_js_1 = require("./pulling.js");
|
|
119
|
+
const turning_js_1 = require("./turning.js");
|
|
119
120
|
// Capability-dispatch actions (ADR-090)
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
const
|
|
121
|
+
const lowering_js_1 = require("./lowering.js");
|
|
122
|
+
const raising_js_1 = require("./raising.js");
|
|
123
|
+
const giving_js_1 = require("./giving.js");
|
|
124
|
+
const showing_js_1 = require("./showing.js");
|
|
125
|
+
const talking_js_1 = require("./talking.js");
|
|
126
|
+
const asking_js_1 = require("./asking.js");
|
|
127
|
+
const telling_js_1 = require("./telling.js");
|
|
128
|
+
const answering_js_1 = require("./answering.js");
|
|
129
|
+
const throwing_js_1 = require("./throwing.js");
|
|
130
|
+
const eating_js_1 = require("./eating.js");
|
|
131
|
+
const drinking_js_1 = require("./drinking.js");
|
|
132
|
+
const attacking_js_1 = require("./attacking.js");
|
|
133
|
+
const hiding_js_1 = require("./hiding.js");
|
|
134
|
+
const waiting_js_1 = require("./waiting.js");
|
|
135
|
+
const sleeping_js_1 = require("./sleeping.js");
|
|
136
|
+
const scoring_js_1 = require("./scoring.js");
|
|
137
|
+
const hunger_js_1 = require("./hunger.js");
|
|
138
|
+
const help_js_1 = require("./help.js");
|
|
139
|
+
const about_js_1 = require("./about.js");
|
|
140
|
+
const version_js_1 = require("./version.js");
|
|
141
|
+
const saving_js_1 = require("./saving.js");
|
|
142
|
+
const restoring_js_1 = require("./restoring.js");
|
|
143
|
+
const quitting_js_1 = require("./quitting.js");
|
|
144
|
+
const restarting_js_1 = require("./restarting.js");
|
|
145
|
+
const undoing_js_1 = require("./undoing.js");
|
|
146
|
+
const again_js_1 = require("./again.js");
|
|
145
147
|
/**
|
|
146
148
|
* All standard action language definitions
|
|
147
149
|
*/
|
|
148
150
|
exports.standardActionLanguage = [
|
|
149
151
|
// Core actions
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
taking_js_1.takingLanguage,
|
|
153
|
+
dropping_js_1.droppingLanguage,
|
|
154
|
+
looking_js_1.lookingLanguage,
|
|
155
|
+
inventory_js_1.inventoryLanguage,
|
|
156
|
+
examining_js_1.examiningLanguage,
|
|
157
|
+
going_js_1.goingLanguage,
|
|
156
158
|
// Container actions
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
opening_js_1.openingLanguage,
|
|
160
|
+
closing_js_1.closingLanguage,
|
|
161
|
+
putting_js_1.puttingLanguage,
|
|
162
|
+
inserting_js_1.insertingLanguage,
|
|
163
|
+
removing_js_1.removingLanguage,
|
|
162
164
|
// Wearable actions
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
wearing_js_1.wearingLanguage,
|
|
166
|
+
taking_off_js_1.takingOffLanguage,
|
|
165
167
|
// Lock actions
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
locking_js_1.lockingLanguage,
|
|
169
|
+
unlocking_js_1.unlockingLanguage,
|
|
170
|
+
cutting_js_1.cuttingLanguage,
|
|
171
|
+
digging_js_1.diggingLanguage,
|
|
170
172
|
// Movement actions
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
entering_js_1.enteringLanguage,
|
|
174
|
+
exiting_js_1.exitingLanguage,
|
|
175
|
+
climbing_js_1.climbingLanguage,
|
|
174
176
|
// Sensory actions
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
searching_js_1.searchingLanguage,
|
|
178
|
+
listening_js_1.listeningLanguage,
|
|
179
|
+
smelling_js_1.smellingLanguage,
|
|
180
|
+
touching_js_1.touchingLanguage,
|
|
181
|
+
reading_js_1.readingLanguage,
|
|
180
182
|
// Device actions
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
switching_on_js_1.switchingOnLanguage,
|
|
184
|
+
switching_off_js_1.switchingOffLanguage,
|
|
185
|
+
pushing_js_1.pushingLanguage,
|
|
186
|
+
pulling_js_1.pullingLanguage,
|
|
187
|
+
turning_js_1.turningLanguage,
|
|
186
188
|
// Capability-dispatch actions (ADR-090)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
lowering_js_1.loweringLanguage,
|
|
190
|
+
raising_js_1.raisingLanguage,
|
|
189
191
|
// Social actions
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
giving_js_1.givingLanguage,
|
|
193
|
+
showing_js_1.showingLanguage,
|
|
194
|
+
talking_js_1.talkingLanguage,
|
|
195
|
+
asking_js_1.askingLanguage,
|
|
196
|
+
telling_js_1.tellingLanguage,
|
|
197
|
+
answering_js_1.answeringLanguage,
|
|
196
198
|
// Interaction actions
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
throwing_js_1.throwingLanguage,
|
|
200
|
+
eating_js_1.eatingLanguage,
|
|
201
|
+
drinking_js_1.drinkingLanguage,
|
|
202
|
+
attacking_js_1.attackingLanguage,
|
|
201
203
|
// Meta actions
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
waiting_js_1.waitingLanguage,
|
|
205
|
+
sleeping_js_1.sleepingLanguage,
|
|
206
|
+
scoring_js_1.scoringLanguage,
|
|
207
|
+
hunger_js_1.hungerLanguage,
|
|
208
|
+
help_js_1.helpLanguage,
|
|
209
|
+
about_js_1.aboutLanguage,
|
|
210
|
+
version_js_1.versionLanguage,
|
|
211
|
+
saving_js_1.savingLanguage,
|
|
212
|
+
restoring_js_1.restoringLanguage,
|
|
213
|
+
quitting_js_1.quittingLanguage,
|
|
214
|
+
restarting_js_1.restartingLanguage,
|
|
215
|
+
undoing_js_1.undoingLanguage,
|
|
216
|
+
again_js_1.againLanguage,
|
|
214
217
|
// Concealment actions (ADR-148)
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
hiding_js_1.hidingLanguage,
|
|
219
|
+
hiding_js_1.revealingLanguage,
|
|
217
220
|
];
|
|
218
221
|
//# sourceMappingURL=index.js.map
|
package/actions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;AAEH,eAAe;AACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/index.ts"],"names":[],"mappings":"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"}
|
package/actions/scoring.d.ts
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Language content for scoring action (ADR-
|
|
2
|
+
* Language content for scoring action (ADR-260, ADR-262).
|
|
3
|
+
*
|
|
4
|
+
* ADR-260 D4 deleted the five `rank_*` lines, the four progress lines, both
|
|
5
|
+
* achievement lines, `scoring_not_enabled` (a duplicate of `no_scoring`), and
|
|
6
|
+
* the whole `scoringSystemMessages` block — thirteen in all. Every one of them
|
|
7
|
+
* was percentage-band prose or a rank name stdlib invented on the author's
|
|
8
|
+
* behalf.
|
|
9
|
+
*
|
|
10
|
+
* A rank's display text still comes from the author's `RankDefinition.name`,
|
|
11
|
+
* carried into `{rank}` as a template parameter. **No message here may ever
|
|
12
|
+
* name a specific rank again** — `{rank}` is the author's, not ours.
|
|
13
|
+
*
|
|
14
|
+
* `promotion` (ADR-262 D3) is the overridable platform fallback a crossing
|
|
15
|
+
* speaks when a rung carries no author `says` phrase: silence is no longer the
|
|
16
|
+
* default, so a phraseless rung renders this line (overridable via
|
|
17
|
+
* `override message scoring-promotion`). It names no rank — `{rank}` is the
|
|
18
|
+
* author's name, exactly as `score_with_rank` uses it.
|
|
3
19
|
*/
|
|
4
20
|
export declare const scoringLanguage: {
|
|
5
21
|
actionId: string;
|
|
6
22
|
patterns: string[];
|
|
7
23
|
messages: {
|
|
8
24
|
no_scoring: string;
|
|
9
|
-
scoring_not_enabled: string;
|
|
10
|
-
score_display: string;
|
|
11
25
|
score_simple: string;
|
|
26
|
+
score_display: string;
|
|
12
27
|
score_with_rank: string;
|
|
13
28
|
perfect_score: string;
|
|
14
|
-
|
|
15
|
-
rank_amateur: string;
|
|
16
|
-
rank_proficient: string;
|
|
17
|
-
rank_expert: string;
|
|
18
|
-
rank_master: string;
|
|
19
|
-
with_achievements: string;
|
|
20
|
-
no_achievements: string;
|
|
21
|
-
early_game: string;
|
|
22
|
-
mid_game: string;
|
|
23
|
-
late_game: string;
|
|
24
|
-
game_complete: string;
|
|
29
|
+
promotion: string;
|
|
25
30
|
};
|
|
26
31
|
help: {
|
|
27
32
|
description: string;
|
|
@@ -29,14 +34,4 @@ export declare const scoringLanguage: {
|
|
|
29
34
|
summary: string;
|
|
30
35
|
};
|
|
31
36
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Scoring system messages (ADR-085)
|
|
34
|
-
*
|
|
35
|
-
* These are registered with TextService for i18n support.
|
|
36
|
-
* Stories can override by registering their own messages with the same IDs.
|
|
37
|
-
*
|
|
38
|
-
* Note: TextService integration with dynamic messages (functions) is a future enhancement.
|
|
39
|
-
* For now, messages are static strings.
|
|
40
|
-
*/
|
|
41
|
-
export declare const scoringSystemMessages: Record<string, string>;
|
|
42
37
|
//# sourceMappingURL=scoring.d.ts.map
|
package/actions/scoring.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoring.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/scoring.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scoring.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/scoring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CA4B3B,CAAC"}
|
package/actions/scoring.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Language content for scoring action (ADR-
|
|
3
|
+
* Language content for scoring action (ADR-260, ADR-262).
|
|
4
|
+
*
|
|
5
|
+
* ADR-260 D4 deleted the five `rank_*` lines, the four progress lines, both
|
|
6
|
+
* achievement lines, `scoring_not_enabled` (a duplicate of `no_scoring`), and
|
|
7
|
+
* the whole `scoringSystemMessages` block — thirteen in all. Every one of them
|
|
8
|
+
* was percentage-band prose or a rank name stdlib invented on the author's
|
|
9
|
+
* behalf.
|
|
10
|
+
*
|
|
11
|
+
* A rank's display text still comes from the author's `RankDefinition.name`,
|
|
12
|
+
* carried into `{rank}` as a template parameter. **No message here may ever
|
|
13
|
+
* name a specific rank again** — `{rank}` is the author's, not ours.
|
|
14
|
+
*
|
|
15
|
+
* `promotion` (ADR-262 D3) is the overridable platform fallback a crossing
|
|
16
|
+
* speaks when a rung carries no author `says` phrase: silence is no longer the
|
|
17
|
+
* default, so a phraseless rung renders this line (overridable via
|
|
18
|
+
* `override message scoring-promotion`). It names no rank — `{rank}` is the
|
|
19
|
+
* author's name, exactly as `score_with_rank` uses it.
|
|
4
20
|
*/
|
|
5
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
22
|
+
exports.scoringLanguage = void 0;
|
|
7
23
|
exports.scoringLanguage = {
|
|
8
24
|
actionId: 'if.action.scoring',
|
|
9
25
|
patterns: [
|
|
@@ -11,29 +27,16 @@ exports.scoringLanguage = {
|
|
|
11
27
|
'points'
|
|
12
28
|
],
|
|
13
29
|
messages: {
|
|
14
|
-
//
|
|
30
|
+
// No scoring installed — now reachable for the first time (ADR-260 D3).
|
|
15
31
|
'no_scoring': "This isn't that kind of game.",
|
|
16
|
-
//
|
|
17
|
-
'scoring_not_enabled': "There is no score in this game.",
|
|
18
|
-
// Score display messages
|
|
19
|
-
'score_display': "{You} {have} scored {score} out of a possible {maxScore}, in {moves} turns.",
|
|
32
|
+
// Score display messages. `{rank}` is the AUTHOR's rank name.
|
|
20
33
|
'score_simple': "{Your} score is {score} points.",
|
|
34
|
+
'score_display': "{You} {have} scored {score} out of a possible {maxScore}.",
|
|
21
35
|
'score_with_rank': "{You} {have} scored {score} out of {maxScore}, earning {you} the rank of {rank}.",
|
|
22
36
|
'perfect_score': "{You} {have} achieved a perfect score of {maxScore} points!",
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
'
|
|
26
|
-
'rank_proficient': "{You} {are} ranked as a Proficient adventurer.",
|
|
27
|
-
'rank_expert': "{You} {are} ranked as an Expert adventurer.",
|
|
28
|
-
'rank_master': "{You} {are} ranked as a Master adventurer!",
|
|
29
|
-
// Achievement messages
|
|
30
|
-
'with_achievements': "{You} {have} earned the following achievements: {achievements}.",
|
|
31
|
-
'no_achievements': "{You} {have}n't earned any special achievements yet.",
|
|
32
|
-
// Progress messages
|
|
33
|
-
'early_game': "{You're} just getting started!",
|
|
34
|
-
'mid_game': "{You're} making good progress.",
|
|
35
|
-
'late_game': "{You're} nearing the end of {your} adventure.",
|
|
36
|
-
'game_complete': "{You} {have} completed the game!"
|
|
37
|
+
// ADR-262 D3 fallback: spoken on a promotion when the rung has no author
|
|
38
|
+
// `says` phrase. `{rank}` is the author's rank name. Overridable.
|
|
39
|
+
'promotion': "{You} {have} risen to the rank of {rank}."
|
|
37
40
|
},
|
|
38
41
|
help: {
|
|
39
42
|
description: 'Display your current score and game progress.',
|
|
@@ -41,30 +44,4 @@ exports.scoringLanguage = {
|
|
|
41
44
|
summary: 'SCORE - Display your current score and game progress. Example: SCORE'
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Scoring system messages (ADR-085)
|
|
46
|
-
*
|
|
47
|
-
* These are registered with TextService for i18n support.
|
|
48
|
-
* Stories can override by registering their own messages with the same IDs.
|
|
49
|
-
*
|
|
50
|
-
* Note: TextService integration with dynamic messages (functions) is a future enhancement.
|
|
51
|
-
* For now, messages are static strings.
|
|
52
|
-
*/
|
|
53
|
-
exports.scoringSystemMessages = {
|
|
54
|
-
// Score change messages (use {points} placeholder)
|
|
55
|
-
'if.score.gained': '{Your} score just increased by {points} points.',
|
|
56
|
-
'if.score.lost': '{You} just lost {points} points!',
|
|
57
|
-
'if.score.display': '{You} {have} scored {score} out of {maxScore}, earning {you} the rank of {rank}.',
|
|
58
|
-
// No-scoring response
|
|
59
|
-
'if.score.no_scoring': "This isn't that kind of game.",
|
|
60
|
-
// Default rank names
|
|
61
|
-
'if.rank.beginner': 'Beginner',
|
|
62
|
-
'if.rank.novice': 'Novice',
|
|
63
|
-
'if.rank.amateur': 'Amateur',
|
|
64
|
-
'if.rank.experienced': 'Experienced',
|
|
65
|
-
'if.rank.proficient': 'Proficient',
|
|
66
|
-
'if.rank.expert': 'Expert',
|
|
67
|
-
'if.rank.master': 'Master',
|
|
68
|
-
'if.rank.winner': 'Winner'
|
|
69
|
-
};
|
|
70
47
|
//# sourceMappingURL=scoring.js.map
|
package/actions/scoring.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoring.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/scoring.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"scoring.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/scoring.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAEU,QAAA,eAAe,GAAG;IAC7B,QAAQ,EAAE,mBAAmB;IAE7B,QAAQ,EAAE;QACR,OAAO;QACP,QAAQ;KACT;IAED,QAAQ,EAAE;QACR,wEAAwE;QACxE,YAAY,EAAE,+BAA+B;QAE7C,8DAA8D;QAC9D,cAAc,EAAE,iCAAiC;QACjD,eAAe,EAAE,2DAA2D;QAC5E,iBAAiB,EAAE,kFAAkF;QACrG,eAAe,EAAE,6DAA6D;QAE9E,yEAAyE;QACzE,kEAAkE;QAClE,WAAW,EAAE,2CAA2C;KACzD;IAED,IAAI,EAAE;QACJ,WAAW,EAAE,+CAA+C;QAC5D,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,sEAAsE;KAChF;CACF,CAAC"}
|
package/actions/searching.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export declare const searchingLanguage: {
|
|
|
15
15
|
supporter_contents: string;
|
|
16
16
|
searched_location: string;
|
|
17
17
|
searched_object: string;
|
|
18
|
-
|
|
18
|
+
found_concealed_in_container: string;
|
|
19
|
+
found_concealed_on_supporter: string;
|
|
20
|
+
found_concealed_here: string;
|
|
19
21
|
};
|
|
20
22
|
help: {
|
|
21
23
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searching.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/searching.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"searching.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/searching.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;CAyC7B,CAAC"}
|
package/actions/searching.js
CHANGED
|
@@ -29,7 +29,12 @@ exports.searchingLanguage = {
|
|
|
29
29
|
'supporter_contents': "On {the target} {you} {see}: {items}.",
|
|
30
30
|
'searched_location': "{You} {search} around carefully.",
|
|
31
31
|
'searched_object': "{You} {search} {the target} thoroughly.",
|
|
32
|
-
|
|
32
|
+
// Per-shape concealment-reveal messages: the position lives in the template
|
|
33
|
+
// text, never as a bare-string preposition param the assembler would
|
|
34
|
+
// article-decorate ("Hidden an on…").
|
|
35
|
+
'found_concealed_in_container': "Hidden inside {the target}, {you} {discover}: {items}.",
|
|
36
|
+
'found_concealed_on_supporter': "Hidden on {the target}, {you} {discover}: {items}.",
|
|
37
|
+
'found_concealed_here': "Hidden here, {you} {discover}: {items}."
|
|
33
38
|
},
|
|
34
39
|
help: {
|
|
35
40
|
description: 'Search objects or locations for hidden items or additional details.',
|
package/actions/searching.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searching.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/searching.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,qBAAqB;IAE/B,QAAQ,EAAE;QACR,oBAAoB;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,0BAA0B;QAC1B,qBAAqB;QACrB,wBAAwB;QACxB,6BAA6B;QAC7B,6BAA6B;KAC9B;IAED,QAAQ,EAAE;QACR,iBAAiB;QACjB,aAAa,EAAE,8CAA8C;QAC7D,eAAe,EAAE,gDAAgD;QACjE,kBAAkB,EAAE,kDAAkD;QAEtE,mBAAmB;QACnB,iBAAiB,EAAE,mCAAmC;QACtD,aAAa,EAAE,4BAA4B;QAC3C,iBAAiB,EAAE,iDAAiD;QACpE,oBAAoB,EAAE,uCAAuC;QAC7D,oBAAoB,EAAE,uCAAuC;QAC7D,mBAAmB,EAAE,kCAAkC;QACvD,iBAAiB,EAAE,yCAAyC;QAC5D,
|
|
1
|
+
{"version":3,"file":"searching.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/searching.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,qBAAqB;IAE/B,QAAQ,EAAE;QACR,oBAAoB;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,0BAA0B;QAC1B,qBAAqB;QACrB,wBAAwB;QACxB,6BAA6B;QAC7B,6BAA6B;KAC9B;IAED,QAAQ,EAAE;QACR,iBAAiB;QACjB,aAAa,EAAE,8CAA8C;QAC7D,eAAe,EAAE,gDAAgD;QACjE,kBAAkB,EAAE,kDAAkD;QAEtE,mBAAmB;QACnB,iBAAiB,EAAE,mCAAmC;QACtD,aAAa,EAAE,4BAA4B;QAC3C,iBAAiB,EAAE,iDAAiD;QACpE,oBAAoB,EAAE,uCAAuC;QAC7D,oBAAoB,EAAE,uCAAuC;QAC7D,mBAAmB,EAAE,kCAAkC;QACvD,iBAAiB,EAAE,yCAAyC;QAC5D,4EAA4E;QAC5E,qEAAqE;QACrE,sCAAsC;QACtC,8BAA8B,EAAE,wDAAwD;QACxF,8BAA8B,EAAE,oDAAoD;QACpF,sBAAsB,EAAE,yCAAyC;KAClE;IAED,IAAI,EAAE;QACJ,WAAW,EAAE,qEAAqE;QAClF,QAAQ,EAAE,mEAAmE;QAC7E,OAAO,EAAE,2GAA2G;KACrH;CACF,CAAC"}
|
|
@@ -34,6 +34,22 @@ import { ITextBlock } from '@sharpee/text-blocks';
|
|
|
34
34
|
* wires per-event trees.
|
|
35
35
|
*/
|
|
36
36
|
export declare const ASSEMBLER_DEFAULT_BLOCK_KEY: "action.result";
|
|
37
|
+
/** The five case forms of a registered pronoun set (ADR-242 D7). */
|
|
38
|
+
export interface PronounSetForms {
|
|
39
|
+
subject: string;
|
|
40
|
+
object: string;
|
|
41
|
+
possessive: string;
|
|
42
|
+
possessivePronoun: string;
|
|
43
|
+
reflexive: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Register a named pronoun set (ADR-242 D7). Called by the language
|
|
47
|
+
* provider's `registerPronounSet` (the loader's `extendLanguage` probe);
|
|
48
|
+
* a re-registration overwrites (last-wins, the `addMessage` convention).
|
|
49
|
+
* @param name the set name as declared (`define pronouns ze`)
|
|
50
|
+
* @param forms the five case forms
|
|
51
|
+
*/
|
|
52
|
+
export declare function registerPronounSet(name: string, forms: PronounSetForms): void;
|
|
37
53
|
/**
|
|
38
54
|
* Capitalize the first alphabetic character of a sentence. Exposed as the Case
|
|
39
55
|
* authority; the explicit `{capitalize …}` template hint is wired to it by the
|