Zone/Mapper

* show fishing nodes on map
This commit is contained in:
Sarjuuk
2021-10-17 19:22:57 +02:00
parent 41f415095a
commit e4b8a8e908
8 changed files with 20 additions and 11 deletions

View File

@@ -215,6 +215,9 @@ class ZonePage extends GenericPage
case 9: case 9:
$what = 'book'; $what = 'book';
break; break;
case 25:
$what = 'pool';
break;
case 0: case 0:
if ($tpl['type'] == 19) if ($tpl['type'] == 19)
$what = 'mail'; $what = 'mail';
@@ -414,7 +417,7 @@ class ZonePage extends GenericPage
foreach ($dataz as &$data) foreach ($dataz as &$data)
$data = array_values($data); $data = array_values($data);
if (!in_array($what, ['vein', 'herb', 'rare'])) if (!in_array($what, ['vein', 'herb', 'rare', 'pool']))
{ {
$foo = []; $foo = [];
foreach ($dataz as $d) foreach ($dataz as $d)

View File

@@ -86,7 +86,7 @@ ShowOnMap.prototype.construct = function() {
if (pin.list.length == 1) { if (pin.list.length == 1) {
url = (g_types[pin.list[0].type] && pin.list[0].id ? '?' + g_types[pin.list[0].type] + '=' + pin.list[0].id : ''); url = (g_types[pin.list[0].type] && pin.list[0].id ? '?' + g_types[pin.list[0].type] + '=' + pin.list[0].id : '');
} }
if (i == 'rare' || i == 'herb' || i == 'vein') { if (i == 'rare' || i == 'herb' || i == 'vein' || i == 'pool') {
tooltip[1] = submenu.length + 1; tooltip[1] = submenu.length + 1;
} }
if (coords[pin.level] == undefined) { if (coords[pin.level] == undefined) {
@@ -121,7 +121,7 @@ ShowOnMap.prototype.construct = function() {
allCoords[l] = coords[l]; allCoords[l] = coords[l];
} }
} }
allLegend[submenu.length] = [p, url]; allLegend[submenu.length] = [group[p][0].name, url];
} }
} }
if (submenu.length > 0) { if (submenu.length > 0) {
@@ -482,7 +482,7 @@ ShowOnMap.prototype.checkMenu = function(path) {
var maxLabel = label.length - 1; var maxLabel = label.length - 1;
var str = ''; var str = '';
var singlePinOptions = { 'rare': true, 'herb': true, 'vein': true }; var singlePinOptions = { 'rare': true, 'herb': true, 'vein': true, 'pool': true };
for (var i = 0; i < label.length; ++i) { for (var i = 0; i < label.length; ++i) {
if (i > 0 && singlePinOptions[label[0][0]]) { if (i > 0 && singlePinOptions[label[0][0]]) {
var span = $('span', this._legendContents); var span = $('span', this._legendContents);

View File

@@ -3244,7 +3244,8 @@ var LANG = {
spirithealer: "Geistheiler", spirithealer: "Geistheiler",
boss: "Bosse", boss: "Bosse",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "Briefkästen" mail: "Briefkästen",
pool: "Fischschwärme"
}, },
markup_b: "Fett", markup_b: "Fett",

View File

@@ -3292,7 +3292,8 @@ var LANG = {
spirithealer: "Spirit Healers", spirithealer: "Spirit Healers",
boss: "Bosses", boss: "Bosses",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "Mailbox" mail: "Mailbox",
pool: "Fishing Pools"
}, },
markup_b: "Bold", markup_b: "Bold",

View File

@@ -290,7 +290,7 @@ var mn_objects = [
[9,"Libros"], [9,"Libros"],
[3,"Contenedores"], [3,"Contenedores"],
[-5,"Cofres"], [-5,"Cofres"],
[25,"[Fishing Pools]"], [25,"Bancos de peces"],
[-3,"Hierbas"], [-3,"Hierbas"],
[-4,"Venas de minerales"], [-4,"Venas de minerales"],
[-2,"Misión"], [-2,"Misión"],
@@ -3245,7 +3245,8 @@ var LANG = {
spirithealer: "Espíritus sanadores", spirithealer: "Espíritus sanadores",
boss: "Jefes", boss: "Jefes",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "Buzón" mail: "Buzón",
pool: "Bancos de peces"
}, },
markup_b: "Negrita", markup_b: "Negrita",

View File

@@ -3245,7 +3245,8 @@ var LANG = {
spirithealer: "Esprits soigneurs", spirithealer: "Esprits soigneurs",
boss: "Boss", boss: "Boss",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "Boîte aux lettres" mail: "Boîte aux lettres",
pool: "Bancs de poissons"
}, },
markup_b: "Gras", markup_b: "Gras",

View File

@@ -3245,7 +3245,8 @@ var LANG = {
spirithealer: "Целители душ", spirithealer: "Целители душ",
boss: "Боссы", boss: "Боссы",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "Почтовый ящик" mail: "Почтовый ящик",
pool: "Рыболовные лунки",
}, },
markup_b: "Жирный", markup_b: "Жирный",

View File

@@ -3292,7 +3292,8 @@ var LANG = {
spirithealer: "灵魂医者", spirithealer: "灵魂医者",
boss: "首领", boss: "首领",
areatrigger: "Areatrigger", // aowow - custom areatrigger: "Areatrigger", // aowow - custom
mail: "邮箱" mail: "邮箱",
pool: "钓鱼池"
}, },
markup_b: "勇敢", markup_b: "勇敢",