rm bstorm
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -45,8 +45,6 @@ Format your response as:
|
|
45 |
\`\`\`
|
46 |
# Object Caption
|
47 |
{object description, also assess how rare the object is, the rarer the object the stronger the monster}
|
48 |
-
# Transformation Brainstorm
|
49 |
-
{brief thought on how to transform the object into a Pokémon-like creature}
|
50 |
# Monster Name
|
51 |
{monster name}
|
52 |
## Monster Visual Description
|
@@ -313,8 +311,8 @@ Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit
|
|
313 |
const objectMatch = state.monsterConcept.match(/# Object Caption\s*\n([\s\S]*?)(?=^# )/m);
|
314 |
const objectDescription = objectMatch ? objectMatch[1].trim() : '';
|
315 |
|
316 |
-
// Extract monster name - now it's the
|
317 |
-
const monsterNameMatch = state.monsterConcept.match(/^# (?!Object Caption
|
318 |
const monsterName = monsterNameMatch ? monsterNameMatch[1].trim() : 'Unknown Monster';
|
319 |
|
320 |
// Debug logging
|
|
|
45 |
\`\`\`
|
46 |
# Object Caption
|
47 |
{object description, also assess how rare the object is, the rarer the object the stronger the monster}
|
|
|
|
|
48 |
# Monster Name
|
49 |
{monster name}
|
50 |
## Monster Visual Description
|
|
|
311 |
const objectMatch = state.monsterConcept.match(/# Object Caption\s*\n([\s\S]*?)(?=^# )/m);
|
312 |
const objectDescription = objectMatch ? objectMatch[1].trim() : '';
|
313 |
|
314 |
+
// Extract monster name - now it's the second heading after Object Caption
|
315 |
+
const monsterNameMatch = state.monsterConcept.match(/^# (?!Object Caption)(.+)$/m);
|
316 |
const monsterName = monsterNameMatch ? monsterNameMatch[1].trim() : 'Unknown Monster';
|
317 |
|
318 |
// Debug logging
|