feat: 코디 일교차 8도 이상이면 겉옷을 5번째 옷으로 그림·이름표에 포함(-outer 그림), 그림 프롬프트에 적힌 옷만 그리기 규칙, warm 꾸안꾸 겉옷 그림 4장

This commit is contained in:
minaChoi committed 2026-10-25 15:08:51 +09:00
1 parent 368a576bdb
commit aa9f22a166
11 files changed
+90 -31

No files matched your search

+3 -5
View File
@@ -1,7 +1,7 @@
import type { CardData } from './data'
import { gakArt } from './gaks'
import { hasTarotBg } from './templates'
import { ootdBand, ootdOutfits } from './ootd'
import { needsOuter, ootdOutfits } from './ootd'
import type { Copy } from './templates'
export type ImageNeed = { kind: string; ids: string[] }
@@ -9,11 +9,9 @@ export type ImageNeed = { kind: string; ids: string[] }
/** 이 카드에 필요한 그림 중 아직 없는 것 (all 이면 전부). kind 는 image-prompts/<kind>.json, 그날 필요한 것만 Codex로 만든다. 타로는 그날 뽑힌 각 카드 그림 */
export function neededImages(templateId: string, d: CardData, copy: Copy, all = false): ImageNeed[] {
if (templateId === 'ootd') {
const style = copy.style || 'casual'
const band = ootdBand(d.maxC).id
const ids = ootdOutfits(d.maxC, style)
const ids = ootdOutfits(d.maxC, copy.style, undefined, needsOuter(d.maxC, d.morningC))
.filter((o) => all || !o.image)
.map((o) => `${band}-${o.persona}-${style}`)
.map((o) => o.imageId)
return ids.length ? [{ kind: 'ootd', ids }] : []
}
if (templateId === 'tarot') {