| @@ -512,12 +512,13 @@ function createClickVictimUpgrades() { | |||||
| let counter = 1; | let counter = 1; | ||||
| let previous = "micro"; | let previous = "micro"; | ||||
| Object.entries(clickVictimUpgradeText).forEach(([key, text]) => { | Object.entries(clickVictimUpgradeText).forEach(([key, text]) => { | ||||
| let newColor = clickVictimUpgradeColors[counter - 1] + "dd"; | |||||
| upgrades[prefix + key] = { | upgrades[prefix + key] = { | ||||
| "name": text.name, | "name": text.name, | ||||
| "desc": text.desc, | "desc": text.desc, | ||||
| "icon": [ | "icon": [ | ||||
| { icon: buildings[key].icon, color: "#eee" }, | { icon: buildings[key].icon, color: "#eee" }, | ||||
| { icon: "fa-hand-pointer", color: clickVictimUpgradeColors[counter - 1] } | |||||
| { icon: "fa-hand-pointer", color: newColor, transform: "scale(0.75, 0.75) translate(20px, 20px) rotate(-15deg)" } | |||||
| ], | ], | ||||
| "cost": { | "cost": { | ||||
| "food": 1000 * Math.pow(10, counter) | "food": 1000 * Math.pow(10, counter) | ||||
| @@ -542,6 +543,8 @@ function createClickVictimUpgrades() { | |||||
| }); | }); | ||||
| } | } | ||||
| const powerupFreqColors = range.colors(5); | |||||
| function createPowerupFreqUpgrades() { | function createPowerupFreqUpgrades() { | ||||
| const prefix = "powerup-freq-"; | const prefix = "powerup-freq-"; | ||||
| let counter = 1; | let counter = 1; | ||||
| @@ -549,7 +552,9 @@ function createPowerupFreqUpgrades() { | |||||
| upgrades[prefix + counter] = { | upgrades[prefix + counter] = { | ||||
| "name": text.name, | "name": text.name, | ||||
| "desc": text.desc, | "desc": text.desc, | ||||
| "icon": "fa-drumstick-bite", | |||||
| "icon": [ | |||||
| { icon: "fa-drumstick-bite", color: powerupFreqColors[counter - 1] } | |||||
| ], | |||||
| "cost": { | "cost": { | ||||
| "powerups": 5 * counter | "powerups": 5 * counter | ||||
| }, | }, | ||||