stable
This commit is contained in:
parent
fbdac9ebf1
commit
86226ccc94
97 changed files with 5790 additions and 2307 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue