|  |  | @@ -137,6 +137,14 @@ const effect_types = { | 
		
	
		
			
			|  |  |  | "desc": function(effect) { | 
		
	
		
			
			|  |  |  | return "+" + round(effect.amount * 100) + "% food/sec from " + buildings[effect.helped].name + " for every " + buildings[effect.helper].name + " owned."; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | "click": { | 
		
	
		
			
			|  |  |  | "apply": function(effect, bonus, productivity) { | 
		
	
		
			
			|  |  |  | return bonus + productivity * effect.amount; | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | "desc": function(effect) { | 
		
	
		
			
			|  |  |  | return round(effect.amount * 100) + "% of food/sec gained per click"; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | @@ -171,6 +179,7 @@ function createTemplateUpgrades() { | 
		
	
		
			
			|  |  |  | console.log("qwewq"); | 
		
	
		
			
			|  |  |  | createProdUpgrades(); | 
		
	
		
			
			|  |  |  | createProdAllUpgrades(); | 
		
	
		
			
			|  |  |  | createClickUpgrades(); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const prodUpgradeCounts = [1, 5, 10, 25, 50, 75, 100]; | 
		
	
	
		
			
				|  |  | @@ -245,6 +254,41 @@ function createProdAllUpgrades() { | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function createClickUpgrades() { | 
		
	
		
			
			|  |  |  | let prefix = "prod-click-"; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | let counter = 1 ; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | for (let contents of clickUpgradeText) { | 
		
	
		
			
			|  |  |  | upgrades[prefix + counter] = { | 
		
	
		
			
			|  |  |  | name: contents.name, | 
		
	
		
			
			|  |  |  | desc: contents.desc, | 
		
	
		
			
			|  |  |  | cost: { | 
		
	
		
			
			|  |  |  | food: Math.pow(10, (counter*2)+1) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | effects: [ | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | type: "click", | 
		
	
		
			
			|  |  |  | amount: 0.01 | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | ], | 
		
	
		
			
			|  |  |  | prereqs: { | 
		
	
		
			
			|  |  |  | productivity: { | 
		
	
		
			
			|  |  |  | food: Math.pow(10, counter) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | if (counter > 1) { | 
		
	
		
			
			|  |  |  | upgrades[prefix + counter]["prereqs"].upgrades = [ | 
		
	
		
			
			|  |  |  | prefix + (counter - 1) | 
		
	
		
			
			|  |  |  | ]; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | counter += 1; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | let prodUpgradeText = { | 
		
	
		
			
			|  |  |  | "micro": [ | 
		
	
		
			
			|  |  |  | { | 
		
	
	
		
			
				|  |  | @@ -369,3 +413,26 @@ let prodAllUpgradeText = [ | 
		
	
		
			
			|  |  |  | "desc": "Digest them all." | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const clickUpgradeText = [ | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "name": "Grabby Hands", | 
		
	
		
			
			|  |  |  | "desc": "" | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "name": "", | 
		
	
		
			
			|  |  |  | "desc": "" | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "name": "", | 
		
	
		
			
			|  |  |  | "desc": "" | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "name": "", | 
		
	
		
			
			|  |  |  | "desc": "" | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | "name": "", | 
		
	
		
			
			|  |  |  | "desc": "" | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | ] |