diff --git a/modules/ui/resources-editor.js b/modules/ui/resources-editor.js index a9ddaf84..9c1bfb76 100644 --- a/modules/ui/resources-editor.js +++ b/modules/ui/resources-editor.js @@ -28,17 +28,19 @@ function editResources() { // // {i: 33, name: "Saltpeter", icon: "resource-saltpeter", color: "#e6e3e3", value: 8, chance: 2, model: "habitability", bonus: {artillery: 3}} for (const r of pack.resources) { const stroke = Resources.getStroke(r.color); - lines += `
+ lines += `
- - + + - - + +
${r.cells}
@@ -97,12 +99,12 @@ function editResources() { } function downloadResourcesData() { - let data = "Id,Resource,Type,Color,Icon,Value,Chance,Model,Cells\n"; // headers + let data = "Id,Resource,Category,Color,Icon,Value,Chance,Model,Cells\n"; // headers body.querySelectorAll(":scope > div").forEach(function(el) { data += el.dataset.id + ","; data += el.dataset.name + ","; - data += el.dataset.type + ","; + data += el.dataset.category + ","; data += el.dataset.color + ","; data += el.dataset.icon + ","; data += el.dataset.value + ",";