mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 23:57:23 +01:00
refactor: Update relief icon handling and streamline texture atlas integration
This commit is contained in:
parent
b17b417d1b
commit
256f36015b
5 changed files with 46 additions and 58 deletions
|
|
@ -1122,10 +1122,11 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
terrainEl.querySelectorAll("use").forEach(u => {
|
||||
const href = u.getAttribute("href") || u.getAttribute("xlink:href") || "";
|
||||
if (!href) return;
|
||||
const icon = href.replace("#", "");
|
||||
const x = +u.getAttribute("x");
|
||||
const y = +u.getAttribute("y");
|
||||
const s = +u.getAttribute("width");
|
||||
relief.push({i: relief.length, href, x, y, s});
|
||||
relief.push({i: relief.length, icon, x, y, s});
|
||||
});
|
||||
terrainEl.innerHTML = "";
|
||||
pack.relief = relief;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue