diff --git a/code/boot.js b/code/boot.js index cf811d91..c2635a0a 100644 --- a/code/boot.js +++ b/code/boot.js @@ -584,6 +584,7 @@ function boot() { window.setupSidebarToggle(); window.updateGameScore(); window.artifact.setup(); + window.ornaments.setup(); window.setupPlayerStat(); window.setupTooltips(); window.chat.setup(); diff --git a/code/map_data_render.js b/code/map_data_render.js index 612ad048..45a04f5d 100644 --- a/code/map_data_render.js +++ b/code/map_data_render.js @@ -44,7 +44,7 @@ window.Render.prototype.clearPortalsBelowLevel = function(level) { for (var guid in window.portals) { var p = portals[guid]; // clear portals below specified level - unless it's the selected portal, or it's relevant to artifacts - if (parseInt(p.options.level) < level && guid !== selectedPortal && !artifact.isInterestingPortal(guid)) { + if (parseInt(p.options.level) < level && guid !== selectedPortal && !artifact.isInterestingPortal(guid) && !ornaments.isInterestingPortal(p)) { this.deletePortalEntity(guid); count++; } @@ -433,7 +433,7 @@ window.Render.prototype.resetPortalClusters = function() { var guid = c[i]; var p = window.portals[guid]; var layerGroup = portalsFactionLayers[parseInt(p.options.level)][p.options.team]; - if ((i