@@ -62,7 +62,7 @@ | |||||
align-items: center; | align-items: center; | ||||
.sprite { | .sprite { | ||||
width: 8px; | |||||
width: 7.9px; | |||||
height: 8px; | height: 8px; | ||||
transform-origin: 50% 50%; | transform-origin: 50% 50%; | ||||
transform: scale(16); | transform: scale(16); | ||||
@@ -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], | 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 | //How far a player can see objects horizontally | ||||
viewDistanceX: 25, | |||||
viewDistanceX: 32, | |||||
//How far a player can see objects vertically | //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 | //How many milliseconds to wait to kill a thread after it's been empty | ||||
destroyThreadWhenEmptyForMs: 10 * 60 * 1000, | |||||
destroyThreadWhenEmptyForMs: 10000, | |||||
init: function (threadArgs) { | init: function (threadArgs) { | ||||
const emBeforeGetConsts = { | const emBeforeGetConsts = { | ||||
@@ -208,7 +208,7 @@ const getThread = async ({ zoneName, zoneId, obj }) => { | |||||
if (!map) | if (!map) | ||||
map = mapList.find(m => m.name === clientConfig.config.defaultZone); | 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 | //Maybe this player has been in a thread for this map before | ||||
if (!thread) | if (!thread) | ||||