|
|
|
@@ -201,23 +201,7 @@ const effect_types = { |
|
|
|
} |
|
|
|
|
|
|
|
let upgrades = { |
|
|
|
"click-anthro": { |
|
|
|
"name": "Same-Size Prey", |
|
|
|
"desc": "Devour an anthro with every click", |
|
|
|
"icon": "fa-male", |
|
|
|
"cost": { |
|
|
|
"food": 1000 |
|
|
|
}, |
|
|
|
"effects": [ |
|
|
|
{ |
|
|
|
"type": "click-victim", |
|
|
|
"id": "anthro" |
|
|
|
} |
|
|
|
], |
|
|
|
"prereqs": { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function createTemplateUpgrades() { |
|
|
|
@@ -225,6 +209,7 @@ function createTemplateUpgrades() { |
|
|
|
createProdAllUpgrades(); |
|
|
|
createClickUpgrades(); |
|
|
|
createHelperUpgrades(); |
|
|
|
createClickVictimUpgrades(); |
|
|
|
} |
|
|
|
|
|
|
|
const prodUpgradeCounts = [1, 5, 10, 25, 50, 75, 100]; |
|
|
|
@@ -388,6 +373,31 @@ function createHelperUpgrades() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function createClickVictimUpgrades() { |
|
|
|
const prefix = "click-"; |
|
|
|
let counter = 1; |
|
|
|
Object.entries(clickVictimUpgradeText).forEach(([key, text]) => { |
|
|
|
upgrades[prefix + key] = { |
|
|
|
"name": text.name, |
|
|
|
"desc": text.desc, |
|
|
|
"icon": buildings[key].icon, |
|
|
|
"cost": { |
|
|
|
"food": 1000 * Math.pow(10, counter) |
|
|
|
}, |
|
|
|
"effects": [ |
|
|
|
{ |
|
|
|
"type": "click-victim", |
|
|
|
"id": "anthro" |
|
|
|
} |
|
|
|
], |
|
|
|
"prereqs": { |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
counter += 1; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
let prodUpgradeText = { |
|
|
|
"micro": [ |
|
|
|
{ |
|
|
|
@@ -909,4 +919,11 @@ const helperUpgradeText = { |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const clickVictimUpgradeText = { |
|
|
|
"anthro": { |
|
|
|
"name": "Same-Size Prey", |
|
|
|
"desc": "Devour an anthro with every click" |
|
|
|
} |
|
|
|
}; |