@sharpee/lang-en-us 3.3.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/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 +15 -13
- package/actions/index.d.ts.map +1 -1
- package/actions/index.js +3 -0
- 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/package.json +3 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language content for the hunger meter (ADR-263 / ADR-262 D3).
|
|
3
|
+
*
|
|
4
|
+
* Hunger contributes no verb — like scoring, `if.action.hunger` is only a
|
|
5
|
+
* namespace for the crossing fallback line. `crossed` is the overridable
|
|
6
|
+
* platform sentence a hunger band speaks when the author gave the rung no `says`
|
|
7
|
+
* phrase (silence is explicit, ADR-262 D3). It is deliberately generic — an
|
|
8
|
+
* author who wants band-specific prose writes `says <key>`; this is the neutral
|
|
9
|
+
* escalation shown when they did not. (It avoids interpolating the band word,
|
|
10
|
+
* which the assembler would article as a noun — "a hungry" — the same cosmetic
|
|
11
|
+
* quirk scoring's `{rank}` has; a per-band line belongs in the author's `says`.)
|
|
12
|
+
*/
|
|
13
|
+
export declare const hungerLanguage: {
|
|
14
|
+
actionId: string;
|
|
15
|
+
patterns: never[];
|
|
16
|
+
messages: {
|
|
17
|
+
crossed: string;
|
|
18
|
+
starved: string;
|
|
19
|
+
};
|
|
20
|
+
help: {
|
|
21
|
+
description: string;
|
|
22
|
+
examples: string;
|
|
23
|
+
summary: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=hunger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hunger.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/hunger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAsB1B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Language content for the hunger meter (ADR-263 / ADR-262 D3).
|
|
4
|
+
*
|
|
5
|
+
* Hunger contributes no verb — like scoring, `if.action.hunger` is only a
|
|
6
|
+
* namespace for the crossing fallback line. `crossed` is the overridable
|
|
7
|
+
* platform sentence a hunger band speaks when the author gave the rung no `says`
|
|
8
|
+
* phrase (silence is explicit, ADR-262 D3). It is deliberately generic — an
|
|
9
|
+
* author who wants band-specific prose writes `says <key>`; this is the neutral
|
|
10
|
+
* escalation shown when they did not. (It avoids interpolating the band word,
|
|
11
|
+
* which the assembler would article as a noun — "a hungry" — the same cosmetic
|
|
12
|
+
* quirk scoring's `{rank}` has; a per-band line belongs in the author's `says`.)
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.hungerLanguage = void 0;
|
|
16
|
+
exports.hungerLanguage = {
|
|
17
|
+
actionId: 'if.action.hunger',
|
|
18
|
+
patterns: [],
|
|
19
|
+
messages: {
|
|
20
|
+
// ADR-262 D3 fallback: spoken on a hunger crossing when the rung has no
|
|
21
|
+
// `says`. Overridable via `override message hunger-crossed`.
|
|
22
|
+
'crossed': "The hunger sharpens.",
|
|
23
|
+
// ADR-263 D1 `fatal`: the death line when severity reaches the threshold.
|
|
24
|
+
// Routed through the death event's messageId (like combat's player_died),
|
|
25
|
+
// so it is lang-en-us prose, not a hardcoded string, and is overridable via
|
|
26
|
+
// `override message hunger-starved`.
|
|
27
|
+
'starved': "{You} {have} starved to death."
|
|
28
|
+
},
|
|
29
|
+
help: {
|
|
30
|
+
description: 'Hunger meter (ADR-263).',
|
|
31
|
+
examples: '',
|
|
32
|
+
summary: 'Hunger meter — internal.'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=hunger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hunger.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/hunger.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEU,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,kBAAkB;IAE5B,QAAQ,EAAE,EAAE;IAEZ,QAAQ,EAAE;QACR,wEAAwE;QACxE,6DAA6D;QAC7D,SAAS,EAAE,sBAAsB;QAEjC,0EAA0E;QAC1E,0EAA0E;QAC1E,4EAA4E;QAC5E,qCAAqC;QACrC,SAAS,EAAE,gCAAgC;KAC5C;IAED,IAAI,EAAE;QACJ,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,0BAA0B;KACpC;CACF,CAAC"}
|
package/actions/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './hiding.js';
|
|
|
47
47
|
export * from './waiting.js';
|
|
48
48
|
export * from './sleeping.js';
|
|
49
49
|
export * from './scoring.js';
|
|
50
|
+
export * from './hunger.js';
|
|
50
51
|
export * from './help.js';
|
|
51
52
|
export * from './about.js';
|
|
52
53
|
export * from './version.js';
|
|
@@ -1128,22 +1129,23 @@ export declare const standardActionLanguage: ({
|
|
|
1128
1129
|
patterns: string[];
|
|
1129
1130
|
messages: {
|
|
1130
1131
|
no_scoring: string;
|
|
1131
|
-
scoring_not_enabled: string;
|
|
1132
|
-
score_display: string;
|
|
1133
1132
|
score_simple: string;
|
|
1133
|
+
score_display: string;
|
|
1134
1134
|
score_with_rank: string;
|
|
1135
1135
|
perfect_score: string;
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1136
|
+
promotion: string;
|
|
1137
|
+
};
|
|
1138
|
+
help: {
|
|
1139
|
+
description: string;
|
|
1140
|
+
examples: string;
|
|
1141
|
+
summary: string;
|
|
1142
|
+
};
|
|
1143
|
+
} | {
|
|
1144
|
+
actionId: string;
|
|
1145
|
+
patterns: never[];
|
|
1146
|
+
messages: {
|
|
1147
|
+
crossed: string;
|
|
1148
|
+
starved: string;
|
|
1147
1149
|
};
|
|
1148
1150
|
help: {
|
|
1149
1151
|
description: string;
|
package/actions/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee_v2/packages/lang-en-us/src/actions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAG9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAG9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgFlC,CAAC"}
|
package/actions/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./hiding.js"), exports);
|
|
|
76
76
|
__exportStar(require("./waiting.js"), exports);
|
|
77
77
|
__exportStar(require("./sleeping.js"), exports);
|
|
78
78
|
__exportStar(require("./scoring.js"), exports);
|
|
79
|
+
__exportStar(require("./hunger.js"), exports);
|
|
79
80
|
__exportStar(require("./help.js"), exports);
|
|
80
81
|
__exportStar(require("./about.js"), exports);
|
|
81
82
|
__exportStar(require("./version.js"), exports);
|
|
@@ -133,6 +134,7 @@ const hiding_js_1 = require("./hiding.js");
|
|
|
133
134
|
const waiting_js_1 = require("./waiting.js");
|
|
134
135
|
const sleeping_js_1 = require("./sleeping.js");
|
|
135
136
|
const scoring_js_1 = require("./scoring.js");
|
|
137
|
+
const hunger_js_1 = require("./hunger.js");
|
|
136
138
|
const help_js_1 = require("./help.js");
|
|
137
139
|
const about_js_1 = require("./about.js");
|
|
138
140
|
const version_js_1 = require("./version.js");
|
|
@@ -202,6 +204,7 @@ exports.standardActionLanguage = [
|
|
|
202
204
|
waiting_js_1.waitingLanguage,
|
|
203
205
|
sleeping_js_1.sleepingLanguage,
|
|
204
206
|
scoring_js_1.scoringLanguage,
|
|
207
|
+
hunger_js_1.hungerLanguage,
|
|
205
208
|
help_js_1.helpLanguage,
|
|
206
209
|
about_js_1.aboutLanguage,
|
|
207
210
|
version_js_1.versionLanguage,
|
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,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA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ACtB,8BAAgB;IAChB,0BAAc;IACd,8BAAgB;IAChB,gCAAiB;IAEjB,eAAe;IACf,4BAAe;IACf,8BAAgB;IAChB,4BAAe;IACf,sBAAY;IACZ,wBAAa;IACb,4BAAe;IACf,0BAAc;IACd,gCAAiB;IACjB,8BAAgB;IAChB,kCAAkB;IAClB,4BAAe;IACf,wBAAa;IACb,gCAAgC;IAChC,0BAAc;IACd,6BAAiB;CAClB,CAAC"}
|
|
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,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAE3B,oBAAoB;AACpB,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAE9B,mBAAmB;AACnB,+CAA6B;AAC7B,kDAAgC;AAEhC,eAAe;AACf,+CAA6B;AAC7B,iDAA+B;AAE/B,mBAAmB;AACnB,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B;AAE9B,kBAAkB;AAClB,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAE7B,iBAAiB;AACjB,oDAAkC;AAClC,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAE7B,wCAAwC;AACxC,gDAA8B;AAC9B,+CAA6B;AAE7B,iBAAiB;AACjB,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAE/B,sBAAsB;AACtB,gDAA8B;AAC9B,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAE/B,gCAAgC;AAChC,8CAA4B;AAE5B,eAAe;AACf,+CAA6B;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IACf,4BAAe;IACf,gCAAiB;IACjB,8BAAgB;IAEhB,mBAAmB;IACnB,4BAAe;IACf,iCAAiB;IAEjB,eAAe;IACf,4BAAe;IACf,gCAAiB;IACjB,4BAAe;IACf,4BAAe;IAEf,mBAAmB;IACnB,8BAAgB;IAChB,4BAAe;IACf,8BAAgB;IAEhB,kBAAkB;IAClB,gCAAiB;IACjB,gCAAiB;IACjB,8BAAgB;IAChB,8BAAgB;IAChB,4BAAe;IAEf,iBAAiB;IACjB,qCAAmB;IACnB,uCAAoB;IACpB,4BAAe;IACf,4BAAe;IACf,4BAAe;IAEf,wCAAwC;IACxC,8BAAgB;IAChB,4BAAe;IAEf,iBAAiB;IACjB,0BAAc;IACd,4BAAe;IACf,4BAAe;IACf,0BAAc;IACd,4BAAe;IACf,gCAAiB;IAEjB,sBAAsB;IACtB,8BAAgB;IAChB,0BAAc;IACd,8BAAgB;IAChB,gCAAiB;IAEjB,eAAe;IACf,4BAAe;IACf,8BAAgB;IAChB,4BAAe;IACf,0BAAc;IACd,sBAAY;IACZ,wBAAa;IACb,4BAAe;IACf,0BAAc;IACd,gCAAiB;IACjB,8BAAgB;IAChB,kCAAkB;IAClB,4BAAe;IACf,wBAAa;IACb,gCAAgC;IAChC,0BAAc;IACd,6BAAiB;CAClB,CAAC"}
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharpee/lang-en-us",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "English language implementation for Sharpee IF Engine",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sharpee/core": "^3.
|
|
16
|
-
"@sharpee/if-domain": "^3.
|
|
15
|
+
"@sharpee/core": "^3.5.0",
|
|
16
|
+
"@sharpee/if-domain": "^3.5.0"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"interactive-fiction",
|