@ai-rpg-engine/starter-template 3.0.0 → 3.1.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/package.json +1 -1
- package/src/setup.ts +14 -11
package/package.json
CHANGED
package/src/setup.ts
CHANGED
|
@@ -109,17 +109,19 @@ export function createGame(seed?: number): Engine {
|
|
|
109
109
|
// createPerceptionFilter() (import + register it in the modules array,
|
|
110
110
|
// ahead of ...worldStack.modules).
|
|
111
111
|
//
|
|
112
|
-
// GENRE WIRING (V3-GEN-1/2, v3.0 wave 2): pass
|
|
113
|
-
// genre id as
|
|
114
|
-
// any '-minimal'-style suffix your
|
|
115
|
-
// (myRuleset.id here is already
|
|
116
|
-
// NOT use manifest.genres — that
|
|
117
|
-
// a
|
|
118
|
-
//
|
|
119
|
-
//
|
|
120
|
-
//
|
|
121
|
-
//
|
|
122
|
-
//
|
|
112
|
+
// GENRE WIRING (V3-GEN-1/2, v3.0 wave 2; F-V31-ECON-GENRE, v3.1): pass
|
|
113
|
+
// YOUR OWN ruleset's bare genre id as tradeGenre, craftingGenre, AND
|
|
114
|
+
// economyGenre — the ruleset `id` with any '-minimal'-style suffix your
|
|
115
|
+
// naming convention adds stripped off (myRuleset.id here is already
|
|
116
|
+
// bare: 'my-game', nothing to strip). Do NOT use manifest.genres — that
|
|
117
|
+
// is a free-text flavor-tag vocabulary, a DIFFERENT vocabulary than
|
|
118
|
+
// trade-core.ts's GENRE_BUYABLE_STOCK / crafting-recipes.ts's
|
|
119
|
+
// GENRE_RECIPES / economy-core.ts's GENRE_SUPPLY_DEFAULTS table keys
|
|
120
|
+
// (e.g. a pack tagged genres: ['western'] may key its table entries
|
|
121
|
+
// 'weird-west' instead — the bare ruleset id, not the flavor tag, is
|
|
122
|
+
// what selects genre-flavored stock/recipes/starting supply). A genre
|
|
123
|
+
// with no matching table entry safely falls back to the universal/
|
|
124
|
+
// default tables — an honest degrade, not a bug.
|
|
123
125
|
//
|
|
124
126
|
// import { buildWorldStack, createPerceptionFilter } from '@ai-rpg-engine/modules';
|
|
125
127
|
// ...
|
|
@@ -127,6 +129,7 @@ export function createGame(seed?: number): Engine {
|
|
|
127
129
|
// playerId: 'player',
|
|
128
130
|
// tradeGenre: myRuleset.id, // or a literal genre string
|
|
129
131
|
// craftingGenre: myRuleset.id,
|
|
132
|
+
// economyGenre: myRuleset.id,
|
|
130
133
|
// });
|
|
131
134
|
// ═══════════════════════════════════════════════════════════════════
|
|
132
135
|
|