stage: the explore row reads "new find"
Since pokered-unique8-v7 the explore feed kind carries four adapter rules -- new ground, an exit, a conversation indoors, an item picked up -- and "new place" was true of the first two only. The per-game copy now names what all four are; the feed protocol and the kind set are unchanged.
This commit is contained in:
parent
52811bf512
commit
2d288b0146
2 changed files with 5 additions and 2 deletions
|
|
@ -79,8 +79,11 @@ export const pokemonRed: GameConfig = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Ticker rows are noun phrases, so a row reads as a log line rather than as narration.
|
// Ticker rows are noun phrases, so a row reads as a log line rather than as narration.
|
||||||
|
// `explore` carries four adapter rules since pokered-unique8-v7 -- new ground, an exit, a
|
||||||
|
// conversation indoors, an item picked up (docs/rewards-learning.md) -- so its copy names
|
||||||
|
// what all four are rather than the first of them.
|
||||||
rewardCopy: {
|
rewardCopy: {
|
||||||
explore: { label: 'new place', tier: 'quiet', dedupeMs: 20_000, collapsedNoun: 'new places' },
|
explore: { label: 'new find', tier: 'quiet', dedupeMs: 20_000, collapsedNoun: 'new finds' },
|
||||||
area: { label: 'new area', tier: 'notable', dedupeMs: 20_000, collapsedNoun: 'new areas' },
|
area: { label: 'new area', tier: 'notable', dedupeMs: 20_000, collapsedNoun: 'new areas' },
|
||||||
wildwin: { label: 'wild win', tier: 'quiet', dedupeMs: 20_000, collapsedNoun: 'wild wins' },
|
wildwin: { label: 'wild win', tier: 'quiet', dedupeMs: 20_000, collapsedNoun: 'wild wins' },
|
||||||
trainer: { label: 'trainer beaten', tier: 'notable', dedupeMs: 0 },
|
trainer: { label: 'trainer beaten', tier: 'notable', dedupeMs: 0 },
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ test('exploration ticks collapse into one counted row inside the dedupe window',
|
||||||
assert.equal(queue.items().length, 1, 'three ticks, one row');
|
assert.equal(queue.items().length, 1, 'three ticks, one row');
|
||||||
const row = queue.items()[0];
|
const row = queue.items()[0];
|
||||||
assert.equal(row?.count, 3);
|
assert.equal(row?.count, 3);
|
||||||
assert.equal(row?.label, '3 new places');
|
assert.equal(row?.label, '3 new finds');
|
||||||
assert.ok(Math.abs((row?.amount ?? 0) - 0.14) < 1e-9, 'values sum');
|
assert.ok(Math.abs((row?.amount ?? 0) - 0.14) < 1e-9, 'values sum');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue