|  |  | @@ -308,8 +308,10 @@ function createTemplateUpgrades() { | 
		
	
		
			
			|  |  |  | createClickVictimUpgrades(); | 
		
	
		
			
			|  |  |  | createPowerupFreqUpgrades(); | 
		
	
		
			
			|  |  |  | createFreeBuildingPowerups(); | 
		
	
		
			
			|  |  |  | createNews(); | 
		
	
		
			
			|  |  |  | deepFreeze(upgrades); | 
		
	
		
			
			|  |  |  | deepFreeze(powerups); | 
		
	
		
			
			|  |  |  | deepFreeze(news); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const prodUpgradeCounts = [1, 5, 10, 25, 50, 75, 100]; | 
		
	
	
		
			
				|  |  | @@ -1176,33 +1178,52 @@ const news = [ | 
		
	
		
			
			|  |  |  | state => "This is also news.", | 
		
	
		
			
			|  |  |  | state => "SPORTS!" | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | condition: state => { | 
		
	
		
			
			|  |  |  | return state.resources.food > 100; | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | lines: [ | 
		
	
		
			
			|  |  |  | state => "You have at least 100 food. Wow!" | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | condition: state => { | 
		
	
		
			
			|  |  |  | return state.currentProductivity.food > 100; | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | lines: [ | 
		
	
		
			
			|  |  |  | state => "You're eating more than 100 food per second. Wow!" | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | condition: state => { | 
		
	
		
			
			|  |  |  | return state.belongings.micro.count >= 50; | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | lines: [ | 
		
	
		
			
			|  |  |  | state => "You have at least 50 micros. Wow!" | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function createNews() { | 
		
	
		
			
			|  |  |  | createNewsFoodAmount(); | 
		
	
		
			
			|  |  |  | createNewsFoodRate(); | 
		
	
		
			
			|  |  |  | createNewsBuildingCount(); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function createNewsFoodAmount() { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function createNewsFoodRate() { | 
		
	
		
			
			|  |  |  | let counter = 0; | 
		
	
		
			
			|  |  |  | for (let set of newsFoodRateText) { | 
		
	
		
			
			|  |  |  | const factor = counter; | 
		
	
		
			
			|  |  |  | news.push({ | 
		
	
		
			
			|  |  |  | condition: state => { | 
		
	
		
			
			|  |  |  | return state.currentProductivity.food >= 5*Math.pow(10, factor) && | 
		
	
		
			
			|  |  |  | state.currentProductivity.food < 5*Math.pow(10, (factor+1)) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | lines: set | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | counter += 1; | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function createNewsBuildingCount() { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const newsFoodRateText = [ | 
		
	
		
			
			|  |  |  | [ | 
		
	
		
			
			|  |  |  | state => "Your neighbors are complaining about the noise", | 
		
	
		
			
			|  |  |  | state => "You are a very hungry caterpillar" | 
		
	
		
			
			|  |  |  | ], | 
		
	
		
			
			|  |  |  | [ | 
		
	
		
			
			|  |  |  | state => "You ate your neighbors", | 
		
	
		
			
			|  |  |  | state => "Your former neighbors' neighbors are complaining about the noise" | 
		
	
		
			
			|  |  |  | ], | 
		
	
		
			
			|  |  |  | [ | 
		
	
		
			
			|  |  |  | state => "You no longer have any neighbors" | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const powerups = { | 
		
	
		
			
			|  |  |  | "instant-food": { | 
		
	
		
			
			|  |  |  | name: "Free Food", | 
		
	
	
		
			
				|  |  | 
 |