| @@ -376,6 +376,7 @@ function createHelperUpgrades() { | |||||
| function createClickVictimUpgrades() { | function createClickVictimUpgrades() { | ||||
| const prefix = "click-"; | const prefix = "click-"; | ||||
| let counter = 1; | let counter = 1; | ||||
| let previous = "micro"; | |||||
| Object.entries(clickVictimUpgradeText).forEach(([key, text]) => { | Object.entries(clickVictimUpgradeText).forEach(([key, text]) => { | ||||
| upgrades[prefix + key] = { | upgrades[prefix + key] = { | ||||
| "name": text.name, | "name": text.name, | ||||
| @@ -387,14 +388,20 @@ function createClickVictimUpgrades() { | |||||
| "effects": [ | "effects": [ | ||||
| { | { | ||||
| "type": "click-victim", | "type": "click-victim", | ||||
| "id": "anthro" | |||||
| "id": key | |||||
| } | } | ||||
| ], | ], | ||||
| "prereqs": { | "prereqs": { | ||||
| "upgrades": [ | |||||
| ] | |||||
| } | } | ||||
| }; | }; | ||||
| if (counter > 1) { | |||||
| upgrades[prefix + key].prereqs.upgrades.push(prefix + previous); | |||||
| } | |||||
| counter += 1; | counter += 1; | ||||
| previous = key; | |||||
| }); | }); | ||||
| } | } | ||||
| @@ -925,5 +932,73 @@ const clickVictimUpgradeText = { | |||||
| "anthro": { | "anthro": { | ||||
| "name": "Same-Size Prey", | "name": "Same-Size Prey", | ||||
| "desc": "Devour an anthro with every click" | "desc": "Devour an anthro with every click" | ||||
| }, | |||||
| "car": { | |||||
| "name": "Car Crusher", | |||||
| "desc": "Consume a car with every click" | |||||
| }, | |||||
| "bus": { | |||||
| "name": "Bus Buffet", | |||||
| "desc": "Swallow an entire bus with every click" | |||||
| }, | |||||
| "house": { | |||||
| "name": "Homewrecker", | |||||
| "desc": "Eat a home with every click" | |||||
| }, | |||||
| "apartment": { | |||||
| "name": "Rent-Seeker", | |||||
| "desc": "Guzzle an apartment with every click" | |||||
| }, | |||||
| "block": { | |||||
| "name": "Block Breaker", | |||||
| "desc": "Gulp an entire block with every click" | |||||
| }, | |||||
| "town": { | |||||
| "name": "Town Terrorizer", | |||||
| "desc": "Bolt down a whole town with every click" | |||||
| }, | |||||
| "city": { | |||||
| "name": "City Cafe", | |||||
| "desc": "Feast on an entire city with every click" | |||||
| }, | |||||
| "metro": { | |||||
| "name": "Metro Muncher", | |||||
| "desc": "Polish off a metropolis with every click" | |||||
| }, | |||||
| "county": { | |||||
| "name": "County Glurk", | |||||
| "desc": "Ingest an entire county with every click" | |||||
| }, | |||||
| "state": { | |||||
| "name": "Stomached State", | |||||
| "desc": "Gobble an entire state with every click" | |||||
| }, | |||||
| "country": { | |||||
| "name": "Country Chow", | |||||
| "desc": "Erase a country with every click" | |||||
| }, | |||||
| "continent": { | |||||
| "name": "Continental Drift", | |||||
| "desc": "Chow down on a continent with every click" | |||||
| }, | |||||
| "planet": { | |||||
| "name": "Popcorn Planets", | |||||
| "desc": "Ingest a planet whole with every click" | |||||
| }, | |||||
| "solar-system": { | |||||
| "name": "Solar Snacks", | |||||
| "desc": "Dine on whole solar systems with every click" | |||||
| }, | |||||
| "galaxy": { | |||||
| "name": "Galactic Center", | |||||
| "desc": "Dispatch a galaxy with every click" | |||||
| }, | |||||
| "universe": { | |||||
| "name": "Universal Predator", | |||||
| "desc": "Digest a universe with every click" | |||||
| }, | |||||
| "multiverse": { | |||||
| "name": "Omniscience", | |||||
| "desc": "Gorge on the multiverse" | |||||
| } | } | ||||
| }; | }; | ||||