mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
better model names
This commit is contained in:
parent
ec7cbb74cf
commit
02d0782386
2 changed files with 88 additions and 87 deletions
|
|
@ -29,7 +29,7 @@ function editResources() {
|
|||
const categoryOptions = category => categories.map(c => `<option ${c === category ? "selected" : ""} value="${c}">${c}</option>`).join("");
|
||||
|
||||
const models = [...new Set(pack.resources.map(r => r.model))].sort();
|
||||
const modelOptions = model => models.map(m => `<option ${m === model ? "selected" : ""} value="${m}">${m}</option>`).join("");
|
||||
const modelOptions = model => models.map(m => `<option ${m === model ? "selected" : ""} value="${m}">${m.replaceAll("_", " ")}</option>`).join("");
|
||||
|
||||
// // {i: 33, name: "Saltpeter", icon: "resource-saltpeter", color: "#e6e3e3", value: 8, chance: 2, model: "habitability", bonus: {artillery: 3}}
|
||||
for (const r of pack.resources) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue