Test button for sounds and new Audio() code #630

This commit is contained in:
Daniël van Noord
2021-03-16 13:27:21 +01:00
parent b201e15c8e
commit d35217b6d5
12 changed files with 32 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ export default function CheckGardenTick() {
) {
if (LastGardenNextStep !== 0 && LastGardenNextStep < Date.now()) {
Flash(3, 'GardFlash');
PlaySound(CMOptions.GardSoundURL, 'GardSound', 'GardVolume');
PlaySound(CMOptions.GardSoundURL, 'GardSound', 'GardVolume', false);
}
LastGardenNextStep = Game.Objects.Farm.minigame.nextStep;
}