Pārlūkot izejas kodu

Merge branch '1722-move-fjolgard-to-mod' of gitlab.com:Isleward/isleward into 1722-move-fjolgard-to-mod

tags/v0.9.0^2
Shaun pirms 3 gadiem
vecāks
revīzija
eb006c9f6e
2 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      src/client/js/sound/sound.js
  2. +6
    -0
      src/server/components/door.js

+ 2
- 1
src/client/js/sound/sound.js Parādīt failu

@@ -169,7 +169,7 @@ define([
}

//Exponential fall-off
const volume = s.volume * (1 - (Math.pow(distance, 2) / Math.pow(minDistance, 2)));
const volume = s.maxVolume * (1 - (Math.pow(distance, 2) / Math.pow(minDistance, 2)));
this.playSoundHelper(s, volume);
});
},
@@ -230,6 +230,7 @@ define([
x,
y,
volume,
maxVolume: volume,
area,
music,
defaultMusic


+ 6
- 0
src/server/components/door.js Parādīt failu

@@ -129,6 +129,8 @@ module.exports = {
const message = `The ${key.name} disintegrates on use`;
obj.social.notifySelf({ message });
}

this.obj.instance.syncer.queue('onDoorUnlock', null, [obj.serverId]);
}

if (this.closed) {
@@ -139,6 +141,8 @@ module.exports = {

this.closed = false;
this.enterArea(obj);

this.obj.instance.syncer.queue('onDoorOpen', null, [obj.serverId]);
} else {
thisObj.cell = this.closedSprite;
syncO.cell = this.closedSprite;
@@ -147,6 +151,8 @@ module.exports = {

this.closed = true;
this.enterArea(obj);

this.obj.instance.syncer.queue('onDoorClose', null, [obj.serverId]);
}
},



Notiek ielāde…
Atcelt
Saglabāt