This commit is contained in:
33333-33333 2026-06-26 12:46:32 +09:00
commit 86226ccc94
97 changed files with 5790 additions and 2307 deletions

View file

@ -16,7 +16,7 @@
function groundDef(worldRef = null) {
const worldObj = activeWorld(worldRef);
const id = worldObj?.groundType || "soil";
return global.TarinaiGround?.definition?.(id) || (typeof GROUND_TYPES !== "undefined" ? GROUND_TYPES[id] || GROUND_TYPES.soil : { id: "soil", label: "土", description: "いつもの地面" });
return global.TarinaiGround?.definition?.(id) || (typeof GROUND_TYPES !== "undefined" ? GROUND_TYPES[id] || GROUND_TYPES.soil : { id: "soil", label: "砂", description: "普通の地面。" });
}
function groundTip(worldRef = null) {
@ -28,7 +28,7 @@
function updateGroundUI(worldRef = null) {
const uiRef = global.ui || {};
const def = groundDef(worldRef);
const label = def.label || "";
const label = def.label || "";
const statEl = uiRef.statGroundType || document.getElementById("statGroundType");
const btnEl = uiRef.groundTypeBtn || document.getElementById("groundTypeBtn");
if (statEl) setTextIfChanged(statEl, "groundType", label);