From 7132f1db138268ea8a8565bc400c57fc0f5280e0 Mon Sep 17 00:00:00 2001 From: Crowns3bc <44653214+Crowns3bc@users.noreply.github.com> Date: Thu, 21 Aug 2025 14:41:35 -0600 Subject: [PATCH] Give tracktrix monsters_home_server data --- node/server.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node/server.js b/node/server.js index df6b4f8..087c0bf 100644 --- a/node/server.js +++ b/node/server.js @@ -4672,6 +4672,7 @@ function init_io() { maps: D.drops.maps, tables: {}, max: player.max_stats, + monsters_home: D.drops.monsters_home_server || {}, //add this }; // ,computer:false function register_table(table) { if (table) { @@ -4686,12 +4687,17 @@ function init_io() { if (player.computer || 1) { // data.computer=true; data.drops = D.drops.monsters; + data.drops_home = D.drops.monsters_home_server || {}; //mirror monsters_home } else { data.drops = {}; + data.drops_home = {}; for (var name in data.monsters) { if (data.monsters[name] >= 100 && D.drops.monsters[name]) { data.drops[name] = D.drops.monsters[name]; } + if (data.monsters[name] >= 100 && D.drops.monsters_home_server[name]) { + data.drops_home[name] = D.drops.monsters_home_server[name]; + } } } if (D.drops.maps.global) { @@ -4705,6 +4711,9 @@ function init_io() { for (var name in data.drops) { register_table(data.drops[name]); } + for (var name in data.drops_home) { //include home tables + register_table(data.drops_home[name]); + } for (var name in data.maps) { register_table(data.maps[name]); }