This commit is contained in:
33333-33333 2026-07-29 20:52:11 +09:00
commit 091afc2b5c
77 changed files with 4405 additions and 8223 deletions

View file

@ -5,12 +5,12 @@
if (!events) return;
events.on("world:phase", () => {
global.audio?.phase?.();
global.TarinaiAudio?.phase?.();
});
function playLogSoundForEntry(entry = {}) {
if (!entry || entry.hiddenFromObservation || entry.sound === false || entry.silentAudio) return;
const audio = global.audio;
const audio = global.TarinaiAudio;
if (!audio) return;
const kind = entry.kind || "note";
const text = String(entry.text || "");
@ -50,6 +50,6 @@
events.on("tool:placed", (event) => {
const detail = event.detail || {};
if (detail.dropped) global.audio?.place?.(detail.type || detail.item?.type || "");
if (detail.dropped) global.TarinaiAudio?.place?.(detail.type || detail.item?.type || "");
});
})(typeof window !== "undefined" ? window : globalThis);