asdfg
This commit is contained in:
parent
f6d7412744
commit
091afc2b5c
77 changed files with 4405 additions and 8223 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue