use correct description
Browse files
src/lib/components/Piclets/PicletDetail.svelte
CHANGED
|
@@ -157,7 +157,7 @@
|
|
| 157 |
<div class="tab-content">
|
| 158 |
{#if selectedTab === 'about'}
|
| 159 |
<div class="content-card">
|
| 160 |
-
<p class="description">{
|
| 161 |
</div>
|
| 162 |
{:else if selectedTab === 'stats'}
|
| 163 |
<div class="content-card">
|
|
|
|
| 157 |
<div class="tab-content">
|
| 158 |
{#if selectedTab === 'about'}
|
| 159 |
<div class="content-card">
|
| 160 |
+
<p class="description">{instance.description}</p>
|
| 161 |
</div>
|
| 162 |
{:else if selectedTab === 'stats'}
|
| 163 |
<div class="content-card">
|
src/lib/db/piclets.ts
CHANGED
|
@@ -101,7 +101,8 @@ export async function monsterToPicletInstance(monster: Monster, level: number =
|
|
| 101 |
imageUrl: monster.imageUrl,
|
| 102 |
imageData: monster.imageData,
|
| 103 |
imageCaption: monster.imageCaption,
|
| 104 |
-
concept: monster.concept,
|
|
|
|
| 105 |
imagePrompt: monster.imagePrompt
|
| 106 |
};
|
| 107 |
}
|
|
|
|
| 101 |
imageUrl: monster.imageUrl,
|
| 102 |
imageData: monster.imageData,
|
| 103 |
imageCaption: monster.imageCaption,
|
| 104 |
+
concept: monster.concept,
|
| 105 |
+
description: stats.description,
|
| 106 |
imagePrompt: monster.imagePrompt
|
| 107 |
};
|
| 108 |
}
|
src/lib/db/schema.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface PicletInstance {
|
|
| 70 |
imageData?: string; // Base64 encoded image with transparency
|
| 71 |
imageCaption: string;
|
| 72 |
concept: string;
|
|
|
|
| 73 |
imagePrompt: string;
|
| 74 |
}
|
| 75 |
|
|
|
|
| 70 |
imageData?: string; // Base64 encoded image with transparency
|
| 71 |
imageCaption: string;
|
| 72 |
concept: string;
|
| 73 |
+
description: string; // Generated monster description from stats
|
| 74 |
imagePrompt: string;
|
| 75 |
}
|
| 76 |
|