update desc
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -24,15 +24,14 @@
|
|
24 |
// Prompt templates
|
25 |
const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
|
26 |
|
27 |
-
Create a Pokémon-style monster that transforms the object into an imaginative creature. The monster should clearly be inspired by the object's appearance but reimagined as a living
|
28 |
|
29 |
Guidelines:
|
30 |
-
- Take the object's key visual elements (colors, shapes, materials)
|
31 |
- Add eyes (can be glowing, mechanical, multiple, etc.) positioned where they make sense
|
32 |
- Include limbs (legs, arms, wings, tentacles) that grow from or replace parts of the object
|
33 |
- Add a mouth, beak, or feeding apparatus if appropriate
|
34 |
- Add creature elements like tail, fins, claws, or horns where fitting
|
35 |
-
- The object should be recognizable but creatively interpreted
|
36 |
|
37 |
Rarity assessment: Common objects = weaker monsters. Unique/rare objects = stronger monsters.
|
38 |
|
@@ -48,7 +47,6 @@ Include:
|
|
48 |
Include all of its visual details, most importantly include its creature features, format the description as a single long sentence.`;
|
49 |
|
50 |
const MONSTER_STATS_PROMPT = (concept: string) => `Convert the following monster concept into a JSON object with stats:
|
51 |
-
|
52 |
"${concept}"
|
53 |
|
54 |
The output should be formatted as a JSON instance that conforms to the JSON schema below.
|
@@ -325,7 +323,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
325 |
}
|
326 |
|
327 |
const statsPrompt = MONSTER_STATS_PROMPT(state.monsterConcept);
|
328 |
-
const systemPrompt = "You are a game designer specializing in monster stats and abilities. You must ONLY output valid JSON that matches the provided schema exactly. Do not include any text before or after the JSON. Your entire response should be wrapped in a ```json``` code block.";
|
329 |
|
330 |
console.log('Generating monster stats from concept');
|
331 |
|
|
|
24 |
// Prompt templates
|
25 |
const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
|
26 |
|
27 |
+
Create a Pokémon-style monster that transforms the object into an imaginative creature. The monster should clearly be inspired by the object's appearance but reimagined as a living monster.
|
28 |
|
29 |
Guidelines:
|
30 |
+
- Take the object's key visual elements (colors, shapes, materials) incorporating all of them into a single creature design
|
31 |
- Add eyes (can be glowing, mechanical, multiple, etc.) positioned where they make sense
|
32 |
- Include limbs (legs, arms, wings, tentacles) that grow from or replace parts of the object
|
33 |
- Add a mouth, beak, or feeding apparatus if appropriate
|
34 |
- Add creature elements like tail, fins, claws, or horns where fitting
|
|
|
35 |
|
36 |
Rarity assessment: Common objects = weaker monsters. Unique/rare objects = stronger monsters.
|
37 |
|
|
|
47 |
Include all of its visual details, most importantly include its creature features, format the description as a single long sentence.`;
|
48 |
|
49 |
const MONSTER_STATS_PROMPT = (concept: string) => `Convert the following monster concept into a JSON object with stats:
|
|
|
50 |
"${concept}"
|
51 |
|
52 |
The output should be formatted as a JSON instance that conforms to the JSON schema below.
|
|
|
323 |
}
|
324 |
|
325 |
const statsPrompt = MONSTER_STATS_PROMPT(state.monsterConcept);
|
326 |
+
const systemPrompt = "You are a game designer specializing in monster stats and abilities. You must ONLY output valid JSON that matches the provided schema exactly. Do not include any text before or after the JSON. Do not include null values in your JSON response. Your entire response should be wrapped in a ```json``` code block.";
|
327 |
|
328 |
console.log('Generating monster stats from concept');
|
329 |
|