|
- "use strict";
-
- const resourceTypes = {
- "food": {
- name: "Food"
- }
- }
- const buildings = {
- "micro": {
- "name": "Micro",
- "plural": "Micros",
- "cost": 1e1,
- "prod": 1e-1/1
- },
- "anthro": {
- "name": "Anthro",
- "plural": "Anthros",
- "cost": 1e2,
- "prod": 1e0/1.1
- },
- "car": {
- "name": "Car",
- "plural": "Cars",
- "cost": 1e3,
- "prod": 1e1/1.2
- },
- "bus": {
- "name": "Bus",
- "plural": "Buses",
- "cost": 1e4,
- "prod": 1e2/1.3
- },
- "house": {
- "name": "House",
- "plural": "Houses",
- "cost": 1e5,
- "prod": 1e3/1.4
- },
- "apartment": {
- "name": "Apartment",
- "plural": "Apartments",
- "cost": 1e6,
- "prod": 1e4/1.5
- },
- "block": {
- "name": "Block",
- "plural": "Blocks",
- "cost": 1e7,
- "prod": 1e5/1.6
- },
- "town": {
- "name": "Town",
- "plural": "Towns",
- "cost": 1e8,
- "prod": 1e6/1.7
- },
- "city": {
- "name": "City",
- "plural": "Cities",
- "cost": 1e9,
- "prod": 1e7/1.8
- },
- "metro": {
- "name": "Metropolis",
- "plural": "Metropolises",
- "cost": 1e10,
- "prod": 1e8/1.9
- },
- "county": {
- "name": "County",
- "plural": "Counties",
- "cost": 1e11,
- "prod": 1e9/2
- },
- "state": {
- "name": "State",
- "plural": "States",
- "cost": 1e12,
- "prod": 1e10/2.1
- },
- "country": {
- "name": "Country",
- "plural": "Countries",
- "cost": 1e13,
- "prod": 1e11/2.2
- },
- "continent": {
- "name": "Continent",
- "plural": "Continents",
- "cost": 1e14,
- "prod": 1e12/2.3
- },
- "planet": {
- "name": "Planet",
- "plural": "Planets",
- "cost": 1e15,
- "prod": 1e13/2.4
- }
- }
-
- const upgrade_types = {
- "prod-2x": {
- "apply": function(productivity) {
- return productivity * 2;
- },
- "desc": function(name) {
- return "2x food production from " + name;
- }
- }
- }
-
- const upgrades = {
- "micro-prod-1": {
- "name": "Bigger Micros",
- "desc": "A macro micro? Certainly more filling.",
- "cost": {
- "food": buildings.micro.cost * 5
- },
- "effect": {
- "type": "prod-2x",
- "target": "micro"
- },
- "prereqs": {
- "buildings": {
- "micro": 1
- }
- }
- },
- "micro-prod-2": {
- "name": "Beefy Micros",
- "desc": "25% more protein, 10% fewer carbs.",
- "cost": {
- "food": buildings.micro.cost * 50
- },
- "effect": {
- "type": "prod-2x",
- "target": "micro"
- },
- "prereqs": {
- "buildings": {
- "micro": 10
- }
- }
- },
- "anthro-prod-1": {
- "name": "Willing Prey",
- "desc": "Why bother chasing it down?",
- "cost": {
- "food": buildings.anthro.cost * 5
- },
- "effect": {
- "type": "prod-2x",
- "target": "anthro"
- },
- "prereqs": {
- "buildings": {
- "anthro": 1
- }
- }
- }
- }
|