Browse Source

work

1993-leagues
Shaun 6 months ago
parent
commit
32d0dcce4d
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/client/ui/templates/characters/styles.less
  2. +3
    -3
      src/server/config/consts.js
  3. +1
    -1
      src/server/world/threadManager.js

+ 1
- 1
src/client/ui/templates/characters/styles.less View File

@@ -62,7 +62,7 @@
align-items: center;

.sprite {
width: 8px;
width: 7.9px;
height: 8px;
transform-origin: 50% 50%;
transform: scale(16);


+ 3
- 3
src/server/config/consts.js View File

@@ -16,13 +16,13 @@ module.exports = {
hpMults: [0.1, 0.2, 0.4, 0.7, 0.78, 0.91, 1.16, 1.19, 1.65, 2.36, 3.07, 3.55, 4.1, 4.85, 5.6, 5.9, 6.5, 7.1, 7.9, 12, 15],

//How far a player can see objects horizontally
viewDistanceX: 25,
viewDistanceX: 32,

//How far a player can see objects vertically
viewDistanceY: 14,
viewDistanceY: 17,

//How many milliseconds to wait to kill a thread after it's been empty
destroyThreadWhenEmptyForMs: 10 * 60 * 1000,
destroyThreadWhenEmptyForMs: 10000,

init: function (threadArgs) {
const emBeforeGetConsts = {


+ 1
- 1
src/server/world/threadManager.js View File

@@ -208,7 +208,7 @@ const getThread = async ({ zoneName, zoneId, obj }) => {
if (!map)
map = mapList.find(m => m.name === clientConfig.config.defaultZone);

let thread = threads.find(t => t.id === zoneId && t.name === zoneName);
let thread = threads.find(t => (zoneId === null || t.id === zoneId) && t.name === zoneName);

//Maybe this player has been in a thread for this map before
if (!thread)


Loading…
Cancel
Save