tarinai/js/text_catalog.js

207 lines
16 KiB
JavaScript
Raw Normal View History

2026-06-20 02:07:01 +09:00
"use strict";
const TEXT_CATALOG = {
2026-06-20 20:29:44 +09:00
toolTips: toolTipsFromDefinitions(),
2026-06-20 02:07:01 +09:00
ecologyCards: [
2026-06-20 20:29:44 +09:00
{
2026-06-28 13:40:41 +09:00
title: "\u305f\u308a\u306a\u3044\u3068\u306f",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_01_smile.webp",
2026-06-28 13:40:41 +09:00
text: "\u5ead\u3084\u30b1\u30fc\u30b8\u3067\u751f\u6d3b\u3059\u308b\u89b3\u5bdf\u5bfe\u8c61\u3002\u7a7a\u8179\u3001\u7761\u7720\u3001\u5065\u5eb7\u3001\u5b89\u5168\u3001\u95a2\u4fc2\u3001\u5145\u8db3\u306e6\u6b32\u6c42\u3068\u30b9\u30c8\u30ec\u30b9\u3067\u884c\u52d5\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u500b\u4f53\u3054\u3068\u306b\u6027\u683c\u3001\u4f53\u683c\u3001\u5bb6\u65cf\u3001\u7d4c\u9a13\u304c\u6b8b\u308a\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u6b32\u6c42\u3068\u30b9\u30c8\u30ec\u30b9",
2026-06-21 14:09:35 +09:00
image: "assets/ui/ecology_hp_stress.webp",
2026-06-28 13:40:41 +09:00
text: "\u7a7a\u8179\u3084\u7720\u6c17\u304c\u5f37\u3044\u3068\u98df\u3079\u7269\u3084\u5bdd\u5e8a\u3092\u63a2\u3057\u307e\u3059\u3002\u30b9\u30c8\u30ec\u30b9\u306f\u6050\u6016\u3001\u6df7\u96d1\u3001\u6c5a\u308c\u3001\u3051\u3093\u304b\u3001\u5730\u9762\u306e\u7a2e\u985e\u306a\u3069\u3067\u5897\u6e1b\u3057\u3001\u9ad8\u3044\u307b\u3069\u9003\u8d70\u3001\u5a01\u5687\u3001\u4f53\u8abf\u4e0d\u826f\u304c\u8d77\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u98df\u4e8b\u3068\u6c34\u5206",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_05_drool.webp",
2026-06-28 13:40:41 +09:00
text: "\u8349\u3001\u305a\u3093\u3061\u3001\u9905\u3001\u30b8\u30e5\u30fc\u30b9\u306a\u3069\u3092\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u98df\u3079\u307e\u3059\u3002\u75c5\u6c17\u3084\u6975\u5ea6\u306e\u7a7a\u8179\u3067\u306f\u512a\u5148\u9806\u4f4d\u304c\u5909\u308f\u308a\u3001\u8fd1\u304f\u306e\u98df\u3079\u7269\u3092\u63a2\u3057\u307e\u3059\u3002\u6c34\u3084\u96e8\u6ef4\u306f\u4e00\u90e8\u306e\u75c5\u6c17\u3084\u74b0\u5883\u306e\u56de\u5fa9\u306b\u3082\u95a2\u308f\u308a\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u7761\u7720\u3068\u5bdd\u5834\u6240",
2026-06-25 17:43:24 +09:00
image: "assets/sprites/tarinai_20_sleep2.webp",
2026-06-28 13:40:41 +09:00
text: "\u7720\u304f\u306a\u308b\u3068\u5de3\u7bb1\u3084\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u3092\u63a2\u3057\u307e\u3059\u3002\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u306f\u8349\u3092\u4f7f\u3063\u3066\u4f5c\u3089\u308c\u3001\u8d77\u5e8a\u6642\u306b\u6d88\u3048\u307e\u3059\u3002\u9577\u304f\u5bdd\u5e8a\u3092\u7528\u610f\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u4f55\u3082\u306a\u3044\u5834\u6240\u3067\u7720\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002",
2026-06-25 17:43:24 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u8349\u3001\u5730\u9762\u3001\u5929\u6c17",
2026-06-25 17:43:24 +09:00
image: "assets/ui/tool_grass.webp",
2026-06-28 13:40:41 +09:00
text: "\u8349\u306f\u6210\u9577\u3057\u3001\u98df\u6599\u3084\u304b\u3093\u305f\u3093\u30d9\u30c3\u30c9\u306e\u6750\u6599\u306b\u306a\u308a\u307e\u3059\u3002\u5730\u9762\u306f\u7802\u3001\u571f\u3001\u30b3\u30f3\u30af\u30ea\u30fc\u30c8\u3001\u3075\u308f\u3075\u308f\u6bdb\u5e03\u3001\u8db3\u3064\u307c\u3001\u6c37\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u3001\u8349\u306e\u767a\u751f\u3084\u30b9\u30c8\u30ec\u30b9\u5897\u52a0\u306b\u5f71\u97ff\u3057\u307e\u3059\u3002\u96e8\u3084\u6642\u9593\u5e2f\u3082\u72b6\u614b\u306b\u95a2\u308f\u308a\u307e\u3059\u3002",
2026-06-25 17:43:24 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u6027\u683c\u3068\u884c\u52d5\u50be\u5411",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_21_normal_happy.webp",
2026-06-28 13:40:41 +09:00
text: "\u653b\u6483\u6027\u3001\u958b\u653e\u6027\u3001\u793e\u4ea4\u6027\u3001\u795e\u7d4c\u8cea\u6027\u306a\u3069\u304c\u3042\u308a\u3001\u7d4c\u9a13\u3067\u5c11\u3057\u305a\u3064\u5909\u5316\u3057\u307e\u3059\u3002\u6027\u683c\u306f\u98df\u4e8b\u3001\u63a5\u8fd1\u3001\u9003\u8d70\u3001\u3051\u3093\u304b\u3001\u7e41\u6b96\u76f8\u624b\u306e\u63a2\u3057\u65b9\u306a\u3069\u306e\u5dee\u3068\u3057\u3066\u8868\u308c\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u95a2\u4fc2\u3001\u5bb6\u65cf\u3001\u7e41\u6b96",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_27_birth_ritual.webp",
2026-06-28 13:40:41 +09:00
text: "\u89aa\u5b50\u3001\u5171\u540c\u89aa\u3001\u53cb\u597d\u3001\u6575\u5bfe\u3001\u6050\u6016\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002\u6761\u4ef6\u304c\u305d\u308d\u3046\u3068\u3078\u3053\u3078\u3053\u3092\u884c\u3044\u3001\u5b50\u304c\u751f\u307e\u308c\u307e\u3059\u3002\u5b50\u306f\u89aa\u306e\u6027\u683c\u50be\u5411\u3092\u53d7\u3051\u7d99\u304e\u3001\u4e16\u4ee3\u60c5\u5831\u306f\u5bb6\u7cfb\u56f3\u306b\u6b8b\u308a\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u75c5\u6c17\u3068\u56de\u5fa9",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_24_stress_dizzy.webp",
2026-06-28 13:40:41 +09:00
text: "\u305a\u3093\u3061\u75c5\u3001\u306d\u3080\u308a\u75c5\u3001\u7206\u767a\u75c5\u3001\u304d\u305a\u3064\u304d\u75c5\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u75c5\u6c17\u3054\u3068\u306b\u6c42\u3081\u308b\u3082\u306e\u3084\u884c\u52d5\u304c\u5909\u308f\u308a\u3001\u6c34\u3001\u85ac\u3001\u98df\u3079\u7269\u3001\u4f11\u606f\u3001\u74b0\u5883\u306e\u6539\u5584\u304c\u56de\u5fa9\u306b\u95a2\u4fc2\u3057\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u5371\u967a\u3068\u4e8b\u6545",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_26_intimidate.webp",
2026-06-28 13:40:41 +09:00
text: "\u3051\u3093\u304b\u3001\u7206\u7af9\u3001\u3052\u3093\u3053\u3064\u3001\u30d4\u30f3\u3001\u30dc\u30fc\u30eb\u3001\u30a2\u30ea\u3001\u843d\u4e0b\u7269\u306a\u3069\u3067\u4f53\u529b\u304c\u6e1b\u308a\u307e\u3059\u3002\u4f53\u529b\u304c0\u306b\u306a\u308b\u3068\u6b7b\u4ea1\u3057\u3001\u6b7b\u56e0\u306f\u30ed\u30b0\u3068\u7d71\u8a08\u306b\u6b8b\u308a\u307e\u3059\u3002\u5371\u967a\u306a\u9053\u5177\u306f\u89b3\u5bdf\u306e\u6d41\u308c\u3092\u5927\u304d\u304f\u5909\u3048\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u9053\u5177\u3068\u69cb\u9020\u7269",
2026-06-25 17:43:24 +09:00
image: "assets/ui/tool_duplicator.webp",
2026-06-28 13:40:41 +09:00
text: "\u98df\u3079\u7269\u3001\u85ac\u3001\u5de3\u7bb1\u3001\u67f5\u3001\u770b\u677f\u3001\u8907\u88fd\u6a5f\u306a\u3069\u3092\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002\u8907\u88fd\u6a5f\u306b\u306f\u5bfe\u5fdc\u3059\u308b\u98df\u3079\u7269\u3001\u85ac\u3001\u8349\u306a\u3069\u3092\u30bb\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002\u524a\u9664\u30c4\u30fc\u30eb\u3067\u306f\u4e0d\u8981\u306a\u69cb\u9020\u7269\u3084\u4e00\u90e8\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u308a\u9664\u3051\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
{
2026-06-28 13:40:41 +09:00
title: "\u30b3\u30ed\u30cb\u30fc\u306e\u898b\u65b9",
2026-06-21 14:09:35 +09:00
image: "assets/sprites/tarinai_11_weak.webp",
2026-06-28 13:40:41 +09:00
text: "\u30b3\u30ed\u30cb\u30fc\u6b04\u3067\u306f\u500b\u4f53\u6570\u3001\u6b7b\u4ea1\u6570\u3001\u5168\u4f53\u72b6\u614b\u3001\u5730\u9762\u3001\u6b32\u6c42\u5e73\u5747\u3001\u7269\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u89b3\u5bdf\u3067\u306f\u9078\u629e\u4e2d\u306e\u500b\u4f53\u306e\u5065\u5eb7\u3001\u6027\u683c\u3001\u95a2\u4fc2\u3001\u884c\u52d5\u7406\u7531\u3001\u8a18\u9332\u3092\u8ffd\u3048\u307e\u3059\u3002",
2026-06-20 20:29:44 +09:00
},
2026-06-25 17:43:24 +09:00
],};
2026-06-20 02:07:01 +09:00
2026-06-22 02:03:19 +09:00
TEXT_CATALOG.stateLabels = Object.freeze({
2026-06-28 13:40:41 +09:00
idle: "\u307c\u30fc\u3063\u3068\u3057\u3066\u3044\u308b",
2026-06-24 13:48:22 +09:00
seek_food: "\u98df\u3079\u7269\u3078\u5411\u304b\u3046",
seek_bed: "\u5bdd\u5e8a\u3078\u5411\u304b\u3046",
play_ball: "\u30dc\u30fc\u30eb\u904a\u3073",
seek_water: "\u6c34\u3092\u63a2\u3059",
2026-06-25 14:51:58 +09:00
seek_material: "\u6750\u6599\u3092\u63a2\u3059",
seek_enemy: "\u76f8\u624b\u3078\u5411\u304b\u3046",
wander: "\u79fb\u52d5\u4e2d",
build: "\u4f5c\u6210\u4e2d",
2026-06-24 13:48:22 +09:00
zunchi_sick: "\u305a\u3093\u3061\u75c5",
fight_sick: "\u304d\u305a\u3064\u304d\u75c5",
system: "\u305a\u3093\u3061\u75c5",
seek_friend: "\u4ef2\u9593\u3092\u63a2\u3059",
follow_parent: "\u89aa\u306b\u3064\u3044\u3066\u3044\u304f",
cursor_friend: "\u30ab\u30fc\u30bd\u30eb\u306b\u3064\u3044\u3066\u3044\u304f",
cursor_enemy: "\u30ab\u30fc\u30bd\u30eb\u3092\u907f\u3051\u308b",
fight: "\u55a7\u5629\u4e2d",
sleep: "\u7761\u7720\u4e2d",
eat: "\u98df\u4e8b\u4e2d",
panic: "\u30d1\u30cb\u30c3\u30af",
intimidate: "\u5a01\u5687\u4e2d",
birth_ritual: "\u8a95\u751f\u524d",
sunbath: "\u65e5\u5149\u6d74\u4e2d",
ant_attack: "\u30a2\u30ea\u653b\u6483\u4e2d",
ant_intimidate: "\u30a2\u30ea\u5a01\u5687\u4e2d",
frozen: "\u51b7\u51cd\u4e2d",
2026-06-22 02:03:19 +09:00
});
2026-06-25 14:51:58 +09:00
TEXT_CATALOG.behaviorLabels = Object.freeze({
2026-06-28 13:40:41 +09:00
seek_material: "\u6750\u6599\u3092\u63a2\u3057\u3066\u3044\u308b",
build_structure: "\u4f5c\u6210\u3057\u3066\u3044\u308b",
build: "\u4f5c\u6210\u3057\u3066\u3044\u308b",
seek_enemy: "\u6c17\u306b\u306a\u308b\u76f8\u624b\u3078\u5411\u304b\u3063\u3066\u3044\u308b",
wander_lightly: "\u5c11\u3057\u79fb\u52d5\u3057\u3066\u3044\u308b",
eat_food: "\u98df\u4e8b\u3092\u3057\u3066\u3044\u308b",
drink_water: "\u6c34\u3092\u98f2\u3093\u3067\u3044\u308b",
sleep_in_bed: "\u5bdd\u5e8a\u3067\u4f11\u3093\u3067\u3044\u308b",
sleep_anywhere: "\u4f11\u3093\u3067\u3044\u308b",
intimidate_enemy: "\u5a01\u5687\u3057\u3066\u3044\u308b",
panic_escape: "\u9003\u3052\u3066\u3044\u308b",
2026-06-25 14:51:58 +09:00
});
TEXT_CATALOG.behaviorLabel = function behaviorLabelFromCatalog(value = "") {
const key = String(value || "");
return TEXT_CATALOG.behaviorLabels?.[key] || TEXT_CATALOG.stateLabels?.[key] || key;
};
TEXT_CATALOG.cleanBehaviorText = function cleanBehaviorText(text = "", fallbackKey = "") {
const raw = String(text || "").trim();
const key = String(fallbackKey || raw || "").trim();
const mapped = TEXT_CATALOG.behaviorLabel(key);
if (!raw) return mapped || "";
if (/^[a-z][a-z0-9_:-]*$/i.test(raw)) return TEXT_CATALOG.behaviorLabel(raw);
return raw;
};
2026-06-22 02:03:19 +09:00
TEXT_CATALOG.targetLabelOverrides = Object.freeze({
2026-06-24 13:48:22 +09:00
system: "\u305a\u3093\u3061\u75c5",
zunchi_sick: "\u305a\u3093\u3061\u75c5",
fight_sick: "\u304d\u305a\u3064\u304d\u75c5",
2026-06-22 02:03:19 +09:00
});
TEXT_CATALOG.targetLabels = TEXT_CATALOG.targetLabelOverrides;
2026-06-25 22:30:35 +09:00
TEXT_CATALOG.idleGroundText = function idleGroundText(t = null) {
const ground = String(t?.world?.groundType || (typeof world !== "undefined" ? world?.groundType : "") || "soil");
2026-06-28 13:40:41 +09:00
if (ground === "foot_massage") return "\u8db3\u3064\u307c\u306b\u8010\u3048\u3066\u3044\u308b\u3002";
if (ground === "blanket") return "\u6bdb\u5e03\u306b\u3046\u3063\u3068\u308a\u3057\u3066\u3044\u308b\u3002";
if (ground === "ice") return "\u6c37\u306e\u4e0a\u3067\u3058\u3063\u3068\u3057\u3066\u3044\u308b\u3002";
return "\u307c\u30fc\u3063\u3068\u3057\u3066\u3044\u308b\u3002";
2026-06-25 22:30:35 +09:00
};
TEXT_CATALOG.stateLabel = function stateLabelFromCatalog(s, t = null) {
if (String(s || "") === "idle") return TEXT_CATALOG.idleGroundText(t);
2026-06-22 02:03:19 +09:00
return TEXT_CATALOG.stateLabels?.[s] || s || "";
};
TEXT_CATALOG.targetLabel = function targetLabelFromCatalog(target) {
2026-06-24 13:48:22 +09:00
if (!target) return "\u306a\u3057";
2026-06-22 02:03:19 +09:00
if (target.name) return target.name;
2026-06-24 13:48:22 +09:00
if (target.kind === "queen") return "\u5973\u738b\u30a2\u30ea";
if (target.kind === "worker") return "\u50cd\u304d\u30a2\u30ea";
2026-06-22 02:03:19 +09:00
if (target.type) {
const type = String(target.type || "");
if (TEXT_CATALOG.targetLabelOverrides?.[type]) return TEXT_CATALOG.targetLabelOverrides[type];
const label = typeof toolLabel === "function" ? toolLabel(type) : "";
return label || type;
}
2026-06-24 13:48:22 +09:00
if (Number.isFinite(target.x) && Number.isFinite(target.y)) return "\u4f4d\u7f6e";
return "\u4e0d\u660e";
2026-06-22 02:03:19 +09:00
};
TEXT_CATALOG.reasonLabel = function reasonLabelFromCatalog(t) {
2026-06-24 13:48:22 +09:00
if (!t) return "\u306a\u3057";
if ((t.pinchThoughtTimer || 0) > 0) return "\u3064\u307e\u307e\u308c\u3066\u3044\u308b";
2026-06-25 14:51:58 +09:00
const behaviorState = typeof currentTarinaiBehavior === "function" ? currentTarinaiBehavior(t) : t?.behavior;
const behaviorLabel = typeof globalThis.behaviorText === "function"
? globalThis.behaviorText(t)
: String(typeof getTarinaiBehaviorText === "function" ? getTarinaiBehaviorText(t) : (behaviorState?.text || behaviorState?.reason || "")).trim();
const cleanedBehaviorLabel = TEXT_CATALOG.cleanBehaviorText(behaviorLabel, behaviorState?.actionId || t.state || "");
if (cleanedBehaviorLabel) return cleanedBehaviorLabel;
2026-06-22 02:03:19 +09:00
const target = TEXT_CATALOG.targetLabel(t.target);
2026-06-24 13:48:22 +09:00
if (t.state === "eat") return target !== "\u306a\u3057" ? `${target}\u3092\u98df\u3079\u3066\u3044\u308b` : "\u98df\u3079\u3066\u3044\u308b";
if (t.state === "sleep") return t.target?.type === "nest_box" ? "\u5de3\u7bb1\u306e\u4e2d\u3067\u4f53\u529b\u3092\u56de\u5fa9\u3057\u3066\u3044\u308b" : "\u4f53\u529b\u3092\u56de\u5fa9\u3057\u3066\u3044\u308b";
if (t.state === "panic") return t.target ? `${target}\u304b\u3089\u9003\u3052\u3066\u3044\u308b` : "\u6016\u304c\u3063\u3066\u3044\u308b";
if (t.state === "intimidate") return target !== "\u306a\u3057" ? `${target}\u3092\u5a01\u5687\u3057\u3066\u3044\u308b` : "\u76f8\u624b\u3092\u5a01\u5687\u3057\u3066\u3044\u308b";
if (t.state === "ant_intimidate") return "\u30a2\u30ea\u3092\u5a01\u5687\u3057\u3066\u3044\u308b";
if (t.state === "ant_attack") return "\u30a2\u30ea\u3092\u653b\u6483\u3057\u3066\u3044\u308b";
2026-06-28 13:40:41 +09:00
if (t.state === "birth_ritual") return t.target?.name ? `${t.target.name}\u3068\u3078\u3053\u3078\u3053\u3057\u3066\u3044\u308b` : "\u3078\u3053\u3078\u3053\u3057\u3066\u3044\u308b";
2026-06-24 13:48:22 +09:00
if (t.state === "sunbath") return "\u6674\u308c\u305f\u65e5\u306a\u305f\u3067\u30b9\u30c8\u30ec\u30b9\u3092\u4e0b\u3052\u3066\u3044\u308b";
if (t.state === "frozen") return "\u30d5\u30a3\u30fc\u30eb\u30c9\u5916\u3067\u51b7\u51cd\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b";
if (t.state === "seek_food") return target !== "\u306a\u3057" ? `${target}\u3092\u63a2\u3057\u3066\u3044\u308b` : "\u304a\u8179\u304c\u3059\u3044\u3066\u3044\u308b";
if (t.state === "seek_water") return t.explosionDisease ? "\u7206\u767a\u75c5\u3067\u6c34\u3092\u63a2\u3057\u3066\u3044\u308b" : "\u305a\u3093\u3061\u75c5\u3067\u6c34\u3092\u63a2\u3057\u3066\u3044\u308b";
if (t.state === "seek_bed") return target !== "\u306a\u3057" ? `${target}\u3078\u5411\u304b\u3063\u3066\u3044\u308b` : "\u7720\u308b\u5834\u6240\u3092\u63a2\u3057\u3066\u3044\u308b";
if (t.state === "play_ball") return "\u30dc\u30fc\u30eb\u304c\u6c17\u306b\u306a\u3063\u3066\u3044\u308b";
if (t.state === "seek_friend" && (typeof getTarinaiBehaviorId === "function" ? getTarinaiBehaviorId(t) : t.behavior?.id) === "approach_mate") return t.target?.name ? `${t.target.name}\u306b\u7e41\u6b96\u306e\u305f\u3081\u8fd1\u3065\u3044\u3066\u3044\u308b` : "\u7e41\u6b96\u3067\u304d\u308b\u76f8\u624b\u3092\u63a2\u3057\u3066\u3044\u308b";
if (t.state === "seek_friend") return "\u4ef2\u9593\u3092\u63a2\u3057\u3066\u3044\u308b";
if (t.state === "follow_parent") return "\u89aa\u306b\u3064\u3044\u3066\u3044\u304f";
if (t.state === "cursor_friend") return "\u30ab\u30fc\u30bd\u30eb\u306b\u3064\u3044\u3066\u3044\u304f";
if (t.state === "cursor_enemy") return "\u30ab\u30fc\u30bd\u30eb\u3092\u907f\u3051\u3066\u3044\u308b";
if (t.state === "fight") return target !== "\u306a\u3057" ? `${target}\u3068\u55a7\u5629\u3057\u3066\u3044\u308b` : "\u55a7\u5629\u3057\u3066\u3044\u308b";
if (t.state === "fight_sick") return "\u304d\u305a\u3064\u304d\u75c5\u3067\u5f53\u3066\u3082\u306a\u304f\u5f77\u5fa8\u3063\u3066\u3044\u308b";
if (t.state === "zunchi_sick" || t.state === "system") return "\u305a\u3093\u3061\u75c5\u3067\u8abf\u5b50\u304c\u60aa\u3044";
if ((t.hurtTimer || 0) > 0.08) return "\u75db\u307f\u3067\u6df7\u4e71\u3057\u3066\u3044\u308b";
if ((t.fearTimer || 0) > 0.08) return "\u6016\u304c\u3063\u3066\u3044\u308b";
if ((t.grassEatTimer || 0) > 0.04) return "\u8349\u3092\u98df\u3079\u3066\u3044\u308b";
2026-06-23 22:39:20 +09:00
const thought = String(t.thought || "").trim();
2026-06-25 22:30:35 +09:00
const cleanedThought = TEXT_CATALOG.cleanBehaviorText(thought, t.state || "");
2026-06-28 13:40:41 +09:00
if (["\u5f85\u6a5f", "\u5f85\u3063\u3066\u3044\u308b", "\u5f85\u3063\u3066\u3044\u308b\u3002", "\u307c\u30fc\u3063\u3068\u3057\u3066\u3044\u308b", "\u307c\u30fc\u3063\u3068\u3057\u3066\u3044\u308b\u3002", "\u5468\u56f2\u3092\u898b\u3066\u3044\u308b"].includes(cleanedThought)) return TEXT_CATALOG.idleGroundText(t);
2026-06-23 22:39:20 +09:00
if (thought) return thought;
2026-06-25 22:30:35 +09:00
if (t.state === "idle" || !t.state) return TEXT_CATALOG.idleGroundText(t);
2026-06-28 13:40:41 +09:00
return "\u5468\u56f2\u3092\u898b\u3066\u3044\u308b";
2026-06-22 02:03:19 +09:00
};
function stateLabel(s) { return TEXT_CATALOG.stateLabel(s); }
function targetLabel(target) { return TEXT_CATALOG.targetLabel(target); }
function reasonLabel(t) { return TEXT_CATALOG.reasonLabel(t); }
window.stateLabel = stateLabel;
window.targetLabel = targetLabel;
window.reasonLabel = reasonLabel;
2026-06-20 02:07:01 +09:00
window.TEXT_CATALOG = TEXT_CATALOG;