mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-08 05:27:12 +08:00
play music on landmark events
This commit is contained in:
@@ -561,6 +561,7 @@ var World = {
|
|||||||
} else if(typeof World.LANDMARKS[curTile] != 'undefined') {
|
} else if(typeof World.LANDMARKS[curTile] != 'undefined') {
|
||||||
if(curTile != World.TILE.OUTPOST || !World.outpostUsed()) {
|
if(curTile != World.TILE.OUTPOST || !World.outpostUsed()) {
|
||||||
Events.startEvent(Events.Setpieces[World.LANDMARKS[curTile].scene]);
|
Events.startEvent(Events.Setpieces[World.LANDMARKS[curTile].scene]);
|
||||||
|
AudioEngine.playEventMusic(Events.Setpieces[World.LANDMARKS[curTile].scene].audio);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(World.useSupplies()) {
|
if(World.useSupplies()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user