mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
resource styling - all 40 are done
This commit is contained in:
parent
7c7c201e4a
commit
fc012f73c0
2 changed files with 63 additions and 89 deletions
131
index.html
131
index.html
File diff suppressed because one or more lines are too long
|
|
@ -36,23 +36,23 @@
|
||||||
{i: 20, name: "Camels", icon: "resource-camels", color: "#C19A6B", value: 13, chance: 4, model: "desert", bonus: {cavalry: 1}},
|
{i: 20, name: "Camels", icon: "resource-camels", color: "#C19A6B", value: 13, chance: 4, model: "desert", bonus: {cavalry: 1}},
|
||||||
{i: 21, name: "Hemp", icon: "resource-hemp", color: "#069a06", value: 2, chance: 4, model: "forest", bonus: {fleet: 2}},
|
{i: 21, name: "Hemp", icon: "resource-hemp", color: "#069a06", value: 2, chance: 4, model: "forest", bonus: {fleet: 2}},
|
||||||
{i: 22, name: "Pearls", icon: "resource-pearls", color: "#EAE0C8", value: 35, chance: 3, model: "tropicalWater", bonus: {prestige: 1}},
|
{i: 22, name: "Pearls", icon: "resource-pearls", color: "#EAE0C8", value: 35, chance: 3, model: "tropicalWater", bonus: {prestige: 1}},
|
||||||
{i: 23, name: "Gemstones", icon: "resource-gemstones", color: "#d6a7eb", value: 35, chance: 2, model: "mountains", bonus: {prestige: 1}},
|
{i: 23, name: "Gemstones", icon: "resource-gemstones", color: "#e463e4", value: 35, chance: 2, model: "mountains", bonus: {prestige: 1}},
|
||||||
{i: 24, name: "Dyes", icon: "resource-dyes", color: "#eba7e3", value: 15, chance: .5, model: "habitableOrWater", bonus: {prestige: 1}},
|
{i: 24, name: "Dyes", icon: "resource-dyes", color: "#fecdea", value: 15, chance: .5, model: "habitableOrWater", bonus: {prestige: 1}},
|
||||||
{i: 25, name: "Incense", icon: "resource-incense", color: "#ebe5a7", value: 25, chance: 2, model: "desertAndTropicalForest", bonus: {prestige: 2}},
|
{i: 25, name: "Incense", icon: "resource-incense", color: "#ebe5a7", value: 25, chance: 2, model: "desertAndTropicalForest", bonus: {prestige: 2}},
|
||||||
{i: 26, name: "Silk", icon: "resource-silk", color: "#F5F4F1", value: 30, chance: 1, model: "tropicalForest", bonus: {prestige: 2}},
|
{i: 26, name: "Silk", icon: "resource-silk", color: "#e0f0f8", value: 30, chance: 1, model: "tropicalForest", bonus: {prestige: 2}},
|
||||||
{i: 27, name: "Spices", icon: "resource-spices", color: "#e99c75", value: 30, chance: 2, model: "tropicalForest", bonus: {prestige: 2}},
|
{i: 27, name: "Spices", icon: "resource-spices", color: "#e99c75", value: 30, chance: 2, model: "tropicalForest", bonus: {prestige: 2}},
|
||||||
{i: 28, name: "Amber", icon: "resource-amber", color: "#FFE597", value: 15, chance: 2, model: "forestSeashore", bonus: {prestige: 1}},
|
{i: 28, name: "Amber", icon: "resource-amber", color: "#ffc233", value: 15, chance: 2, model: "forestSeashore", bonus: {prestige: 1}},
|
||||||
{i: 29, name: "Furs", icon: "resource-furs", color: "#635948", value: 13, chance: 2, model: "borealForest", bonus: {prestige: 1}},
|
{i: 29, name: "Furs", icon: "resource-furs", color: "#8a5e51", value: 13, chance: 2, model: "borealForest", bonus: {prestige: 1}},
|
||||||
{i: 30, name: "Sheeps", icon: "resource-sheeps", color: "#53b574", value: 2, chance: 5, model: "pasturesAndTemperateForest", bonus: {infantry: 1}},
|
{i: 30, name: "Sheeps", icon: "resource-sheeps", color: "#53b574", value: 2, chance: 5, model: "pasturesAndTemperateForest", bonus: {infantry: 1}},
|
||||||
{i: 31, name: "Slaves", icon: "resource-slaves", color: "#757575", value: 10, chance: 3, model: "lessHabitableSeashore", bonus: {population: 2}},
|
{i: 31, name: "Slaves", icon: "resource-slaves", color: "#757575", value: 10, chance: 3, model: "lessHabitableSeashore", bonus: {population: 2}},
|
||||||
{i: 32, name: "Tar", icon: "resource-tar", color: "#424242", value: 3, chance: 3, model: "forestAndTaiga", bonus: {fleet: 1}},
|
{i: 32, name: "Tar", icon: "resource-tar", color: "#727272", value: 3, chance: 3, model: "forestAndTaiga", bonus: {fleet: 1}},
|
||||||
{i: 33, name: "Saltpeter", icon: "resource-saltpeter", color: "#e6e3e3", value: 8, chance: 2, model: "habitability", bonus: {artillery: 3}},
|
{i: 33, name: "Saltpeter", icon: "resource-saltpeter", color: "#e6e3e3", value: 8, chance: 2, model: "habitability", bonus: {artillery: 3}},
|
||||||
{i: 34, name: "Coal", icon: "resource-coal", color: "#36454f", value: 2, chance: 7, model: "hills", bonus: {artillery: 2}},
|
{i: 34, name: "Coal", icon: "resource-coal", color: "#36454f", value: 2, chance: 7, model: "hills", bonus: {artillery: 2}},
|
||||||
{i: 35, name: "Oil", icon: "resource-oil", color: "#363636", value: 5, chance: 2, model: "lessHabitableOrWater", bonus: {artillery: 1}},
|
{i: 35, name: "Oil", icon: "resource-oil", color: "#565656", value: 5, chance: 2, model: "lessHabitableOrWater", bonus: {artillery: 1}},
|
||||||
{i: 36, name: "Tropical timber", icon: "resource-tropicalTimber", color: "#dbb7b4", value: 20, chance: 2, model: "tropicalForest", bonus: {prestige: 1}},
|
{i: 36, name: "Tropical timber", icon: "resource-tropicalTimber", color: "#a45a52", value: 20, chance: 2, model: "tropicalForest", bonus: {prestige: 1}},
|
||||||
{i: 37, name: "Whales", icon: "resource-whales", color: "#ffffff", value: 2, chance: 2, model: "colderWaters", bonus: {population: 1}},
|
{i: 37, name: "Whales", icon: "resource-whales", color: "#cccccc", value: 2, chance: 2, model: "colderWaters", bonus: {population: 1}},
|
||||||
{i: 38, name: "Sugar", icon: "resource-sugar", color: "#7abf87", value: 3, chance: 3, model: "tropicalForest", bonus: {population: 1}},
|
{i: 38, name: "Sugar", icon: "resource-sugar", color: "#7abf87", value: 3, chance: 3, model: "tropicalForest", bonus: {population: 1}},
|
||||||
{i: 39, name: "Tea", icon: "resource-tea", color: "#d0f0c0", value: 10, chance: 2, model: "tropicalForest", bonus: {prestige: 1}},
|
{i: 39, name: "Tea", icon: "resource-tea", color: "#d0f0c0", value: 10, chance: 3, model: "tropicalHillyForest", bonus: {prestige: 1}},
|
||||||
{i: 40, name: "Tobacco", icon: "resource-tobacco", color: "#6D5843", value: 10, chance: 2, model: "tropicalForest", bonus: {prestige: 1}},
|
{i: 40, name: "Tobacco", icon: "resource-tobacco", color: "#6D5843", value: 10, chance: 2, model: "tropicalForest", bonus: {prestige: 1}},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
desertAndTropicalForest: i => [1, 7].includes(cells.biome[i]),
|
desertAndTropicalForest: i => [1, 7].includes(cells.biome[i]),
|
||||||
tropicalForest: i => cells.biome[i] === 7,
|
tropicalForest: i => cells.biome[i] === 7,
|
||||||
tropicalWater: i => cells.t[i] === -1 && temp(i) >= 18,
|
tropicalWater: i => cells.t[i] === -1 && temp(i) >= 18,
|
||||||
|
tropicalHillyForest: i => cells.h[i] >= 40 && cells.biome[i] === 7,
|
||||||
subAndTropicalWater: i => cells.t[i] === -1 && temp(i) >= 14,
|
subAndTropicalWater: i => cells.t[i] === -1 && temp(i) >= 14,
|
||||||
habitableOrWater: i => biomesData.habitability[cells.biome[i]] || cells.t[i] === -1,
|
habitableOrWater: i => biomesData.habitability[cells.biome[i]] || cells.t[i] === -1,
|
||||||
forestSeashore: i => cells.t[i] === 1 && [6, 7, 8, 9].includes(cells.biome[i]),
|
forestSeashore: i => cells.t[i] === 1 && [6, 7, 8, 9].includes(cells.biome[i]),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue