v2.11.1 : nom monstre 'Nom [Age]' + gestion du feminin
bestiary.js regenere avec champ gender (m/f, liste curatee de ~31 feminins) + export AGE_NAMES_F. db.js : gender en colonne (BESTIARY_TXT_KEYS) + migration ALTER TABLE ... ADD COLUMN gender AVANT le seed, puis UPDATE du genre des lignes existantes. game.js buildBestiaryMonster(.., ageNamesF, ..) : nom = 'Nom [Age]' avec age accorde au genre. mp.js + makeMonster passent AGE_NAMES_F. treasures.js : age affiche au feminin. admin : champ Genre. Tests : format + feminin (Plante [Doyenne]). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -163,7 +163,7 @@ function spawnMonster(world, now = Date.now()) {
|
||||
// profondeur, avec un âge au hasard. Données de la base (tunées admin) +
|
||||
// multiplicateurs d'âge.
|
||||
const depth = world.config.worldDepth;
|
||||
const m = g.buildBestiaryMonster(db.bestiaryAll(), db.monsterAges().map(a => a.mult), bestiaryLib.AGE_NAMES, depth, pos.x, pos.y);
|
||||
const m = g.buildBestiaryMonster(db.bestiaryAll(), db.monsterAges().map(a => a.mult), bestiaryLib.AGE_NAMES, bestiaryLib.AGE_NAMES_F, depth, pos.x, pos.y);
|
||||
if (!m) return null;
|
||||
m.id = world.nextId++;
|
||||
m.dlaMs = Math.round(monsterDlaMs(world.config));
|
||||
|
||||
Reference in New Issue
Block a user