diff --git a/constants.js b/constants.js index dfb85e9..27b2b31 100644 --- a/constants.js +++ b/constants.js @@ -27,3 +27,27 @@ const buildings = { "prod": 100 } } + +const upgrade_descs = { + "prod-2x": { + "apply": function(productivity) { + return productivity * 2; + }, + "desc": function(name) { + return "2x food production from " + name; + } + } +} + +const upgrade_info = { + "micro-prod-1": { + "name": "Bigger Micros", + "desc": "A macro micro? Certainly more filling.", + "effect": "prod-2x" + }, + "micro-prod-2": { + "name": "Beefy Micros", + "desc": "25% more protein, 10% fewer carbs.", + "effect": "prod-2x" + } +} diff --git a/design/overview.md b/design/overview.md index 51354fb..0774732 100644 --- a/design/overview.md +++ b/design/overview.md @@ -19,7 +19,7 @@ Each tier of building: The cost for a building is: -$$1.02^{\textrm{count}} \times \textrm{base cost}$$ +$$1.15^{\textrm{count}} \times \textrm{base cost}$$ ### Upgrades diff --git a/gorge.css b/gorge.css index 31b4a2e..eb97b0e 100644 --- a/gorge.css +++ b/gorge.css @@ -17,14 +17,37 @@ body.dark { width: 100px; height: 75px; } -#buildings-area button { + +.building-button { display: block; width: 100%; - height: 50px; + height: 150px; background-color: #222; color: #eee; + border: 5px; + border-color: #666; + border-style: solid; +} + +.building-button .building-button-name { + font-size: 24px; + position: relative; + left: 25%; + top: 10%; } -#buildings-area button:not(:last-child) { +.building-button .building-button-cost { + font-size: 18px; + position: relative; + left: 25%; + top: 40%; +} + +.building-button:hover { + background-color: #333; +} +.building-button:active { + border-color: #333; + background-color: #111; } diff --git a/gorge.html b/gorge.html index b2fb857..be52121 100644 --- a/gorge.html +++ b/gorge.html @@ -23,10 +23,21 @@