diff --git a/data/buildingsData.js b/data/buildingsData.js index 98acd96..612eb46 100644 --- a/data/buildingsData.js +++ b/data/buildingsData.js @@ -138,7 +138,9 @@ export const buildingsData = { spritePlace: "city", description: "", jobs: { + worker: 3, artificer: 2, + patrician: 1, }, build: { wood: 20, @@ -161,7 +163,7 @@ export const buildingsData = { jobs: { worker: 2, artificer: 2, - patrician: 1, + noble: 1, }, build: { wood: 20, @@ -203,6 +205,7 @@ export const buildingsData = { jobs: { worker: 4, artificer: 2, + patrician: 1, }, build: { wood: 20, @@ -264,7 +267,8 @@ export const buildingsData = { spritePlace: "city", description: "", jobs: { - worker: 2, + worker: 4, + noble: 1, }, build: { wood: 12, @@ -389,4 +393,22 @@ export const buildingsData = { leather: 0.75 } }, + barracks: { + name: "Quartel", + spriteSize: "lg", + spritePlace: "city", + description: "", + jobs: { + soldier: 50, + }, + build: { + wood: 100, + stone: 30, + }, + maintenance: { + gold: 5, + }, + production: { + } + }, } \ No newline at end of file diff --git a/data/gameData.js b/data/gameData.js index bfa02a8..b000f8f 100644 --- a/data/gameData.js +++ b/data/gameData.js @@ -15,6 +15,8 @@ export const game = { modifiers:{}, activeEvents:{}, + popDeaths:{}, + impacts: { popGrowth: 1, popDeath: 1, @@ -33,7 +35,6 @@ export const game = { food_consumption: 0, knowledge: 0, popLimit: 0, - lifeQuality: 0, productivity: 0, happiness: 0.5, diff --git a/data/popsData.js b/data/popsData.js index dffcb39..c08ae8f 100644 --- a/data/popsData.js +++ b/data/popsData.js @@ -34,6 +34,14 @@ export const popsData = { tools: 0.02, }, }, + soldier:{ + name: "Soldado", + food_consumption: 0.1, + consumption: { + clothes: 0.01, + weapon: 0.01, + }, + }, artificer:{ name: "Artífice", food_consumption: 0.05, @@ -49,6 +57,7 @@ export const popsData = { consumption: { ale: 0.05, clothes: 0.03, + wine: 0.05, }, }, noble:{ @@ -57,6 +66,7 @@ export const popsData = { consumption: { ale: 0.1, clothes: 0.05, + wine: 0.1, }, }, } \ No newline at end of file diff --git a/img/background.webp b/img/background.webp new file mode 100644 index 0000000..c071133 Binary files /dev/null and b/img/background.webp differ diff --git a/img/grass.webp b/img/grass.webp deleted file mode 100644 index 52facfd..0000000 Binary files a/img/grass.webp and /dev/null differ diff --git a/img/icons/pop-deaths/cold.png b/img/icons/pop-deaths/cold.png new file mode 100644 index 0000000..6d4a0a7 Binary files /dev/null and b/img/icons/pop-deaths/cold.png differ diff --git a/img/icons/pop-deaths/homeless.png b/img/icons/pop-deaths/homeless.png new file mode 100644 index 0000000..5072137 Binary files /dev/null and b/img/icons/pop-deaths/homeless.png differ diff --git a/img/icons/pop-deaths/hungry.png b/img/icons/pop-deaths/hungry.png new file mode 100644 index 0000000..9fddab2 Binary files /dev/null and b/img/icons/pop-deaths/hungry.png differ diff --git a/img/icons/pop-deaths/natural.png b/img/icons/pop-deaths/natural.png new file mode 100644 index 0000000..ddb4d12 Binary files /dev/null and b/img/icons/pop-deaths/natural.png differ diff --git a/img/icons/soldier.png b/img/icons/soldier.png new file mode 100644 index 0000000..3dbbf88 Binary files /dev/null and b/img/icons/soldier.png differ diff --git a/index.html b/index.html index 7b71920..c284bed 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,11 @@ TownRise +
+ + +

+