This commit is contained in:
33333-33333 2026-06-19 23:22:15 +09:00
commit 33234f32ae
18 changed files with 1390 additions and 573 deletions

View file

@ -681,9 +681,9 @@ function drawSelectedCard(ctx, world, lighting) {
const w = world.viewportW || world.w;
const h = world.viewportH || world.h;
const cardW = 152;
const cardH = 66;
const cardH = 80;
let x = t.x + 18;
let y = t.y - 86;
let y = t.y - 100;
x = clamp(x, 10, w - cardW - 10);
y = clamp(y, 10, h - cardH - 10);
ctx.save();
@ -699,8 +699,10 @@ function drawSelectedCard(ctx, world, lighting) {
const child = t.juvenile && t.parentToFollow?.() ? " / \u5b50" : "";
const zHint = t.digest > 4.9 ? " / \u305a\u3093\u3061" : "";
ctx.fillText(`${stateLabel(t.state)}${child}${zHint}`, x + 10, y + 35);
const personality = t.personalityLabel ? t.personalityLabel() : (t.personality || "\u4e0d\u660e");
ctx.fillText(`\u6027\u683c ${personality}`, x + 10, y + 52);
const genLabel = (t.displayGeneration && t.displayGeneration()) ? ` \u4e16\u4ee3 ${t.generation}` : "";
ctx.fillText(`\u6c17\u5206 ${fmt(t.mood)}${genLabel} \u4f53\u529b ${fmt(t.energy)}`, x + 10, y + 52);
ctx.fillText(`\u6c17\u5206 ${fmt(t.mood)}${genLabel} \u4f53\u529b ${fmt(t.energy)}`, x + 10, y + 68);
ctx.restore();
}